/* =========================================================
   PÁGINAS DE SERVICIO
   Estilos compartidos (cabecera, texto, tarjetas, pasos y bloque
   final). Se cargan después de styles.css.

   Colores: azul marino #12304a · azul marca #206e95 ·
            etiqueta #168bb0 · texto #5d7080 · fondo suave #eef7fa
   ========================================================= */

.ac-page {
    color: #12304a;
    background: #ffffff;
}

.ac-container {
    width: min(1120px, 90%);
    margin: 0 auto;
}


/* =========================================================
   CABECERA DE PÁGINA
   Texto a la izquierda y logo a la derecha, igual que la portada.
   ========================================================= */

.ac-topbar {
    margin: 0;
}

.ac-back {
    display: inline-block;
    margin: 40px 0 56px;
    color: #206e95;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.ac-back:hover {
    text-decoration: underline;
}

.ac-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    padding: 0 0 76px;
    text-align: left;
}

.ac-hero-text {
    max-width: 680px;
}

.ac-label,
.ac-learning-label {
    margin: 0 0 15px;
    color: #168bb0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ac-hero h1 {
    margin: 0 0 22px;
    color: #12304a;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.ac-hero-lead {
    max-width: 580px;
    color: #5d7080;
    font-size: 17px;
    line-height: 1.75;
}

.ac-logo {
    flex: 0 0 auto;
}

