/* =====================================================
   POLÍTICA DE CALIDAD — ¿En qué creemos? (prefijo .pol-)
   Reusa tokens globales (--c-primary, --c-soft, etc.).
   ===================================================== */

/* ── 1) Propósito ──────────────────────────────────── */
.pol-purpose {
    background:
        radial-gradient(120% 90% at 90% 0%, rgba(19, 35, 229, .06), transparent 55%),
        var(--c-white, #fff);
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.pol-purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}
.pol-purpose-copy h1 {
    color: var(--c-primary);
    margin: .5rem 0 1.75rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
}
.pol-purpose-text p {
    color: var(--c-muted);
    line-height: 1.8;
    margin: 0 0 1.25rem;
    max-width: 56ch;
}
.pol-purpose-text p:last-child { margin-bottom: 0; }

.pol-purpose-media {
    position: relative;
    border-radius: var(--radius-lg, 22px);
    overflow: visible;
}
.pol-purpose-media > img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg, 22px);
    box-shadow: var(--shadow-card);
    display: block;
}
.pol-quote {
    position: absolute;
    left: clamp(-1rem, -2vw, -2rem);
    bottom: clamp(1.25rem, 3vw, 2rem);
    margin: 0;
    max-width: 340px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-lg, 22px);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 40px -12px rgba(19, 35, 229, .55);
}
.pol-quote p {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.35;
    letter-spacing: .01em;
}

/* ── 2) Nuestro ADN — Misión / Visión / Política ───── */
.pol-adn { background: var(--c-soft, #EEF1FC); }
.pol-adn-list {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4.5rem);
}
.pol-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.pol-block--reverse .pol-block-media { order: 2; }
.pol-block--reverse .pol-block-copy  { order: 1; }
.pol-block-media {
    border-radius: var(--radius-lg, 22px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3;
    background: #fff;
}
.pol-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-soft, ease);
}
.pol-block:hover .pol-block-media img { transform: scale(1.04); }
.pol-block-copy h3 {
    color: var(--c-primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 1rem;
}
.pol-block-copy p {
    color: var(--c-muted);
    line-height: 1.8;
    margin: 0;
    max-width: 60ch;
}

/* ── 3) Valores GCAB ───────────────────────────────── */
/* Tarjeta con badge azul a la izquierda; el significado se
   despliega HACIA ABAJO al pasar el cursor o al enfocar. */
.pol-values { background: var(--c-white, #fff); }
.pol-values-grid {
    list-style: none;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;            /* la tarjeta expandida no estira a sus hermanas */
}
.pol-values-grid > li { margin-left: 28px; }   /* deja salir el badge a la izquierda */

.pol-value {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-border, #DCE2F1);
    border-radius: 20px;
    min-height: 100px;
    padding: 1.4rem 1.5rem 1.4rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow var(--t, .25s ease), border-color var(--t, .25s ease);
}
.pol-value:hover,
.pol-value:focus-within {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-card);
    outline: none;
}
/* Badge azul cuadrado-redondeado que sobresale a la izquierda */
.pol-value-icon {
    position: absolute;
    left: -28px;
    top: 1.4rem;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--c-primary);
    box-shadow: 0 12px 26px -10px rgba(19, 35, 229, .55);
}
.pol-value-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.pol-value-name {
    margin: 0;
    color: var(--c-primary);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.35;
}

/* Descripción que se despliega hacia abajo */
.pol-value-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease-soft, ease), opacity .3s ease, margin-top .4s ease;
}
.pol-value:hover .pol-value-reveal,
.pol-value:focus-within .pol-value-reveal {
    max-height: 240px;
    opacity: 1;
    margin-top: 1rem;
}
.pol-value-divider {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--c-border, #DCE2F1);
    margin-bottom: .9rem;
}
.pol-value-reveal p {
    margin: 0;
    color: var(--c-muted);
    font-size: .92rem;
    line-height: 1.65;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 980px) {
    .pol-purpose-grid { grid-template-columns: 1fr; }
    .pol-purpose-media { order: -1; }
    .pol-block,
    .pol-block--reverse {
        grid-template-columns: 1fr;
    }
    .pol-block--reverse .pol-block-media,
    .pol-block--reverse .pol-block-copy { order: 0; }
    .pol-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .pol-values-grid { grid-template-columns: 1fr; }
    .pol-quote {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }
}

/* Reduce-motion: sin transiciones largas */
@media (prefers-reduced-motion: reduce) {
    .pol-value-reveal,
    .pol-block-media img { transition: opacity .2s ease; }
}

/* ── 4) Contacto (variante lavanda, igual que /nosotros) ─ */
.pol-contact {
    background: #eef3fd;
    color: var(--c-text);
}
.pol-contact .contact-copy h2 { color: var(--c-primary); }
.pol-contact .contact-copy h2 .text-soft { color: var(--c-primary); opacity: .55; }
.pol-contact .eyebrow { color: var(--c-muted); }
.pol-contact .eyebrow .dash { background: var(--c-muted); }
.pol-contact .lead { color: var(--c-muted); }
.pol-contact .contact-info strong { color: var(--c-primary); }
.pol-contact .contact-info a { color: var(--c-muted); transition: color var(--t); }
.pol-contact .contact-info a:hover { color: var(--c-primary); }
.pol-contact .contact-form {
    background: #fff;
    box-shadow:
        0 25px 60px -25px rgba(19, 35, 229, .25),
        0 8px 20px -8px rgba(0, 0, 0, .08);
}
/* Mensaje de éxito / error (ocupa todo el ancho del grid del form) */
.pol-contact .form-success,
.pol-contact .form-error {
    grid-column: 1 / -1;
    border-radius: 10px;
    padding: .9rem 1rem;
    font-size: .92rem;
    line-height: 1.5;
}
.pol-contact .form-success { background: rgba(19, 35, 229, .08); color: var(--c-primary); }
.pol-contact .form-error   { background: rgba(220, 38, 38, .08); color: #b91c1c; }
