/* =========================================================
   ELECTRICGAS
   STYLE.CSS
   VERSION LIMPIA Y COMPATIBLE CON iPHONE / CHROME / SAFARI
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   HTML / BODY
   ========================================================= */

html {
    width: 100%;
    min-height: 100%;
    background: #000;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: "Poppins", sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}


/* =========================================================
   IMAGEN DE FONDO
   ========================================================= */

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(.78) contrast(1.15) saturate(1.20);
    animation: zoom 30s ease-in-out infinite alternate;
    transform-origin: center center;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 70px;
    background: linear-gradient(
        rgba(0, 0, 0, .30),
        rgba(0, 0, 0, .60)
    );
}


/* =========================================================
   GLASSMORPHISM
   ========================================================= */

.glass {
    width: min(900px, 90%);
    padding: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
    text-align: center;
    color: #fff;
    animation: fade 2s;
}


/* =========================================================
   TITULO
   ========================================================= */

h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.05;
    text-shadow: 0 0 20px #00B7FF;
    margin-bottom: 15px;
}


/* =========================================================
   SUBTITULO
   ========================================================= */

h2 {
    font-size: 34px;
    font-weight: 300;
    line-height: 1.25;
    color: #90dcff;
    margin-bottom: 25px;
}


/* =========================================================
   TEXTO
   ========================================================= */

p {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 35px;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.servicios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 45px;
    font-size: 22px;
}


/* =========================================================
   PROXIMAMENTE
   ========================================================= */

.proximamente {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #7ED321;
    text-shadow: 0 0 15px #7ED321;
}


/* =========================================================
   BOTON WHATSAPP
   ========================================================= */

.boton {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    background: #25D366;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    transition: transform .3s ease, box-shadow .3s ease;
}

.boton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #25D366;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    position: relative;
    width: 100%;
    padding: 12px 15px 18px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    z-index: 10;
    text-shadow: 0 0 10px #000;
}

footer a {
    color: #90dcff;
    text-decoration: none;
}


/* =========================================================
   ANIMACION KEN BURNS
   ========================================================= */

@keyframes zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}


/* =========================================================
   ANIMACION ENTRADA
   ========================================================= */

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background: rgba(10, 10, 10, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    transition: background .4s ease, box-shadow .4s ease, height .4s ease;
}

.site-header.scrolled {
    height: 75px;
    background: rgba(10, 10, 10, .90);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}


/* =========================================================
   CONTENEDOR HEADER
   ========================================================= */

.nav-container {
    width: 92%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .3s ease;
}

.brand:hover {
    transform: scale(1.04);
}

.brand-electric {
    color: #00B7FF;
    text-shadow: 0 0 15px rgba(0, 183, 255, .65);
}

.brand-gas {
    color: #72d63c;
    text-shadow: 0 0 15px rgba(114, 214, 60, .55);
}


/* =========================================================
   BOTON MENU - SIEMPRE FLEXIBLE
   ========================================================= */

.menu-toggle {
    display: flex;  /* Siempre flex para que funcione */
    
    width: 92px;
    height: 44px;
    
    padding: 7px 10px;
    
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    
    background: rgba(255, 255, 255, .08);
    
    color: #fff;
    
    cursor: pointer;
    
    flex-shrink: 0;
    
    align-items: center;
    justify-content: center;
    
    flex-direction: row;
    
    gap: 8px;
    
    position: relative;
    
    z-index: 1002;
    
    -webkit-appearance: none;
    appearance: none;
    
    font-family: "Poppins", sans-serif;
    
    /* OCULTO POR DEFECTO EN DESKTOP */
    display: none;
}


/* =========================================================
   LINEAS HAMBURGUESA
   ========================================================= */

.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.hamburger-lines span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}


/* =========================================================
   TEXTO MENU
   ========================================================= */

.menu-text {
    display: none;  /* Oculto por defecto */
    
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   MENU DESKTOP
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 30px;
    transition: color .3s ease, background .3s ease, transform .3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}


/* =========================================================
   LINEA AZUL
   ========================================================= */

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #00B7FF;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #00B7FF;
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 55%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1024px) {
    .glass {
        width: 90%;
        max-width: 700px;
        padding: 40px 30px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 26px;
    }

    p {
        font-size: 18px;
    }

    .servicios {
        grid-template-columns: 1fr;
        gap: 12px;
        font-size: 18px;
    }

    .proximamente {
        font-size: 26px;
    }

    .boton {
        font-size: 18px;
        padding: 14px 28px;
    }
}


/* =========================================================
   CELULARES Y TABLETS PEQUEÑAS
   ========================================================= */

