
/* ==========================================
   GOTAY ELECTROAIRE
   DISEÑO PREMIUM - PÁGINA DE INICIO
   ========================================== */

/* 1. COLORES */

body:has(.gotay-hero) {
    background: #EDF1F3;
    color: #273139;
}

/* 2. BANNER PRINCIPAL */

.gotay-hero {
    position: relative;
    isolation: isolate;

    height: clamp(650px, 80vh, 850px);
    min-height: 650px;

    overflow: hidden;
    background: #101D25;
    color: #FFFFFF;
}

.gotay-slides,
.gotay-slide {
    position: absolute;
    inset: 0;
}

.gotay-slide {
    opacity: 0;
    visibility: hidden;

    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;

    transform: scale(1.04);

    transition:
        opacity 1s ease,
        visibility 1s ease,
        transform 8s ease;
}

.gotay-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.gotay-slide-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7,20,29,.96) 0%,
            rgba(7,23,32,.85) 36%,
            rgba(8,24,35,.35) 75%,
            rgba(7,21,31,.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5,18,25,.55),
            transparent 40%
        );
}

/* 3. CONTENIDO DEL BANNER */

.gotay-slide-content {
    position: relative;
    z-index: 2;

    height: calc(100% - 95px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding-top: 30px;
    padding-bottom: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 17px;

    border: 1px solid rgba(57,197,237,.45);
    border-radius: 40px;

    background: rgba(10,160,203,.2);
    color: #C5F5FF;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.tag-pulse {
    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #F36E22;

    box-shadow: 0 0 0 5px rgba(243,110,34,.2);
    animation: tagPulse 2s infinite;
}

@keyframes tagPulse {
    50% {
        box-shadow: 0 0 0 10px rgba(243,110,34,0);
    }
}

.gotay-slide h1 {
    max-width: 750px;

    margin: 23px 0 19px;

    font-size: clamp(43px, 5.5vw, 82px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -3px;
}

.gotay-slide h1 em {
    color: #39C5ED;
    font-style: normal;
}

.gotay-slide p {
    max-width: 560px;
    margin: 0;

    color: #DCE8EE;

    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.65;
}

.hero-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 23px;

    margin-top: 22px;

    color: #D7E9EF;
    font-size: 12px;
}

.hero-mini span::first-letter {
    color: #39C5ED;
}

/* 4. BOTONES DEL BANNER */

.gotay-hero .hero-actions {
    position: relative;
    z-index: 3;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;

    margin-top: 27px;
}

.gotay-hero .btn-orange {
    background: #F36E22;
    color: #FFFFFF;

    box-shadow: 0 12px 30px rgba(243,110,34,.25);
}

.gotay-hero .btn-orange:hover {
    background: #DD5C14;
    transform: translateY(-2px);
}

.gotay-hero .btn-outline {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.5);
    color: #FFFFFF;
}

.slide-corner {
    position: absolute;
    bottom: 112px;
    right: max(25px, calc((100vw - 1180px) / 2));

    color: rgba(255,255,255,.7);

    font-size: 11px;
    letter-spacing: 3px;
}

.slide-corner b {
    color: #39C5ED;
}

/* 5. CONTROLES DEL CARRUSEL
   Separados de los botones principales */

.gotay-hero-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 8;
    height: 85px;

    display: flex;
    align-items: center;

    background: linear-gradient(
        to top,
        rgba(5,17,25,.92),
        rgba(5,17,25,.3)
    );

    pointer-events: none;
}

.hero-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    pointer-events: auto;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls > button {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;

    background: rgba(255,255,255,.08);
    color: #FFFFFF;

    font-size: 20px;
    cursor: pointer;

    transition: .25s ease;
}

.hero-controls > button:hover {
    background: #F36E22;
    border-color: #F36E22;
    transform: translateY(-2px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;

    border: 0;
    border-radius: 50px;

    background: rgba(255,255,255,.5);

    cursor: pointer;
    transition: .25s ease;
}

.hero-dots button.active {
    width: 28px;
    background: #F36E22;
}

.hero-counter {
    color: #D5E5EB;
    font-size: 13px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.hero-counter strong {
    color: #39C5ED;
    font-size: 18px;
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: rgba(255,255,255,.15);
    z-index: 9;
}

.hero-progress span {
    display: block;
    width: 0;
    height: 100%;

    background: #F36E22;
}

.hero-progress span.running {
    animation: heroFill 6.5s linear forwards;
}

@keyframes heroFill {
    to {
        width: 100%;
    }
}

/* 6. CATEGORÍAS */

.category-panel {
    position: relative;
    z-index: 8;

    margin-top: 22px;
    margin-bottom: 45px;

    padding: 25px;

    background: #FFFFFF;
    border: 1px solid #E5EBEF;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(10,30,42,.08);
}

.category-label {
    margin-bottom: 20px;

    color: #F36E22;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.category-tile {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;

    padding: 20px 10px;

    border: 1px solid #E8EEF1;
    border-radius: 15px;

    background: #F7FAFB;
    color: #303A42;

    text-align: center;
    cursor: pointer;

    transition: .3s ease;
}

.category-tile:hover {
    transform: translateY(-6px);

    background: #FFFFFF;
    border-color: #39C5ED;

    box-shadow: 0 12px 25px rgba(10,160,203,.12);
}

.category-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    flex: 0 0 56px;

    border-radius: 15px;
    background: rgba(10,160,203,.09);
    color: #0AA0CB;

    transition: .3s ease;
}

.category-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.8;
}

