/* Archivo: institutional.css
   Funcion: Estilo especifico de la pagina institucional (institucional.php), misma
   direccion "natural/organico" que la portada y "Conocenos" (ver homepage.css, about.css):
   tonos tierra, formas organicas suaves, acentos botanicos y algo de movimiento ambiental.
   Se carga UNICAMENTE en institucional.php (ver includes/header.php) y todas las reglas
   van prefijadas con body.page-institutional. */

@keyframes organic-drift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.06) rotate(4deg); }
}

@keyframes gentle-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
}

/* ---------- Banner de cabecera: formas organicas con movimiento lento ---------- */
body.page-institutional .page-hero::before {
    border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
    animation: organic-drift 15s ease-in-out infinite;
}

body.page-institutional .page-hero::after {
    border-radius: 58% 42% 35% 65% / 55% 65% 35% 45%;
    animation: organic-drift 19s ease-in-out infinite reverse;
}

/* ---------- Icono de hoja junto al "eyebrow" de valores ---------- */
body.page-institutional .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.page-institutional .leaf-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-earth-clay);
    animation: gentle-sway 4s ease-in-out infinite;
    transform-origin: 70% 70%;
}

/* ---------- Titulos con mas presencia + subrayado verde a tierra ---------- */
body.page-institutional .section-title h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    letter-spacing: -0.01em;
}

body.page-institutional .section-title h2::after {
    background: linear-gradient(90deg, var(--color-primary), var(--color-earth-clay));
}

/* ---------- Iconos de mision/vision/valores: marco organico en vez de circulo ---------- */
body.page-institutional .value-icon {
    border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
    background: var(--color-earth-cream);
    color: var(--color-earth-clay-dark);
    transition: border-radius 0.6s var(--ease-smooth);
}

@media (hover: hover) {
    body.page-institutional .value-card:hover .value-icon,
    body.page-institutional .value-chip:hover .value-icon {
        border-radius: 58% 42% 35% 65% / 55% 65% 35% 45%;
    }
}

/* ---------- Seccion de valores: fondo calido con textura ---------- */
body.page-institutional .section-soft {
    background:
        radial-gradient(circle at 10% 15%, rgba(185, 118, 79, 0.07), transparent 42%),
        radial-gradient(circle at 90% 85%, rgba(74, 103, 65, 0.08), transparent 42%),
        radial-gradient(circle, rgba(74, 103, 65, 0.06) 1.4px, transparent 1.4px);
    background-size: auto, auto, 26px 26px;
    background-color: var(--color-earth-cream);
}

/* ---------- Ficha de la razon social: acento tierra en el borde ---------- */
body.page-institutional .info-box {
    background: var(--color-earth-cream);
    border-left: 4px solid var(--color-earth-clay);
}