.ac-logo img {
    display: block;
    width: 270px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.ac-page h2 {
    margin: 0 0 14px;
    color: #12304a;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.ac-section-intro {
    max-width: 620px;
    margin: 0 0 34px;
    color: #5d7080;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   TIPOS DE EQUIPO (tarjetas sobre fondo suave)
   ========================================================= */

.ac-types-section,
.ac-text-band {
    padding: 72px 0 80px;
    background: #eef7fa;
    border-top: 1px solid #dbe9f0;
    border-bottom: 1px solid #dbe9f0;
}

.ac-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ac-type {
    overflow: hidden;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ac-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(18, 48, 74, 0.09);
}

.ac-type img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #dcecf4;
}

.ac-type h3 {
    margin: 0;
    padding: 22px 24px 8px;
    color: #206e95;
    font-size: 20px;
    font-weight: 700;
}

.ac-type p {
    margin: 0;
    padding: 0 24px 26px;
    color: #5d7080;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}


/* =========================================================
   EXPLICACIÓN: título a la izquierda, texto a la derecha
   ========================================================= */

.ac-learning-section {
    padding: 88px 0 0;
    background: #ffffff;
}

.ac-split {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.ac-learning-head {
    position: sticky;
    top: 120px;
}

.ac-learning-section h2 {
    margin: 0;
}

.ac-learning-body {
    max-width: 700px;
}

.ac-learning-body p {
    margin: 0 0 16px;
    color: #5d7080;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
}

.ac-learning-body ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: #5d7080;
    font-size: 16px;
    line-height: 1.85;
}

.ac-learning-body li {
    margin: 8px 0;
}

.ac-learning-body strong {
    color: #12304a;
}

.ac-learning-body h3 {
    margin: 36px 0 10px;
    color: #206e95;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ac-learning-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 28px 0 12px;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
}

.ac-learning-body .ac-learning-note {
    margin: 36px 0 0;
    padding: 22px 26px;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
    background: #eef7fa;
    color: #12304a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.ac-learning-section::after {
    content: "";
    display: block;
    width: min(1120px, 90%);
    height: 1px;
    margin: 88px auto 0;
    background: #dbe9f0;
}


/* =========================================================
   CÓMO ELEGIR: pasos en tarjetas + ilustración
   ========================================================= */

.ac-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 88px;
}

.ac-choice p:not(.ac-label) {
    color: #5d7080;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.ac-choice > div > p:not(.ac-label) {
    max-width: 520px;
    margin: 0 0 28px;
}

.ac-choice img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.ac-factors {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.ac-factors li {
    position: relative;
    margin: 0;
    padding: 16px 22px 16px 74px;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ac-factors li:hover {
    border-color: #b9d5df;
    box-shadow: 0 10px 24px rgba(18, 48, 74, 0.06);
}

.ac-factors li::before {
    content: attr(data-number);
    position: absolute;
    left: 20px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border-radius: 50%;
    background: #eef7fa;
    color: #206e95;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ac-factors strong {
    display: block;
    margin-bottom: 2px;
    color: #12304a;
    font-size: 16px;
    font-weight: 700;
}

.ac-factors span {
    display: block;
    color: #5d7080;
    font-size: 14px;
    line-height: 1.6;
}


/* ilustración con los puntos interactivos */

.ac-house-illustration {
    position: relative;
    width: 100%;
}

.ac-house-illustration > img {
    display: block;
    width: 100%;
}

/* la posición de cada punto (left / top) se pone en el propio HTML */


/* =========================================================
   BLOQUE FINAL: "Nosotros te ayudamos" + contacto
   ========================================================= */

.ac-work {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.9fr;
    align-items: center;
    gap: 36px;
    margin-bottom: 88px;
    padding: 28px;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
    background: #eef7fa;
}

.ac-work img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.ac-work h2 {
    font-size: clamp(26px, 2.6vw, 32px);
}

.ac-work p {
    margin: 0 0 12px;
    color: #5d7080;
    font-size: 15px;
    line-height: 1.75;
}

.ac-work ul {
    padding-left: 18px;
    color: #5d7080;
    font-size: 15px;
    line-height: 1.95;
}

.ac-contact {
    padding-left: 32px;
    border-left: 1px solid #cfe1e8;
}

.ac-work .ac-contact h2 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.ac-button {
    display: inline-block;
    margin-top: 6px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #206e95;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ac-button:hover {
    background: #185775;
    transform: translateY(-2px);
}


/* =========================================================
   TABLET Y MÓVIL
   ========================================================= */

@media (max-width: 1000px) {
    .ac-hero {
        gap: 36px;
    }

    .ac-logo img {
        width: 210px;
    }

    .ac-split {
        gap: 48px;
    }

    .ac-choice {
        gap: 40px;
    }

    .ac-work {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .ac-contact {
        grid-column: 1 / -1;
        padding: 24px 0 0;
        border-left: none;
        border-top: 1px solid #cfe1e8;
    }
}

@media (max-width: 800px) {
    .ac-back {
        margin: 24px 0 28px;
    }

    .ac-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 22px;
        padding-bottom: 48px;
    }

    .ac-logo img {
        width: 130px;
    }

    .ac-types-section,
    .ac-text-band {
        padding: 48px 0 52px;
    }

    .ac-types {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ac-type img {
        height: 200px;
    }

    .ac-learning-section {
        padding-top: 56px;
    }

    .ac-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ac-learning-head {
        position: static;
    }

    .ac-learning-body h3 {
        margin-top: 28px;
    }

    .ac-learning-section::after {
        margin-top: 56px;
    }

    .ac-choice {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .ac-choice img {
        max-height: 320px;
    }

    .ac-work {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 56px;
        padding: 20px;
    }

    .ac-work img {
        height: 220px;
    }
}

@media (max-width: 500px) {
    .ac-factors li {
        padding: 14px 16px 14px 64px;
    }

    .ac-factors li::before {
        left: 14px;
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
}


/* =========================================================
   CLIMATIZACIÓN: "¿Cómo trabajamos?" en tres tarjetas
   ========================================================= */

.clima-process-section {
    padding-top: 88px;
}

.clima-process-section::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 88px;
    background: #dbe9f0;
}

.clima-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.clima-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 26px 30px;
    border: 1px solid #dbe9f0;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

.clima-step:hover {
    transform: translateY(-3px);
    border-color: #b9d5df;
    box-shadow: 0 14px 30px rgba(18, 48, 74, 0.07);
}

.clima-step-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef7fa;
    color: #206e95;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.clima-step h3 {
    margin: 0 0 8px;
    color: #12304a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.clima-step p {
    margin: 0;
    color: #5d7080;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .clima-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clima-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
    }

    .clima-step-number {
        flex: 0 0 auto;
    }
}

@media (max-width: 800px) {
    .clima-process-section {
        padding-top: 56px;
    }

    .clima-process-section::after {
        margin-top: 56px;
    }
}


/* =========================================================
   MÓVIL: SIN EL LOGO GRANDE DE LA CABECERA
   La barra de arriba ya pone "Egaibar Instalaciones", así que en móvil
   se quita el logo y el título sube. Para volver a verlo, borra este bloque.
   ========================================================= */

@media (max-width: 800px) {
    .ac-logo { display: none; }

    .ac-hero {
        gap: 0;
        padding-bottom: 40px;
    }
}


/* =========================================================
   MENÚ EN MÓVIL: "SERVICIOS" ABRE LA LISTA CON LOS 4 SERVICIOS
   Al tocar "Servicios" se despliegan debajo los 4 servicios (en lugar de
   saltar a la sección de la portada); al volver a tocarlo se pliegan.
   Va junto con el cambio de script.js. Para volver a como estaba:
   borra este bloque y pon el script.js anterior.
   ========================================================= */

/* Lista abierta (también en tablets táctiles, donde no hay "pasar el ratón") */
.menu .dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu .dropdown.open .dropdown-menu a {
    opacity: 1;
    transform: translateY(0);
}

.menu .dropdown .dropdown-arrow {
    transition: transform 0.25s ease;
}

.menu .dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    :is(.hero, .site-header) .menu .dropdown {
        width: 100%;
    }

    /* En móvil la lista no flota: se despliega dentro del propio menú */
    :is(.hero, .site-header) .menu .dropdown .dropdown-menu {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        min-width: 0;
        margin: 0 0 6px 4px;
        padding: 2px 0 2px 14px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border-left: 2px solid #d7ebfa;
    }

    :is(.hero, .site-header) .menu .dropdown.open .dropdown-menu {
        display: block;
    }

    :is(.hero, .site-header) .menu .dropdown .dropdown-menu a {
        opacity: 1;
        transform: none;
        transition-delay: 0s;
        padding: 10px 6px;
        font-size: 14px;
        color: #206e95;
        white-space: normal;
    }
}

/* Tipos de aire acondicionado: 4 tarjetas (Split, Multisplit, Por conductos y Cassette) */
.ac-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ac-type h3 {
    padding: 20px 20px 8px;
    font-size: 19px;
}

.ac-type p {
    padding: 0 20px 24px;
    font-size: 14.5px;
}

@media (max-width: 1000px) {
    .ac-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .ac-types { grid-template-columns: 1fr; }
}

/* "¿Cómo elegir el equipo adecuado?": puntos más compactos y casa más grande */
@media (min-width: 801px) {
    .ac-choice {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 40px;
    }
}

/* en pantallas grandes la casa se estira un poco hacia la derecha */
@media (min-width: 1100px) {
    .ac-house-illustration {
        margin-right: -40px;
        width: calc(100% + 40px);
    }
}

.ac-choice img {
    max-height: 560px;
}

.ac-factors {
    gap: 8px;
}

.ac-factors li {
    padding: 10px 18px 10px 62px;
}

.ac-factors li::before {
    left: 15px;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    font-size: 13px;
}

.ac-factors strong {
    margin-bottom: 0;
    font-size: 15px;
}

.ac-factors span {
    font-size: 13.5px;
    line-height: 1.5;
}

/* Cabecera de la página: menos espacio blanco antes de la siguiente sección */
.ac-hero {
    padding-bottom: 26px;    /* antes 76px */
}

/* Aerotermia: 3 tarjetas que ocupan todo el ancho */
.aerotermia-page .ac-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.aerotermia-page .ac-type h3 {
    padding: 22px 24px 8px;
    font-size: 20px;
}

.aerotermia-page .ac-type p {
    padding: 0 24px 26px;
    font-size: 15px;
}

@media (max-width: 1000px) {
    .aerotermia-page .ac-type h3 {
        padding: 18px 18px 6px;
        font-size: 18px;
    }

    .aerotermia-page .ac-type p {
        padding: 0 18px 22px;
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .aerotermia-page .ac-types {
        grid-template-columns: 1fr;
    }

    .aerotermia-page .ac-type h3 {
        padding: 22px 24px 8px;
        font-size: 20px;
    }

    .aerotermia-page .ac-type p {
        padding: 0 24px 26px;
        font-size: 15px;
    }
}

/* Cargadores eléctricos: 3 tarjetas que ocupan todo el ancho */
.cargadores-page .ac-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cargadores-page .ac-type h3 {
    padding: 22px 24px 8px;
    font-size: 20px;
}

.cargadores-page .ac-type p {
    padding: 0 24px 26px;
    font-size: 15px;
}

@media (max-width: 1000px) {
    .cargadores-page .ac-type h3 {
        padding: 18px 18px 6px;
        font-size: 18px;
    }

    .cargadores-page .ac-type p {
        padding: 0 18px 22px;
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .cargadores-page .ac-types {
        grid-template-columns: 1fr;
    }

    .cargadores-page .ac-type h3 {
        padding: 22px 24px 8px;
        font-size: 20px;
    }

    .cargadores-page .ac-type p {
        padding: 0 24px 26px;
        font-size: 15px;
    }
}