.category-tile:hover .category-icon {
    background: #F36E22;
    color: #FFFFFF;
    transform: scale(1.06);
}

.category-tile strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.category-tile small {
    color: #6B6B6B;
    font-size: 11px;
    line-height: 1.4;
}

/* 7. INTRODUCCIÓN */

.gotay-intro {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 60px;

    padding: 75px 0 35px;
}

.section-kicker-orange {
    color: #F36E22;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.gotay-intro h2,
.showcase-heading h2,
.promise-grid h2,
.final-inner h2 {
    margin: 13px 0 0;

    font-size: clamp(32px, 4.1vw, 55px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.gotay-intro h2 em,
.showcase-heading h2 em,
.promise-grid h2 em,
.final-inner h2 em {
    color: #0AA0CB;
    font-style: normal;
}

.gotay-intro > p {
    color: #6B6B6B;
    font-size: 16px;
    line-height: 1.8;
}

/* 8. TARJETAS FOTOGRÁFICAS */

.gotay-service-section {
    padding-bottom: 90px;
}

.photo-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.photo-service {
    position: relative;
    isolation: isolate;

    height: 360px;

    overflow: hidden;
    border-radius: 20px;

    background: #14242D;
    color: #FFFFFF;

    box-shadow: 0 16px 35px rgba(11,30,43,.1);
}

.photo-service img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform .8s ease;
}

.photo-service:hover img {
    transform: scale(1.1);
}

.photo-service::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        0deg,
        rgba(9,27,39,.97),
        rgba(9,27,39,.55) 45%,
        transparent
    );
}

.photo-service-overlay {
    position: absolute;
    z-index: 2;

    left: 25px;
    right: 25px;
    bottom: 24px;
}

.photo-service-overlay > span {
    color: #39C5ED;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.photo-service-overlay h3 {
    margin: 8px 0;
    font-size: 25px;
}

.photo-service-overlay p {
    max-width: 310px;

    color: #D5E0E5;
    font-size: 13px;
    line-height: 1.5;
}

.photo-service-overlay button {
    padding: 7px 0;

    border: 0;
    background: transparent;
    color: #FFFFFF;

    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.photo-service-overlay button b {
    margin-left: 8px;
    color: #F36E22;
}

/* 9. COMPROMISO */

.gotay-promise {
    padding: 85px 0;
    background: #172833;
    color: #FFFFFF;
}

.promise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 90px;
}

.promise-grid > div > span {
    color: #39C5ED;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.promise-grid h2 em {
    color: #39C5ED;
}

.promise-grid p {
    max-width: 470px;
    margin: 22px 0;

    color: #B9CBD3;
    line-height: 1.8;
}

.promise-points {
    display: grid;
    gap: 12px;
}

.promise-points > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 15px;

    padding: 20px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    background: rgba(255,255,255,.04);
}

.promise-points b {
    grid-row: span 2;
    color: #F36E22;
    font-size: 25px;
}

.promise-points strong {
    font-size: 16px;
}

.promise-points small {
    color: #AFC2CC;
}

/* 10. PRODUCTOS DESTACADOS */

.gotay-showcase {
    padding: 90px 0;
}

.showcase-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;

    margin-bottom: 30px;
}

.showcase-heading h2 {
    max-width: 690px;
}

.showcase-heading p {
    color: #6B6B6B;
}

.showcase-arrows {
    display: flex;
    gap: 10px;
}

.showcase-arrows button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid #B9CBD3;
    border-radius: 50%;

    background: #FFFFFF;
    color: #283A44;

    font-size: 20px;
    cursor: pointer;
}

.showcase-arrows button:hover {
    background: #F36E22;
    border-color: #F36E22;
    color: #FFFFFF;
}

.showcase-track {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    padding: 10px 2px 25px;
}

.showcase-track::-webkit-scrollbar {
    display: none;
}

.showcase-product {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;

    overflow: hidden;
    scroll-snap-align: start;

    border: 1px solid #E3E8EC;
    border-radius: 18px;

    background: #FFFFFF;

    box-shadow: 0 12px 28px rgba(17,41,54,.05);
    transition: transform .3s ease;
}

