/* Custom Styles for Fari Energy Redesign */

/* Hero Section with Video Background */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay oscuro */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #ffc107;
    /* Brand Color */
    letter-spacing: 2px;
}

.endress-logo-hero {
    height: 40px;
    /* Ajustar según logo real */
    background: white;
    /* Placeholder por si es transparente */
    padding: 2px 5px;
    border-radius: 4px;
}

.btn-cta-hero {
    font-size: 1.25rem;
    padding: 15px 40px;
    border-radius: 50px;
    background-color: #ffc107;
    /* Color industrial/amarillo */
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-cta-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    background-color: #ffca2c;
    color: #000;
    text-decoration: none;
}

.video-control-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Sticky Action Buttons */
.sticky-actions-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.sticky-btn:hover {
    transform: scale(1.1);
    color: white;
}

.btn-whatsapp-sticky {
    background-color: #25d366;
}

.btn-phone-sticky {
    background-color: #0b101a;
    /* Dark theme color */
}

/* Form Styles */
.lead-form-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.lead-form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.type-option {
    padding: 15px 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.type-option.active {
    border-color: #ffc107;
    background-color: #fff9e6;
    color: #000;
}

.type-option input {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-video-wrapper {
        height: 80vh;
        /* Menor altura en móviles */
    }

    .sticky-actions-container {
        bottom: 15px;
        right: 15px;
    }

    .sticky-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* WhatsApp Ding & Shake Animation */
@keyframes shake-ding {
    0% {
        transform: scale(1) rotate(0deg);
    }

    10% {
        transform: scale(1.1) rotate(-10deg);
    }

    20% {
        transform: scale(1.1) rotate(10deg);
    }

    30% {
        transform: scale(1.1) rotate(-10deg);
    }

    40% {
        transform: scale(1.1) rotate(10deg);
    }

    50% {
        transform: scale(1.1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.shake-animation {
    animation: shake-ding 1s ease-in-out;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.8);
    /* Glow effect */
}

/* FIX-MOBILE-NAV: Hide non-essential header info on small screens to prevent crowding */
@media (max-width: 991px) {
    .top-bar .right-content .single-header-contact-info:not(:nth-child(2)) {
        display: none !important;
        /* Hide everything except Phone/Emergency (2nd child) */
    }

    .top-bar .right-content .single-header-contact-info {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border: none !important;
        float: right;
    }

    .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
        position: relative;
        z-index: 1001;
        /* Ensure it's above hero overlay */
    }

    .navbar-toggler .fa {
        font-size: 1.5rem;
        color: #333;
    }
}