/* Archivo: announcements.css
   Funcion: Estilo especifico de "Anuncios" (anuncios.php), misma direccion
   "natural/organico" que el resto de paginas ya migradas (ver homepage.css, about.css,
   institutional.css, stores.css): tonos tierra, formas organicas suaves, acentos
   botanicos y algo de movimiento ambiental. Se carga UNICAMENTE en anuncios.php (ver
   includes/header.php) y todas las reglas van prefijadas con body.page-announcements. */

@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-announcements .page-hero::before {
    border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
    animation: organic-drift 15s ease-in-out infinite;
}

body.page-announcements .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" ---------- */
body.page-announcements .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.page-announcements .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-announcements .section-title h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    letter-spacing: -0.01em;
}

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

/* ---------- Tarjetas de anuncio: fondo calido en el marco de la foto + fecha en tierra ---------- */
body.page-announcements .announcement-card .media {
    background: var(--color-earth-cream);
}

body.page-announcements .announcement-date {
    color: var(--color-earth-clay-dark);
}