.showcase-product:hover {
    transform: translateY(-6px);
}

.showcase-img {
    height: 205px;
    overflow: hidden;
    background: #EAF0F3;
}

.showcase-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .6s ease;
}

.showcase-product:hover img {
    transform: scale(1.08);
}

.showcase-details {
    padding: 18px;
}

.showcase-details small {
    color: #0AA0CB;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.showcase-details h3 {
    margin: 8px 0;

    font-size: 17px;
    line-height: 1.3;
}

.showcase-details p {
    color: #6B6B6B;
    font-size: 12px;
}

.showcase-details button {
    width: 100%;

    display: flex;
    justify-content: space-between;

    padding: 11px;

    border: 0;
    border-radius: 10px;

    background: #F36E22;
    color: #FFFFFF;

    font-weight: 800;
    cursor: pointer;
}

.catalog-link {
    display: inline-flex;
    margin-top: 18px;

    color: #0A93B9;
    font-weight: 800;
}

/* 11. SECCIÓN FINAL */

.gotay-final {
    padding: 80px 0;

    background: linear-gradient(
        110deg,
        #0C212E,
        #134458
    );

    color: #FFFFFF;
}

.final-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.final-inner span {
    color: #39C5ED;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.final-inner h2 em {
    color: #39C5ED;
}

.final-inner p {
    color: #C8D9E1;
}

/* 12. ANIMACIONES AL DESPLAZARSE */

.reveal {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity .65s ease,
        transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 13. TABLETAS */

@media (max-width: 1000px) {

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .photo-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-product {
        flex-basis: calc((100% - 36px) / 3);
    }

    .promise-grid {
        gap: 40px;
    }
}

/* 14. TELÉFONOS */

@media (max-width: 760px) {

    .gotay-hero {
        height: 720px;
        min-height: 720px;
    }

    .gotay-slide {
        background-position: 62% center;
    }

    .gotay-slide-shade {
        background:
            linear-gradient(
                90deg,
                rgba(7,23,33,.94),
                rgba(7,23,33,.68)
            ),
            linear-gradient(
                0deg,
                rgba(7,23,33,.75),
                transparent 70%
            );
    }

    .gotay-slide-content {
        height: calc(100% - 95px);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .gotay-slide h1 {
        max-width: 100%;

        font-size: clamp(36px, 9vw, 54px);
        letter-spacing: -1.8px;
    }

    .gotay-slide p {
        max-width: 100%;
        font-size: 15px;
    }

    .hero-tag {
        font-size: 10px;
        letter-spacing: .8px;
    }

    .hero-mini {
        font-size: 11px;
    }

    .gotay-hero .hero-actions {
        gap: 10px;
    }

    .gotay-hero .hero-actions .btn {
        font-size: 12px;
        padding: 12px 14px;
    }

    .slide-corner {
        display: none;
    }

    .gotay-hero-nav {
        height: 85px;
    }

    .hero-nav-inner {
        justify-content: center;
        gap: 15px;
    }

    .hero-controls {
        gap: 9px;
    }

    .hero-controls > button {
        width: 38px;
        height: 38px;
    }

    .category-panel {
        padding: 16px;
        margin-top: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-tile {
        padding: 17px 8px;
    }

    .category-icon {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
    }

    .category-icon svg {
        width: 24px;
        height: 24px;
    }

    .category-tile strong {
        font-size: 12px;
    }

    .category-tile small {
        font-size: 10px;
    }

    .gotay-intro {
        grid-template-columns: 1fr;
        gap: 10px;

        padding: 60px 0 25px;
    }

    .gotay-service-section {
        padding-bottom: 60px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }

    .gotay-promise {
        padding: 60px 0;
    }

    .showcase-product {
        flex-basis: calc((100% - 18px) / 2);
    }

    .gotay-showcase {
        padding: 65px 0;
    }

    .final-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 15. TELÉFONOS PEQUEÑOS */

@media (max-width: 480px) {

    .gotay-hero {
        height: 740px;
        min-height: 740px;
    }

    .gotay-slide h1 {
        font-size: 39px;
    }

    .hero-mini {
        gap: 8px;
    }

    .photo-service-grid {
        grid-template-columns: 1fr;
    }

    .photo-service {
        height: 325px;
    }

    .showcase-product {
        flex-basis: 83%;
    }

    .showcase-arrows button {
        width: 35px;
        height: 35px;
    }

    .gotay-intro h2,
    .showcase-heading h2,
    .promise-grid h2,
    .final-inner h2 {
        font-size: 34px;
    }
}

/* 16. ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .gotay-slide,
    .photo-service img,
    .showcase-product,
    .reveal,
    .category-tile {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
