/*
 * AVADHRA — Vista previa V1.4
 * Identidad gráfica y narrativa aprobada.
 * Primera etapa: cabecera y portada.
 */

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--av-color-ink);
}

.site-header {
    background: var(--av-color-ivory);
    border-bottom: 1px solid rgba(31, 42, 51, .12);
}

.navigation a {
    color: var(--av-color-ink);
}

.navigation a:hover {
    color: #76582F;
}

.navigation .nav-contact {
    background: var(--av-color-ink);
    color: #fff;
    border: 1px solid var(--av-color-ink);
}

.hero {
    position: relative;
    isolation: isolate;
    background: var(--av-color-ivory);
    color: var(--av-color-ink);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31,42,51,.045) 1px, transparent 1px),
        linear-gradient(90deg,rgba(31,42,51,.045) 1px,transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(90deg,transparent,black);
    -webkit-mask-image: linear-gradient(90deg,transparent,black);
}

.hero .eyebrow-light {
    color: #76582F;
}

.hero h1,
.hero h1 em {
    color: var(--av-color-ink);
}

.hero h1 em {
    text-decoration: underline;
    text-decoration-color: var(--av-color-bronze);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.hero-description {
    color: var(--av-color-ink);
}

.hero .button-copper {
    background: var(--av-color-ink);
    color: #fff;
}

.hero .button-copper:hover {
    background: var(--av-color-teal-deep);
}

.hero .text-link-light {
    color: var(--av-color-ink);
    border-color: rgba(31, 42, 51, .35);
}

.hero-art {
    background: #082b46;
    border-radius: 24px;
    overflow: hidden;
    align-self: center;
    width: 100%;
    transform: none;
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 680px) {
    .hero-copy {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .hero-art {
        max-width: 100%;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .hero h1 em {
        text-underline-offset: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .button-copper {
        transition: none;
    }
}


/* AVADHRA V1.4 — refinamiento visual 01 */

/* Mayor equilibrio entre narrativa y recurso gráfico */
@media (min-width: 951px) {
    .hero-grid {
        grid-template-columns: 1.12fr .88fr;
        gap: 48px;
    }

    .hero h1 {
        font-size: clamp(36px, 3.15vw, 53px);
        line-height: 1.2;
    }

    .hero-art {
        width: 100%;
    }
}

/* Grilla sutil: los datos acompañan, no dominan */
.hero::before {
    background-image:
        linear-gradient(
            rgba(31, 42, 51, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(31, 42, 51, .025) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
}

.hero-art {
    box-shadow: 0 16px 40px rgba(31, 42, 51, .08);
}

@media (max-width: 680px) {
    .hero h1 {
        font-size: clamp(34px, 8vw, 45px);
        line-height: 1.18;
    }

    .hero-art {
        box-shadow: 0 10px 26px rgba(31, 42, 51, .07);
    }
}


/* AVADHRA V1.4 — navegación refinada */

.navigation a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.navigation {
    gap: 22px;
}

@media (max-width: 680px) {
    .navigation a {
        font-size: 14px;
    }

    .navigation {
        gap: 12px 18px;
    }
}


/* AVADHRA V1.4 — nuestra esencia */

.essence-section {
    background: var(--av-color-blue-soft);
    color: var(--av-color-ink);
    position: relative;
}

.essence-section .eyebrow {
    color: #76582F;
}

.essence-section .centered-heading h2 {
    color: var(--av-color-ink);
}

.essence-section .centered-heading > p:last-child {
    color: var(--av-color-ink);
    max-width: 760px;
}

.essence-section .essence-features {
    gap: 22px;
    align-items: stretch;
}

.essence-section .essence-features article {
    background: var(--av-color-ivory);
    border: 1px solid rgba(31, 42, 51, .12);
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 8px 24px rgba(31, 42, 51, .035);
    min-height: 160px;
}

.essence-section .essence-features h3 {
    color: var(--av-color-ink);
}

.essence-section .essence-features p {
    color: #34434D;
    line-height: 1.6;
}

.essence-section .feature-icon {
    object-fit: contain;
}

@media (max-width: 950px) {
    .essence-section .essence-features {
        gap: 14px;
    }

    .essence-section .essence-features article {
        padding: 22px 16px;
    }
}

@media (max-width: 680px) {
    .essence-section .essence-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .essence-section .essence-features article {
        border: 1px solid rgba(31, 42, 51, .12);
        padding: 22px 20px;
        min-height: auto;
    }
}

/* AVADHRA V1.4 — pictogramas bronce dorado */
/* Conversión provisional de trazos a la paleta institucional */

.essence-section .essence-features .feature-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(61%)
        sepia(19%)
        saturate(738%)
        hue-rotate(355deg)
        brightness(92%)
        contrast(88%);
}


/* AVADHRA V1.4 — Qué hacemos */

.services-section {
    background: var(--av-color-ivory);
    color: var(--av-color-ink);
}

.services-section .eyebrow-light {
    color: #76582F;
}

.services-section .centered-heading h2,
.services-section .centered-heading > p:last-child {
    color: var(--av-color-ink);
}

.services-section .services-grid {
    gap: 20px;
    align-items: stretch;
}

.services-section .service-card {
    background: #FFFFFF;
    border: 1px solid rgba(31, 42, 51, .12);
    border-radius: 16px;
    padding: 32px 24px;
    min-height: 265px;
    box-shadow: 0 8px 24px rgba(31, 42, 51, .035);
}

.services-section .service-card:last-child {
    border: 1px solid rgba(31, 42, 51, .12);
}

.services-section .service-card h3 {
    color: var(--av-color-ink);
    font-size: 18px;
}

.services-section .service-card p {
    color: #34434D;
    font-size: 14px;
    line-height: 1.6;
}

.services-section .service-symbol {
    filter:
        brightness(0)
        saturate(100%)
        invert(61%)
        sepia(19%)
        saturate(738%)
        hue-rotate(355deg)
        brightness(92%)
        contrast(88%);
}

@media (max-width: 950px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .services-section .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services-section .service-card {
        min-height: auto;
        padding: 26px 22px;
        border: 1px solid rgba(31, 42, 51, .12);
    }
}


/* AVADHRA V1.4 — Cómo transformamos */

.section-navy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #1F2A33;
    color: #F7F1E3;
}

/* Ondas sutiles: conversaciones en movimiento */
.section-navy::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            ellipse at 95% 0%,
            rgba(167, 201, 232, .12),
            transparent 48%
        ),
        repeating-radial-gradient(
            ellipse at 115% 125%,
            transparent 0,
            transparent 47px,
            rgba(176, 141, 87, .09) 48px,
            transparent 49px,
            transparent 75px
        );
}

.section-navy .eyebrow-light {
    color: #D2BA87;
}

.section-navy h2 {
    color: #F7F1E3;
}

.section-navy .section-prose,
.section-navy .section-prose p {
    color: #F7F1E3;
    line-height: 1.75;
}

.section-navy .approach-grid {
    position: relative;
    z-index: 1;
    align-items: center;
}

@media (max-width: 680px) {
    .section-navy .approach-grid {
        gap: 20px;
    }

    .section-navy::before {
        opacity: .6;
    }
}


/* AVADHRA V1.4 — ondas SVG definitivas */

/* Eliminar la textura circular anterior */
#enfoque.section-navy::before {
    content: none;
    background: none;
}

/* Tres conversaciones gráficas */
#enfoque.section-navy::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 260px;
    pointer-events: none;
    z-index: 0;

    background-image:
        url("/assets/avadhra/img/grecas/ondas-conversacion-v1.svg");

    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    opacity: .72;
}