@media screen and (max-width: 768px) {
    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .site-header {
        height: 70px;
        background: rgba(10, 10, 10, .55);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }

    .nav-container {
        width: calc(100% - 24px);
        height: 70px;
    }


    /* =====================================================
       LOGO - MÁS PEQUEÑO
       ===================================================== */

    .brand {
        font-size: 23px;
        /* El logo se mantiene a la izquierda */
    }


    /* =====================================================
       BOTON MENU - VISIBLE EN MOVIL
       ===================================================== */

    .menu-toggle {
        display: flex !important;  /* FORZAMOS VISIBILIDAD */
        
        width: 92px;
        min-width: 92px;
        
        height: 44px;
        
        padding: 7px 10px;
        
        gap: 8px;
        
        z-index: 1003;
        
        /* El botón se coloca a la izquierda */
        order: -1;  /* Esto lo mueve antes del logo */
        margin-right: 10px;  /* Espacio entre botón y logo */
    }


    /* =====================================================
       TEXTO MENU - VISIBLE EN MOVIL
       ===================================================== */

    .menu-text {
        display: block !important;  /* Mostramos "MENU" */
    }


    /* =====================================================
       CONTENEDOR - REORDENAMOS PARA BOTÓN IZQUIERDA
       ===================================================== */

    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;  /* Alineamos a la izquierda */
        gap: 0;
    }

    /* El logo se mantiene a la izquierda pero después del botón */
    .brand {
        order: 0;  /* Logo después del botón */
        margin-left: 0;
    }


    /* =====================================================
       MENU LATERAL
       ===================================================== */

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        min-height: 100vh;
        padding: 95px 22px 30px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        background: rgba(8, 8, 8, .97);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        box-shadow: -15px 0 50px rgba(0, 0, 0, .55);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(100%, 0, 0);
        transition: transform .35s ease;
        z-index: 1001;
        visibility: visible;
        pointer-events: none;
    }


    /* =====================================================
       MENU ABIERTO
       ===================================================== */

    .main-nav.active {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }


    /* =====================================================
       LINKS DEL MENU MOVIL
       ===================================================== */

    .nav-link {
        display: flex;
        width: 100%;
        min-height: 55px;
        height: 55px;
        padding: 0 18px;
        align-items: center;
        justify-content: flex-start;
        font-size: 17px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .nav-link:hover {
        transform: none;
        background: rgba(255, 255, 255, .08);
    }

    .nav-link::after {
        display: none;
    }


    /* =====================================================
       MENU ABIERTO - ANIMACION HAMBURGUESA
       ===================================================== */

    .menu-toggle.active .hamburger-lines span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-lines span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .hamburger-lines span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        height: auto;
        overflow: hidden;
    }


    /* =====================================================
       IMAGEN
       ===================================================== */

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: scale(1.12);
        animation: zoomMobile 30s ease-in-out infinite alternate;
    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    .overlay {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        padding: 95px 15px 55px;
        align-items: center;
        justify-content: center;
    }


    /* =====================================================
       GLASS
       ===================================================== */

    .glass {
        width: 100%;
        max-width: 500px;
        padding: 28px 20px;
        border-radius: 22px;
    }


    /* =====================================================
       TITULO
       ===================================================== */

    h1 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.05;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }


    /* =====================================================
       SUBTITULO
       ===================================================== */

    h2 {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.25;
        margin-bottom: 15px;
    }


    /* =====================================================
       TEXTO
       ===================================================== */

    p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }


    /* =====================================================
       SERVICIOS
       ===================================================== */

    .servicios {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.3;
    }

    .servicios div {
        padding: 7px 5px;
    }


    /* =====================================================
       PROXIMAMENTE
       ===================================================== */

    .proximamente {
        font-size: clamp(18px, 5vw, 23px);
        line-height: 1.2;
        letter-spacing: 2px;
        margin-bottom: 22px;
    }


    /* =====================================================
       BOTON WHATSAPP
       ===================================================== */

    .boton {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 17px;
        line-height: 1.2;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        position: relative;
        width: 100%;
        padding: 10px 15px 18px;
        font-size: 11px;
        line-height: 1.4;
    }
}


/* =========================================================
   IPHONE / CELULARES PEQUEÑOS
   ========================================================= */

@media screen and (max-width: 400px) {
    .nav-container {
        width: calc(100% - 20px);
    }

    .brand {
        font-size: 21px;
    }

    .menu-toggle {
        width: 84px;
        min-width: 84px;
        padding: 7px 8px;
        gap: 6px;
    }

    .menu-text {
        font-size: 12px;
    }

    .hamburger-lines,
    .hamburger-lines span {
        width: 20px;
    }

    .overlay {
        padding: 92px 12px 50px;
    }

    .glass {
        padding: 23px 16px;
        border-radius: 20px;
    }

    h1 {
        font-size: 29px;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
        line-height: 1.4;
    }

    .servicios {
        font-size: 14px;
        gap: 5px;
        margin-bottom: 18px;
    }

    .servicios div {
        padding: 5px 0;
    }

    .proximamente {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .boton {
        padding: 14px;
        font-size: 16px;
    }
}


/* =========================================================
   ANIMACION KEN BURNS MOBILE
   ========================================================= */

@keyframes zoomMobile {
    from {
        transform: scale(1.12);
    }
    to {
        transform: scale(1.20);
    }
}


/* =========================================================
   IPHONE SAFARI / CHROME iOS
   ========================================================= */

@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .overlay {
        min-height: -webkit-fill-available;
    }

    .site-header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .main-nav {
        height: -webkit-fill-available;
        min-height: 100vh;
        -webkit-transform: translate3d(100%, 0, 0);
    }

    .main-nav.active {
        -webkit-transform: translate3d(0, 0, 0);
    }
}