#enfoque.section-navy .approach-grid {
    position: relative;
    z-index: 1;
}

@media (max-width: 680px) {
    #enfoque.section-navy::after {
        height: 150px;
        opacity: .42;
    }
}


/* AVADHRA V1.4 — panel conversacional */

/* Las ondas acompañan al contenido sin dominarlo */
#enfoque.section-navy::after {
    opacity: .48;
}

/* Panel de lectura para el discurso organizacional */
#enfoque .section-prose {
    position: relative;
    z-index: 2;

    background: rgba(13, 29, 41, .68);
    border: none;
    border-radius: 20px;

    padding: 34px 38px;

    box-shadow:
        0 14px 36px rgba(0, 0, 0, .12);

    color: #F7F1E3;
}

/* Mantener una lectura clara y continua */
#enfoque .section-prose p {
    color: #F7F1E3;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Separación visual entre título y panel */
#enfoque .approach-grid {
    gap: 70px;
    align-items: center;
}

/* Tabletas */
@media (max-width: 950px) {
    #enfoque .approach-grid {
        gap: 35px;
    }

    #enfoque .section-prose {
        padding: 26px 28px;
    }
}

/* Dispositivos móviles */
@media (max-width: 680px) {
    #enfoque .approach-grid {
        gap: 24px;
    }

    #enfoque .section-prose {
        padding: 24px 22px;
        border-radius: 16px;
    }

    #enfoque .section-prose p {
        font-size: 16px;
        line-height: 1.7;
    }

    #enfoque.section-navy::after {
        opacity: .28;
    }
}


/* AVADHRA V1.4 — preview AEG grid */

/* Sección AEG con patrón sutil inspirado en retícula metálica */
#aeg {
    position: relative;
    overflow: hidden;
    background: #F7F1E3;
}

#aeg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        radial-gradient(
            circle at center,
            rgba(31, 42, 51, .08) 0 12px,
            rgba(31, 42, 51, 0) 12px 44px
        ),
        radial-gradient(
            circle at center,
            rgba(176, 141, 87, 0) 0 17px,
            rgba(176, 141, 87, .30) 17px 19px,
            rgba(176, 141, 87, 0) 19px 44px
        );
    background-size: 84px 84px;
    background-position: 0 0, 0 0;
}

#aeg .container,
#aeg .aeg-grid {
    position: relative;
    z-index: 1;
}

#aeg .aeg-grid > div {
    max-width: 760px;
    background: rgba(247, 241, 227, .86);
    border: 1px solid rgba(176, 141, 87, .22);
    border-radius: 24px;
    padding: 38px 42px;
    box-shadow: 0 16px 40px rgba(31, 42, 51, .08);
    backdrop-filter: blur(2px);
}

#aeg .aeg-grid p:not(.eyebrow) {
    max-width: 58ch;
}

@media (max-width: 900px) {
    #aeg::before {
        opacity: .18;
        background-size: 70px 70px;
    }

    #aeg .aeg-grid > div {
        padding: 30px 26px;
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    #aeg::before {
        opacity: .14;
        background-size: 56px 56px;
    }

    #aeg .aeg-grid > div {
        padding: 24px 20px;
        border-radius: 16px;
    }
}


/* AVADHRA V1.4 — AEG sin panel */

/* Patrón circular con mayor presencia */
#aeg::before {
    opacity: .58;
    background-image:
        radial-gradient(
            circle at center,
            rgba(31, 42, 51, .07) 0 13px,
            transparent 14px 44px
        ),
        radial-gradient(
            circle at center,
            transparent 0 17px,
            rgba(176, 141, 87, .36) 18px 20px,
            transparent 21px 44px
        );
    background-size: 84px 84px;
    background-position: 0 0;
}

/* Sin tarjeta: contenido integrado en el fondo */
#aeg .aeg-grid > div {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 22px 0;
    max-width: 780px;
}

/* Mantener jerarquía y legibilidad */
#aeg .aeg-grid {
    position: relative;
    z-index: 1;
}

#aeg .aeg-grid h2 {
    color: #1F2A33;
}

#aeg .aeg-grid p:not(.eyebrow) {
    color: #435667;
}

@media (max-width: 900px) {
    #aeg::before {
        opacity: .46;
    }

    #aeg .aeg-grid > div {
        padding: 16px 0;
    }
}

@media (max-width: 640px) {
    #aeg::before {
        opacity: .32;
        background-size: 70px 70px;
    }

    #aeg .aeg-grid > div {
        padding: 10px 0;
    }
}


/* AVADHRA V1.4 — Susurro orgánico */
/* Silueta fluida para el panel de Cómo transformamos */

#enfoque .section-prose {
    border-radius: 12% 6% 11% 5% / 16% 13% 19% 12%;
    overflow: hidden;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 680px) {
    #enfoque .section-prose {
        border-radius: 9% 5% 9% 5% / 9% 8% 12% 8%;
    }
}


/* AVADHRA V1.4 — Contacto institucional */
/* Conserva íntegramente el fondo de la sección */

#contacto .contact-v14 {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

#contacto .contact-v14 h2 {
    max-width: 800px;
    margin: 0 auto 26px;
    color: #F7F1E3;
}

#contacto .contact-v14__description {
    max-width: 740px;
    margin: 0 auto 32px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.75;
    color: #E4EBF0;
}

#contacto .contact-v14__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

#contacto .contact-v14__primary {
    border-radius: 28px;
    padding: 15px 30px;
    background: #B08D57;
    color: #FFFFFF;
}

#contacto .contact-v14__primary:hover {
    background: #9D7943;
}

#contacto .contact-v14__note {
    margin: 25px auto 0;
    font-size: 13px;
    color: #D9E6EC;
}

@media (max-width: 680px) {
    #contacto .contact-v14 h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    #contacto .contact-v14__primary {
        width: 100%;
        max-width: 310px;
    }
}


/* AVADHRA V1.4 — Hero móvil con imagen de fondo */
/* Solo vista previa. Escritorio conserva su composición. */

@media (max-width: 680px) {

    .hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;

        background-color: #F7F1E3;

        background-image:
            linear-gradient(
                180deg,
                rgba(247, 241, 227, .97) 0%,
                rgba(247, 241, 227, .92) 38%,
                rgba(247, 241, 227, .82) 68%,
                rgba(247, 241, 227, .66) 100%
            ),
            url('/assets/avadhra/img/grecas/Grecas1.png');

        background-repeat: no-repeat;
        background-size: cover;
        background-position: center, 62% center;
    }

    .hero .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        align-items: center;
    }

    .hero .hero-copy {
        position: relative;
        z-index: 1;
        padding: 64px 0 76px;
    }

    .hero .hero-art {
        display: none;
    }

    .hero h1,
    .hero .hero-description {
        position: relative;
        z-index: 1;
    }
}
