/* ============================================================
   CEFA Curuguaty - Componentes de contenido
   ============================================================ */

/* ------------------------------------------------------------
   Quiénes somos / intro
   ------------------------------------------------------------ */
.about-media,
.intro-media {
    position: relative;
    padding: 0 0 46px 0;
}
.about-photo-main,
.intro-media > img {
    width: 88%;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
}
.about-photo-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}
.about-photo-small img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--yellow);
    border-radius: 46% 54% 58% 42% / 50% 42% 58% 50%;
    left: -60px;
    top: -45px;
    z-index: -1;
    opacity: .9;
}
.about-badge {
    position: absolute;
    top: 34px;
    right: 22px;
    background: var(--white);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 3;
    min-width: 108px;
}
.about-badge strong {
    display: block;
    font-family: var(--heading);
    font-size: 36px;
    line-height: 1;
    color: var(--green);
}
.about-badge span {
    display: block;
    font-size: 10.5px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 5px;
}
.about-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 8%;
    bottom: 8px;
    background-image: radial-gradient(var(--green) 1.8px, transparent 1.8px);
    background-size: 13px 13px;
    opacity: .22;
}
.about-content .section-head { margin-bottom: 28px; }
.about-content .section-title { margin-bottom: 18px; }
.feature-list {
    list-style: none;
    padding: 0;
    margin: 26px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--black);
    font-weight: 500;
    line-height: 1.5;
}
.feature-list i { color: var(--green); font-size: 18px; margin-top: 1px; flex: 0 0 auto; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }

.intro-year {
    position: absolute;
    right: 16px;
    bottom: 40px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    width: 118px;
    height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
}
.intro-year strong { font-family: var(--heading); font-size: 31px; line-height: 1; }
.intro-year small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.intro-dots {
    position: absolute;
    width: 110px;
    height: 110px;
    left: 0;
    top: -24px;
    background-image: radial-gradient(var(--yellow) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: .8;
    z-index: -1;
}
.intro-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.intro-highlights > div { display: flex; flex-direction: column; }
.intro-highlights span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 10px;
}
.intro-highlights strong { font-family: var(--heading); font-size: 18px; color: var(--black); line-height: 1.1; }
.intro-highlights small { font-size: 11.5px; color: var(--text); margin-top: 3px; }
.intro-text p:last-child { margin-bottom: 0; }

.history-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}
.history-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.history-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--yellow-soft);
    color: var(--yellow-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 18px;
}
.history-card h3 { font-size: 22px; margin-bottom: 10px; }
.history-card p { font-size: 14.5px; margin: 0; line-height: 1.75; }

/* ------------------------------------------------------------
   Identidad y valores
   ------------------------------------------------------------ */
.identity-card,
.identity-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.identity-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: var(--green-soft);
    opacity: .7;
    transition: transform var(--transition);
}
.identity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.identity-card:hover::after { transform: scale(1.3); }
.identity-icon,
.identity-detail-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--green);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 20px;
}
.identity-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    color: var(--yellow-dark);
    margin-bottom: 5px;
}
.identity-card h3,
.identity-detail-card h3 { font-size: 25px; margin-bottom: 12px; }
.identity-card p,
.identity-detail-card p { font-size: 14.5px; line-height: 1.8; margin-bottom: 16px; position: relative; z-index: 2; }
.identity-detail-card { padding: 38px; border-top: 4px solid var(--yellow); }
.identity-detail-card .identity-detail-icon { background: var(--green-soft); color: var(--green); }
.value-card {
    background: var(--white);
    border-radius: 16px;
    padding: 26px;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.value-card > span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow-soft);
    color: var(--yellow-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 16px;
}
.value-card h3 { font-size: 20px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.identity-quote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 64px 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.identity-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.3px, transparent 1.3px);
    background-size: 20px 20px;
    opacity: .5;
    mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
}
.quote-mark {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}
.identity-quote blockquote { position: relative; z-index: 2; margin: 0 0 20px; }
.identity-quote blockquote p {
    font-family: var(--heading);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    margin: 0;
}
.quote-author { position: relative; z-index: 2; }
.quote-author strong { display: block; font-family: var(--heading); font-size: 17px; color: var(--yellow); }
.quote-author span { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); margin-top: 2px; }

/* ------------------------------------------------------------
   Mensaje del director
   ------------------------------------------------------------ */
.director-wrap {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(3, 89, 78, .06);
}
.director-media {
    position: relative;
    min-height: 420px;
    background: var(--green-soft);
}
.director-media img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.director-quote {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: var(--shadow);
}
.director-content { padding: 50px 52px; }
.director-content .section-title { font-size: clamp(2rem, 3vw, 2.9rem); }
.director-message {
    margin: 24px 0 28px;
    padding-left: 22px;
    border-left: 3px solid var(--yellow);
}
.director-message p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text);
    margin: 0;
}
.director-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.director-signature strong { display: block; font-family: var(--heading); font-size: 19px; color: var(--black); }
.director-signature span { display: block; font-size: 12px; color: var(--text); }

.director-profile {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    top: 120px;
}
.director-profile-photo img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; display: block; }
.director-profile-body { padding: 28px; text-align: center; }
.director-profile-role {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.director-profile-body h2 { font-size: 26px; margin-bottom: 8px; }
.director-profile-body p { font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
.director-letter {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.letter-kicker {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    color: var(--yellow-dark);
    margin-bottom: 10px;
}
.director-letter > h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 26px; }
.director-letter-text p { font-size: 15.5px; line-height: 1.9; }
.director-letter-sign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.director-letter-sign strong { display: block; font-family: var(--heading); font-size: 19px; color: var(--black); }
.director-letter-sign span { display: block; font-size: 12px; color: var(--text); }
.sign-mark { font-size: 42px; color: var(--yellow); }
.director-value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    height: 100%;
}
.director-value-card > span {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 16px;
}
.director-value-card h3 { font-size: 21px; margin-bottom: 8px; }
.director-value-card p { font-size: 14px; line-height: 1.75; margin: 0; }

/* ------------------------------------------------------------
   Formación / programas
   ------------------------------------------------------------ */
.formation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.formation-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
}
.formation-badges i { font-size: 14px; }
.formation-media {
    position: relative;
    padding-bottom: 30px;
}
.formation-media img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.formation-media-card {
    position: absolute;
    left: -18px;
    bottom: 0;
    background: var(--yellow);
    color: var(--black);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.formation-media-card strong { display: block; font-family: var(--heading); font-size: 34px; line-height: 1; }
.formation-media-card small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.program-card-media { position: relative; height: 210px; overflow: hidden; }
.program-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program-card:hover .program-card-media img { transform: scale(1.06); }
.program-card-icon {
    position: absolute;
    right: 18px;
    bottom: -24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 4px solid var(--white);
}
.program-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.program-card-body h3 { font-size: 21px; margin-bottom: 10px; }
.program-card-body h3 a { color: var(--black); }
.program-card-body h3 a:hover { color: var(--green); }
.program-card-body p { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.program-card-body .text-link { margin-top: auto; }

.program-details { display: flex; flex-direction: column; gap: 58px; }
.program-detail {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 48px;
    align-items: center;
    scroll-margin-top: 130px;
}
.program-detail-reverse .program-detail-media { order: 2; }
.program-detail-reverse .program-detail-body { order: 1; }
.program-detail-media { position: relative; }
.program-detail-media img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.program-detail-icon {
    position: absolute;
    right: -14px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}
.program-detail-number {
    display: block;
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--yellow-dark);
    letter-spacing: .16em;
    margin-bottom: 6px;
}
.program-detail-body h3 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); margin-bottom: 10px; }
.program-detail-summary { font-size: 16px; color: var(--black); font-weight: 500; line-height: 1.65; }
.program-detail-body .rich-text { font-size: 14.5px; }

/* ------------------------------------------------------------
   Áreas productivas
   ------------------------------------------------------------ */
.area-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.area-card-media { position: relative; height: 220px; overflow: hidden; display: block; }
.area-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.area-card:hover .area-card-media img { transform: scale(1.06); }
.area-card-icon {
    position: absolute;
    left: 20px;
    bottom: -22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    border: 4px solid var(--white);
}
.area-card-body { padding: 32px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.area-card-body h3 { font-size: 22px; margin-bottom: 8px; }
.area-card-body h3 a { color: var(--black); }
.area-card-body h3 a:hover { color: var(--green); }
.area-card-body p { font-size: 13.5px; line-height: 1.7; margin-bottom: 15px; }
.area-card-body .text-link { margin-top: auto; }
.area-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.area-process-item { display: flex; gap: 16px; align-items: flex-start; }
.area-process-item > span {
    font-family: var(--heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--yellow);
    letter-spacing: -.04em;
}
.area-process-item strong { display: block; font-family: var(--heading); font-size: 20px; color: var(--black); margin-bottom: 5px; }
.area-process-item p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.area-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    scroll-margin-top: 130px;
}
.area-detail-media { position: relative; height: 240px; overflow: hidden; }
.area-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.area-detail-icon {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
}
.area-detail-body { padding: 26px; }
.area-detail-body h3 { font-size: 24px; margin-bottom: 9px; }
.area-detail-description { font-size: 14.5px; font-weight: 500; color: var(--black); line-height: 1.65; }
.area-detail-content { font-size: 13.5px; }
.area-detail-content p:last-child { margin-bottom: 0; }
.internado-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    scroll-margin-top: 130px;
}
.internado-media { position: relative; height: 250px; }
.internado-media img { width: 100%; height: 100%; object-fit: cover; }
.internado-icon {
    position: absolute;
    left: 20px;
    bottom: -22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    border: 4px solid var(--white);
}
.internado-body { padding: 34px 26px 26px; }
.internado-body h3 { font-size: 23px; margin-bottom: 9px; }
.internado-body > p { font-size: 14px; line-height: 1.7; }
.internado-body .rich-text { font-size: 13.5px; }
.internado-body .rich-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Alternancia
   ------------------------------------------------------------ */
.alternance-wrap {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 60px;
    align-items: center;
}
.alternance-media { position: relative; }
.alternance-media img {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.alternance-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    right: -26px;
    bottom: -26px;
    background-image: radial-gradient(var(--yellow) 2px, transparent 2px);
    background-size: 16px 16px;
    z-index: -1;
    opacity: .85;
}
.alternance-content .section-title { margin-bottom: 18px; }
.alternance-points { display: flex; flex-direction: column; gap: 18px; margin: 26px 0; }
.alternance-point { display: flex; gap: 16px; align-items: flex-start; }
.alternance-point > span {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex: 0 0 auto;
}
.alternance-point strong { display: block; font-family: var(--heading); font-size: 18px; color: var(--black); margin-bottom: 3px; }
.alternance-point p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.alternance-page-media { position: relative; }
.alternance-page-media img {
    width: 100%;
    aspect-ratio: 4 / 3.6;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.alternance-page-badge {
    position: absolute;
    left: -18px;
    bottom: 26px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.alternance-page-badge strong { display: block; font-family: var(--heading); font-size: 34px; line-height: 1; }
.alternance-page-badge small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.phase-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.phase-card-alt { background: var(--green); color: var(--white); border-color: transparent; }
.phase-number {
    position: absolute;
    right: 26px;
    top: 18px;
    font-family: var(--heading);
    font-size: 86px;
    font-weight: 700;
    line-height: 1;
    color: rgba(3, 89, 78, .07);
}
.phase-card-alt .phase-number { color: rgba(255, 255, 255, .1); }
.phase-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--yellow);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 20px;
}
.phase-card h3 { font-size: 26px; margin-bottom: 10px; }
.phase-card p { font-size: 14.5px; line-height: 1.8; }
.phase-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.phase-card li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 9px; }
.phase-card li i { color: var(--green); }
.phase-card-alt h3 { color: var(--white); }
.phase-card-alt p { color: rgba(255, 255, 255, .75); }
.phase-card-alt li { color: rgba(255, 255, 255, .8); }
.phase-card-alt li i { color: var(--yellow); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit-item {
    display: flex;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.benefit-item > span {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}
.benefit-item strong { display: block; font-family: var(--heading); font-size: 17px; color: var(--black); margin-bottom: 4px; }
.benefit-item p { font-size: 12.5px; line-height: 1.6; margin: 0; }

/* ------------------------------------------------------------
   Yerba mate
   ------------------------------------------------------------ */
.yerba-section {
    background: var(--green);
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.yerba-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.3px);
    background-size: 22px 22px;
    opacity: .45;
    mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.yerba-media { position: relative; }
.yerba-media img {
    width: 100%;
    aspect-ratio: 4 / 3.3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.yerba-seal {
    position: absolute;
    right: -14px;
    bottom: 24px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 7px solid var(--green);
    box-shadow: var(--shadow-lg);
}
.yerba-seal span { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.yerba-seal strong { font-family: var(--heading); font-size: 15px; line-height: 1.05; }
.yerba-seal small { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.yerba-section .section-title { color: var(--white); }
.yerba-section .section-title .brush-highlight { color: var(--yellow); }
.yerba-list { list-style: none; padding: 0; margin: 24px 0 0; }
.yerba-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 11px; }
.yerba-list i { color: var(--yellow); font-size: 16px; }
.subtitle-light { color: var(--yellow); }
.yerba-intro-media { position: relative; }
.yerba-intro-media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.yerba-intro-seal {
    position: absolute;
    right: -12px;
    bottom: 24px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.yerba-intro-seal i { font-size: 20px; }
.yerba-intro-seal strong { font-family: var(--heading); font-size: 20px; line-height: 1; }
.yerba-intro-seal small { font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; }
.yerba-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.yerba-facts strong { display: block; font-family: var(--heading); font-size: 15px; color: var(--black); margin-bottom: 3px; }
.yerba-facts span { font-size: 12px; color: var(--text); line-height: 1.4; }
.history-collage { position: relative; height: 410px; }
.history-collage img {
    position: absolute;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 6px solid var(--white);
}
.history-img-1 { width: 68%; height: 78%; left: 0; top: 0; }
.history-img-2 { width: 48%; height: 58%; right: 0; bottom: 0; }
.history-img-3 { width: 52%; height: 62%; left: 0; top: 0; }
.history-img-4 { width: 56%; height: 66%; right: 0; bottom: 0; }
.yerba-history-text p { font-size: 15px; line-height: 1.9; }
.yerba-history-text p:last-child { margin-bottom: 0; }
.process-timeline { display: flex; flex-direction: column; gap: 24px; margin-top: 10px; }
.process-step { display: grid; grid-template-columns: 78px 1fr; gap: 24px; scroll-margin-top: 130px; }
.process-step-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.process-step-marker > span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading);
    font-size: 20px;
    font-weight: 700;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.process-step-line { flex: 1; width: 2px; background: var(--border); margin-top: 8px; }
.process-step:last-child .process-step-line { display: none; }
.process-step-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.process-step-media { position: relative; height: 100%; min-height: 240px; }
.process-step-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.process-step-icon {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: var(--shadow-sm);
}
.process-step-body { padding: 30px; }
.process-step-body h3 { font-size: 25px; margin-bottom: 8px; }
.process-step-body > p { font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }
.process-toggle .when-open { display: none; }
.process-toggle:not(.collapsed) .when-open { display: inline; }
.process-toggle:not(.collapsed) .when-collapsed { display: none; }
.process-step-content { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.process-step-content p { line-height: 1.85; }
.download-card {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--black);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--black); }
.download-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #FDECEA;
    color: #C0392B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex: 0 0 auto;
}
.download-card h3 { font-size: 18px; margin-bottom: 6px; }
.download-card p { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.download-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--green); font-weight: 600; }
.inquiry-info { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.inquiry-info > div { display: flex; gap: 14px; align-items: flex-start; }
.inquiry-info > div > span {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}
.inquiry-info strong { display: block; font-family: var(--heading); font-size: 16px; color: var(--black); margin-bottom: 2px; }
.inquiry-info p { font-size: 13.5px; line-height: 1.65; margin: 0; }

/* ------------------------------------------------------------
   Noticias
   ------------------------------------------------------------ */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card-media { position: relative; display: block; height: 235px; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    min-width: 52px;
    box-shadow: var(--shadow-sm);
}
.news-date strong { display: block; font-family: var(--heading); font-size: 22px; line-height: 1; color: var(--green); }
.news-date small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-top: 3px; }
.news-category {
    position: absolute;
    left: 16px;
    bottom: 14px;
    background: var(--white);
    color: var(--black);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-category::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cat-color, var(--yellow));
}
.news-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card-title { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.news-card-title a { color: var(--black); }
.news-card-title a:hover { color: var(--green); }
.news-card-text { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.news-card-body .text-link { margin-top: auto; }
.news-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; }
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    transition: all var(--transition);
}
.filter-btn span {
    background: var(--light);
    border-radius: 20px;
    font-size: 10px;
    padding: 1px 7px;
    color: var(--text);
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }
.filter-btn.active span { background: rgba(255, 255, 255, .16); color: var(--white); }
.news-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.news-results-head h2 { font-size: 28px; margin-bottom: 3px; }
.news-results-head p { font-size: 13px; margin: 0; }
.news-search {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
    max-width: 310px;
    width: 100%;
}
.news-search input {
    border: 0;
    outline: 0;
    padding: 10px 18px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    background: transparent;
}
.news-search button {
    border: 0;
    background: var(--green);
    color: var(--white);
    padding: 0 18px;
    font-size: 15px;
}
.news-search button:hover { background: var(--yellow); color: var(--black); }
.news-detail-header {
    background: var(--green);
    color: var(--white);
    padding: 70px 0 150px;
    position: relative;
    overflow: hidden;
}
.news-detail-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.3px, transparent 1.3px);
    background-size: 21px 21px;
    opacity: .45;
    mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .7);
}
.news-detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-detail-category {
    background: var(--white);
    color: var(--black);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 6px 13px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-detail-category::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat-color, var(--yellow)); }
.news-detail-title { color: var(--white); font-size: clamp(2.2rem, 4.3vw, 4rem); max-width: 980px; margin-bottom: 18px; }
.news-detail-lead { max-width: 760px; color: rgba(255, 255, 255, .78); font-size: 17px; margin: 0; }
.news-detail-cover {
    margin-top: -105px;
    position: relative;
    z-index: 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
    background: var(--white);
}
.news-detail-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.news-detail-body { margin-top: 50px; padding-bottom: 80px; }
.news-detail-content { font-size: 15.5px; line-height: 1.9; }
.news-detail-content > p:first-of-type { font-size: 18px; color: var(--black); font-weight: 500; }
.news-source {
    display: flex;
    gap: 14px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-top: 34px;
}
.news-source > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}
.news-source strong { display: block; font-family: var(--heading); font-size: 16px; color: var(--black); }
.news-source p { font-size: 13px; margin: 2px 0 6px; }
.news-source a { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.news-share {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.news-share > span { font-family: var(--heading); font-weight: 600; font-size: 15px; color: var(--black); margin-right: 4px; }
.news-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.news-share a:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.news-back { margin-top: 28px; }
.news-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.sidebar-card h3 { font-size: 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-news { display: flex; gap: 12px; margin-bottom: 16px; color: var(--black); }
.sidebar-news:last-child { margin-bottom: 0; }
.sidebar-news img { width: 72px; height: 66px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.sidebar-news span { font-family: var(--heading); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sidebar-news small { display: block; font-family: var(--body); font-size: 10.5px; font-weight: 500; color: var(--text); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-news:hover { color: var(--green); }
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--border); }
.sidebar-cats li:last-child { border-bottom: 0; }
.sidebar-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--black);
}
.sidebar-cats a span {
    background: var(--light);
    border-radius: 20px;
    font-size: 10px;
    padding: 1px 7px;
    color: var(--text);
}
.sidebar-cats a:hover { color: var(--green); }
.sidebar-cta {
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sidebar-cta > span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 14px;
}
.sidebar-cta h3 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.6; }
.sidebar-cta .btn { margin-top: 6px; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: 0; }
.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 13.5px;
    color: var(--black);
    font-weight: 500;
}
.sidebar-links a:hover { color: var(--green); }

/* ------------------------------------------------------------
   Galería
   ------------------------------------------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--light);
    display: block;
    cursor: zoom-in;
    text-align: left;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(7n + 4) { grid-row: span 2; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(1, 47, 42, .82) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 18px;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-overlay i {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.gallery-overlay span { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-grid-home { grid-auto-rows: 200px; }
.gallery-grid-compact { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 145px; gap: 12px; }
.gallery-grid-compact .gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 1; }
.gallery-grid-compact .gallery-item:nth-child(7n + 4) { grid-row: span 1; }
.gallery-grid-page { grid-auto-rows: 230px; }
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 42px 0 10px;
}
.gallery-filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}
.gallery-filter-btn span { background: var(--light); border-radius: 20px; font-size: 10px; padding: 1px 7px; color: var(--text); }
.gallery-filter-btn:hover { border-color: var(--green); color: var(--green); }
.gallery-filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }
.gallery-filter-btn.active span { background: rgba(255, 255, 255, .16); color: var(--white); }
.gallery-album { padding-top: 64px; scroll-margin-top: 120px; }
.gallery-album.is-hidden { display: none; }
.gallery-album-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.gallery-album-kicker {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    color: var(--yellow-dark);
    margin-bottom: 5px;
}
.gallery-album-head h2 { font-size: 32px; margin-bottom: 5px; }
.gallery-album-head p { font-size: 14px; margin: 0; max-width: 680px; }
.gallery-album-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}
.album-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    color: var(--black);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--black); }
.album-card-media { position: relative; height: 230px; overflow: hidden; }
.album-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover .album-card-media img { transform: scale(1.06); }
.album-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(1, 47, 42, .78);
    color: var(--white);
    border-radius: 30px;
    padding: 5px 11px;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.album-card-body { padding: 24px; }
.album-card-body h3 { font-size: 22px; margin-bottom: 7px; }
.album-card-body p { font-size: 13.5px; line-height: 1.65; margin-bottom: 12px; }
.lightbox-modal .modal-content {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}
.lightbox-stage img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    right: 0;
    top: -44px;
    z-index: 3;
    filter: invert(1);
    opacity: .9;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox-nav:hover { background: var(--yellow); color: var(--black); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--white);
    padding: 16px 6px 0;
}
.lightbox-caption p { margin: 0; font-size: 14px; }
.lightbox-caption span { font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; }

/* ------------------------------------------------------------
   Aliados
   ------------------------------------------------------------ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.partner-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.partner-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.partner-item img {
    max-width: 150px;
    max-height: 58px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .68;
    transition: filter var(--transition), opacity var(--transition);
}
.partner-item:hover img { filter: none; opacity: 1; }
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 22px 24px;
    height: 100%;
    color: var(--black);
    transition: transform var(--transition), box-shadow var(--transition);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--black); }
.partner-card-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.partner-card-logo img { max-width: 150px; max-height: 70px; object-fit: contain; }
.partner-card-name { font-family: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.partner-card-link { font-size: 11.5px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.social-cards { display: flex; flex-direction: column; gap: 12px; }
.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    color: var(--black);
    transition: transform var(--transition), box-shadow var(--transition);
}
.social-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); color: var(--black); }
.social-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}
.social-card strong { display: block; font-family: var(--heading); font-size: 18px; }
.social-card small { display: block; font-size: 11px; color: var(--text); text-transform: capitalize; }
.social-card > i:last-child { margin-left: auto; color: var(--green); }

/* ------------------------------------------------------------
   Video
   ------------------------------------------------------------ */
.video-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--green-deep);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}
.video-wrap iframe,
.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.vida-video-wrap {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0;
    background: var(--green);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.vida-video-frame { min-height: 420px; background: var(--green-deep); position: relative; }
.vida-video-frame iframe,
.vida-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vida-video-info { padding: 48px 42px; color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.video-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--yellow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-weight: 700;
    margin-bottom: 12px;
}
.vida-video-info h2 { color: var(--white); font-size: 32px; margin-bottom: 12px; }
.vida-video-info p { color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.8; margin: 0; }

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta-band {
    position: relative;
    padding: 100px 0;
    background: var(--green);
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cta-image);
    background-size: cover;
    background-position: center;
    opacity: .32;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 47, 42, .95) 0%, rgba(3, 89, 78, .82) 60%, rgba(3, 89, 78, .65) 100%);
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.3px);
    background-size: 22px 22px;
    opacity: .4;
    mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.cta-inner { max-width: 720px; position: relative; z-index: 2; }
.cta-inner h2 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 3.4rem); margin-bottom: 14px; }
.cta-inner h2 .brush-highlight { color: var(--yellow); }
.cta-inner p { color: rgba(255, 255, 255, .78); font-size: 16px; margin-bottom: 26px; max-width: 600px; }

/* ------------------------------------------------------------
   Formularios
   ------------------------------------------------------------ */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: .01em;
}
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--black);
    background-color: var(--white);
    box-shadow: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(3, 89, 78, .10);
}
.form-control::placeholder { color: #A7B0B5; }
textarea.form-control { min-height: 130px; }
.form-note { font-size: 11.5px; color: var(--text); }
.contact-form .btn { margin-top: 4px; }
.alert {
    border: 0;
    border-radius: 10px;
    font-size: 13.5px;
    padding: 13px 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.alert-danger { background: #FDECEA; color: #922B21; }
.alert-success { background: var(--green-soft); color: var(--green); }

/* ------------------------------------------------------------
   Contacto
   ------------------------------------------------------------ */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.contact-info-card h3 { font-size: 21px; margin-bottom: 8px; }
.contact-info-card p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.contact-info-card p a { color: var(--text); }
.contact-info-card p a:hover { color: var(--green); }
.contact-info-card > a { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.contact-hours {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-top: 24px;
}
.contact-hours > span {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--yellow-soft);
    color: var(--yellow-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 auto;
}
.contact-hours strong { display: block; font-family: var(--heading); font-size: 16px; color: var(--black); }
.contact-hours p { font-size: 13px; margin: 2px 0 0; }
.contact-social { display: flex; align-items: center; gap: 9px; margin-top: 22px; }
.contact-social > span { font-size: 13px; font-weight: 600; color: var(--black); margin-right: 4px; }
.contact-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.contact-social a:hover { background: var(--green); color: var(--white); }
.contact-map { height: 460px; background: var(--light); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }

/* ------------------------------------------------------------
   Transparencia
   ------------------------------------------------------------ */
.transparency-legal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--green-soft);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 24px;
}
.transparency-legal > span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex: 0 0 auto;
}
.transparency-legal strong { display: block; font-family: var(--heading); font-size: 16px; color: var(--black); }
.transparency-legal p { font-size: 12.5px; line-height: 1.6; margin: 2px 0 0; }
.transparency-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.transparency-summary > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.transparency-summary > div:first-child { padding-top: 0; }
.transparency-summary > div:last-child { border-bottom: 0; padding-bottom: 0; }
.transparency-summary strong {
    font-family: var(--heading);
    font-size: 34px;
    color: var(--green);
    line-height: 1;
    min-width: 72px;
}
.transparency-summary span { font-size: 13px; color: var(--text); }
.transparency-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.transparency-cats { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.doc-search {
    position: relative;
    min-width: 260px;
}
.doc-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 14px;
}
.doc-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 16px 10px 40px;
    font-size: 13px;
    outline: 0;
    background: var(--white);
}
.doc-search input:focus { border-color: var(--green); }
.active-category-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 34px;
}
.active-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: var(--green);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex: 0 0 auto;
}
.active-category-head h2 { font-size: 26px; margin-bottom: 4px; }
.active-category-head p { font-size: 13.5px; margin: 0; }
.doc-group { margin-bottom: 50px; }
.doc-group:last-child { margin-bottom: 0; }
.doc-group-head {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.doc-group-head > span {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}
.doc-group-head h2 { font-size: 25px; margin-bottom: 3px; }
.doc-group-head p { font-size: 13px; margin: 0; max-width: 820px; }
.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    color: var(--black);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; color: var(--black); }
.doc-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #FDECEA;
    color: #C0392B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex: 0 0 auto;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { font-size: 15.5px; line-height: 1.3; margin-bottom: 4px; }
.doc-body p { font-size: 12px; line-height: 1.5; margin-bottom: 6px; color: var(--text); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10.5px; color: var(--text); font-weight: 600; }
.doc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.doc-download {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}
.doc-card:hover .doc-download { background: var(--green); color: var(--white); }
.transparency-contact-card {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 46px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.transparency-contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.3px, transparent 1.3px);
    background-size: 20px 20px;
    opacity: .5;
    mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.transparency-contact-card > * { position: relative; z-index: 2; }
.transparency-contact-card .section-subtitle { color: var(--yellow); }
.transparency-contact-card h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.transparency-contact-card p { color: rgba(255, 255, 255, .75); font-size: 14.5px; margin: 0; max-width: 700px; }

/* ------------------------------------------------------------
   Buscador
   ------------------------------------------------------------ */
.search-page-form { max-width: 820px; margin: 0 auto 46px; }
.search-page-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 8px 8px 22px;
    box-shadow: var(--shadow);
}
.search-page-form form > i { color: var(--text); font-size: 18px; }
.search-page-form input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    padding: 9px 0;
    min-width: 0;
}
.search-page-form .btn { border-radius: 40px; }
.search-suggestions { text-align: center; max-width: 900px; margin: 0 auto; }
.search-suggestions h2 { font-size: 30px; margin-bottom: 8px; }
.search-suggestions > p { font-size: 14.5px; margin-bottom: 20px; }
.search-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 44px; }
.search-tags a {
    background: var(--green-soft);
    color: var(--green);
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 600;
}
.search-tags a:hover { background: var(--green); color: var(--white); }
.search-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
}
.search-quick-links a {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    font-family: var(--heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}
.search-quick-links a:hover { border-color: var(--green); color: var(--green); }
.search-quick-links span {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.search-results-head { margin-bottom: 22px; }
.search-results-head h2 { font-size: 28px; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--black);
    transition: transform var(--transition), box-shadow var(--transition);
}
.search-result:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); color: var(--black); }
.search-result-media {
    width: 110px;
    height: 82px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--light);
}
.search-result-media img { width: 100%; height: 100%; object-fit: cover; }
.search-result-icon { display: flex; align-items: center; justify-content: center; color: #C0392B; font-size: 30px; background: #FDECEA; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-type {
    display: inline-block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}
.search-result-body strong { display: block; font-family: var(--heading); font-size: 18px; line-height: 1.25; margin-bottom: 3px; }
.search-result-text { display: block; font-size: 12.5px; color: var(--text); line-height: 1.55; }
.search-result-meta { display: block; font-size: 10.5px; color: #9AA3A8; margin-top: 4px; }
.search-result-arrow { color: var(--green); font-size: 18px; flex: 0 0 auto; }

/* ------------------------------------------------------------
   Estados vacíos y errores
   ------------------------------------------------------------ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 30px;
}
.empty-state > span {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}
.empty-state h3 { font-size: 24px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 18px; }
.error-section {
    background: var(--green);
    padding: 100px 0 110px;
    min-height: 66vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.error-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1.3px, transparent 1.3px);
    background-size: 22px 22px;
    opacity: .5;
    mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.error-content { max-width: 760px; margin: 0 auto; text-align: center; color: var(--white); position: relative; z-index: 2; }
.error-number {
    display: block;
    font-family: var(--heading);
    font-size: clamp(6rem, 16vw, 13rem);
    font-weight: 800;
    line-height: .8;
    color: var(--yellow);
    letter-spacing: -.05em;
    margin-bottom: 18px;
}
.error-content h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 14px; }
.error-content p { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 620px; margin: 0 auto 26px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.error-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.error-links a { color: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 600; }
.error-links a:hover { color: var(--yellow); }
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    padding: 20px;
}
.error-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.error-code {
    display: block;
    font-family: var(--heading);
    font-size: 70px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 10px;
}
.error-card h1 { font-size: 32px; margin-bottom: 10px; }
.error-card p { font-size: 14.5px; margin-bottom: 22px; }

/* ------------------------------------------------------------
   Página genérica
   ------------------------------------------------------------ */
.generic-page-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 42px;
    box-shadow: var(--shadow-sm);
}
.generic-page-content .rich-text { font-size: 15.5px; line-height: 1.9; }
.generic-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }

/* ------------------------------------------------------------
   Texto enriquecido
   ------------------------------------------------------------ */
.rich-text { color: var(--text); line-height: 1.85; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin-top: 1.6em; margin-bottom: .6em; }
.rich-text h2 { font-size: 1.9rem; }
.rich-text h3 { font-size: 1.45rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.25rem; margin-bottom: 1.2rem; }
.rich-text li { margin-bottom: .35rem; }
.rich-text blockquote {
    margin: 1.5rem 0;
    padding: 18px 22px;
    border-left: 3px solid var(--yellow);
    background: var(--soft);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}
.rich-text img { border-radius: 12px; margin: 1rem 0; }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text table { width: 100%; margin-bottom: 1.2rem; border-collapse: collapse; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 9px 12px; font-size: 14px; }
.rich-text th { background: var(--soft); }
.rich-text hr { border-color: var(--border); margin: 2rem 0; }

/* Acordeón */
.accordion-cefa .accordion-item {
    border: 1px solid var(--border);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--white);
}
.accordion-cefa .accordion-button {
    font-family: var(--heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    background: var(--white);
    padding: 18px 22px;
    box-shadow: none;
}
.accordion-cefa .accordion-button:not(.collapsed) { color: var(--green); background: var(--green-soft); }
.accordion-cefa .accordion-button::after {
    background-image: none;
    font-family: bootstrap-icons;
    content: "\f64d";
    font-size: 14px;
    width: auto;
    height: auto;
    transform: none;
    transition: transform var(--transition);
}
.accordion-cefa .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.accordion-cefa .accordion-body { font-size: 14px; line-height: 1.8; color: var(--text); padding: 20px 22px; }
.accordion-cefa .accordion-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Página de autoridades
   ------------------------------------------------------------ */
.authority-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.authority-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.authority-photo { height: 290px; overflow: hidden; background: var(--green-soft); }
.authority-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.authority-body { padding: 24px; text-align: center; }
.authority-body > span {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}
.authority-body h3 { font-size: 22px; margin-bottom: 8px; }
.authority-body p { font-size: 13.5px; line-height: 1.7; margin: 0; }

.vida-moments-media { position: relative; }
.vida-moments-media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.history-collage-2 { height: 440px; }
.video-wrap-vertical {
    aspect-ratio: 9 / 16;
    max-width: 430px;
    margin: 0 auto;
}
.news-detail-date,
.news-detail-author { display: inline-flex; align-items: center; gap: 6px; }

.authority-profile {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.authority-profile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.authority-profile-photo { position: relative; min-height: 300px; background: var(--green-soft); }
.authority-profile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.authority-profile-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: 3px solid var(--white);
}
.authority-profile-body { padding: 30px; }
.authority-role {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.authority-profile-body h3 { font-size: 26px; margin-bottom: 10px; }
.authority-profile-body p { font-size: 14px; line-height: 1.8; }
.authority-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.authorities-cta-card {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 38px;
    color: var(--white);
    text-align: center;
}
.authorities-cta-card > span {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 16px;
}
.authorities-cta-card h3 { color: var(--white); font-size: 25px; margin-bottom: 8px; }
.authorities-cta-card p { color: rgba(255, 255, 255, .75); font-size: 14px; margin-bottom: 20px; }
.authorities-email { display: inline-block; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.authorities-email:hover { color: var(--yellow); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1399.98px) {
    .section { padding: 92px 0; }
    .hero-cefa .carousel-item { min-height: 700px; }
    .hero-title { font-size: clamp(2.8rem, 4.8vw, 4.4rem); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1199.98px) {
    .nav-main .nav-link { padding: 30px 10px; font-size: 13.5px; }
    .nav-cta { display: none !important; }
    .hero-visual { max-width: 480px; padding: 24px 14px 44px 24px; }
    .hero-photo-small { width: 150px; height: 150px; }
    .hero-float-card { right: -8px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .director-wrap { grid-template-columns: 1fr 1.3fr; }
    .director-content { padding: 40px; }
    .alternance-wrap { gap: 42px; }
    .vida-video-wrap { grid-template-columns: 1fr; }
    .vida-video-frame { min-height: 380px; }
    .news-sidebar { position: static; }
    .director-profile { position: static !important; }
    .generic-sidebar { position: static; }
}

@media (max-width: 991.98px) {
    html { scroll-padding-top: 90px; }
    .section { padding: 76px 0; }
    .section-sm { padding: 56px 0; }
    .topbar-right .topbar-sep,
    .topbar-right .topbar-item:not(.topbar-social-item) { display: none; }
    .hero-cefa .carousel-item { min-height: 0; padding: 64px 0 96px; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: clamp(2.6rem, 6vw, 3.8rem); }
    .hero-text { font-size: 16px; }
    .hero-visual { margin: 56px auto 0; max-width: 540px; }
    .hero-control { display: none; }
    .quick-section { margin-top: -50px; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .about-media, .intro-media { margin-bottom: 42px; }
    .director-wrap { grid-template-columns: 1fr; }
    .director-media { min-height: 360px; }
    .program-detail { grid-template-columns: 1fr; gap: 30px; }
    .program-detail-reverse .program-detail-media { order: 0; }
    .program-detail-reverse .program-detail-body { order: 1; }
    .alternance-wrap { grid-template-columns: 1fr; }
    .alternance-media { margin-bottom: 34px; }
    .phase-card { padding: 30px; }
    .area-process { grid-template-columns: 1fr; gap: 22px; }
    .authority-profile { grid-template-columns: 200px 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(7n + 4) { grid-row: span 1; }
    .search-quick-links { grid-template-columns: repeat(2, 1fr); }
    .news-detail-cover { margin-top: -80px; }
    .generic-page-content { padding: 30px; }
    .history-collage { height: 340px; margin-bottom: 30px; }
    .yerba-seal, .yerba-intro-seal { width: 100px; height: 100px; }
    .yerba-seal strong { font-size: 12px; }
    .process-step { grid-template-columns: 58px 1fr; gap: 18px; }
    .process-step-marker > span { width: 48px; height: 48px; font-size: 17px; }
    .cta-band { padding: 78px 0; }
    .site-footer { padding-top: 66px; }
    .footer-main { padding-bottom: 40px; }
    .transparency-contact-card { padding: 34px; }
    .authority-profile-photo { min-height: 260px; }
}

@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .section { padding: 62px 0; }
    .topbar { font-size: 12px; }
    .topbar-left .topbar-item:nth-child(3) { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-left { justify-content: center; }
    .topbar-right { display: none; }
    .navbar-cefa { min-height: 74px; }
    .navbar-brand img { width: 46px; }
    .brand-text strong { font-size: 23px; }
    .brand-text small { font-size: 8.5px; letter-spacing: .2em; }
    .hero-title { font-size: clamp(2.3rem, 8.4vw, 3.2rem); }
    .hero-kicker { font-size: 11px; letter-spacing: .12em; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-photo-main { border-width: 4px; border-radius: 22px; }
    .hero-photo-small { width: 118px; height: 118px; border-width: 5px; left: -4px; }
    .hero-badge-card, .hero-float-card { padding: 10px 13px; border-radius: 11px; }
    .hero-badge-card { left: 0; top: -12px; }
    .hero-float-card { right: 0; bottom: 16px; }
    .hero-badge-icon, .hero-float-icon { width: 36px; height: 36px; font-size: 16px; }
    .hero-badge-card strong, .hero-float-card strong { font-size: 15px; }
    .hero-badge-card small, .hero-float-card small { font-size: 9.5px; }
    .hero-dots { width: 74px; height: 74px; background-size: 12px 12px; }
    .quick-grid { grid-template-columns: 1fr; gap: 12px; }
    .quick-card { padding: 16px; }
    .quick-icon { width: 44px; height: 44px; font-size: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .stat-item { padding: 0; border-left: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
    .stat-icon { width: 46px; height: 46px; font-size: 20px; }
    .stat-value { font-size: 36px; }
    .stat-label { font-size: 11.5px; }
    .feature-list { grid-template-columns: 1fr; }
    .intro-highlights { grid-template-columns: 1fr 1fr; gap: 18px; }
    .director-content { padding: 30px; }
    .director-media { min-height: 300px; }
    .director-letter { padding: 30px; }
    .director-signature { flex-direction: column; align-items: flex-start; }
    .formation-media-card { left: 0; padding: 14px 18px; }
    .formation-media-card strong { font-size: 27px; }
    .program-card-media { height: 190px; }
    .area-card-media { height: 200px; }
    .phase-card { padding: 26px; }
    .phase-number { font-size: 64px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .authority-profile { grid-template-columns: 1fr; }
    .authority-profile-photo { min-height: 280px; }
    .authority-profile-body { padding: 24px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .gallery-grid-compact { grid-template-columns: 1fr 1fr; }
    .gallery-overlay { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(1, 47, 42, .78) 100%); padding: 12px; }
    .gallery-overlay span { font-size: 11px; }
    .gallery-overlay i { width: 28px; height: 28px; font-size: 12px; right: 10px; top: 10px; }
    .gallery-album-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .album-card-media { height: 190px; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .partner-item { min-height: 92px; padding: 16px; }
    .partner-item img { max-height: 44px; }
    .search-page-form form { flex-wrap: wrap; border-radius: 20px; padding: 14px; gap: 10px; }
    .search-page-form form > i { display: none; }
    .search-page-form input { flex: 1 1 100%; padding: 4px 6px; }
    .search-page-form .btn { width: 100%; }
    .search-quick-links { grid-template-columns: 1fr; }
    .search-result { flex-wrap: wrap; }
    .search-result-media { width: 70px; height: 62px; }
    .search-result-arrow { display: none; }
    .news-card-media { height: 200px; }
    .news-detail-header { padding: 54px 0 120px; }
    .news-detail-cover { margin-top: -70px; border-width: 4px; }
    .news-detail-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
    .news-detail-body { margin-top: 32px; padding-bottom: 60px; }
    .news-detail-content { font-size: 15px; }
    .news-source { flex-direction: column; }
    .news-filter { gap: 7px; }
    .filter-btn { padding: 8px 14px; font-size: 12px; }
    .transparency-toolbar { flex-direction: column; }
    .doc-search { width: 100%; min-width: 0; }
    .doc-card { flex-wrap: wrap; }
    .doc-download { margin-left: auto; }
    .transparency-summary { padding: 22px; }
    .transparency-summary strong { font-size: 28px; min-width: 58px; }
    .transparency-contact-card { padding: 26px; }
    .form-card { padding: 24px; }
    .contact-map { height: 340px; }
    .error-section { padding: 70px 0 80px; min-height: 60vh; }
    .error-actions .btn { width: 100%; }
    .cta-inner p { font-size: 15px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .footer-bottom ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 25px; right: 16px; bottom: 16px; }
    .back-to-top { right: 16px; bottom: 78px; width: 40px; height: 40px; }
    .flash-stack { top: 84px; right: 12px; width: calc(100% - 24px); }
    .page-hero { padding: 52px 0; }
    .page-hero-text { font-size: 15px; }
    .history-collage { height: 300px; }
    .process-step { grid-template-columns: 1fr; gap: 12px; }
    .process-step-marker { flex-direction: row; align-items: center; gap: 10px; }
    .process-step-line { display: none; }
    .process-step-body { padding: 22px; }
    .process-step-media { min-height: 200px; }
    .vida-video-frame { min-height: 240px; }
    .vida-video-info { padding: 28px; }
    .vida-video-info h2 { font-size: 26px; }
    .download-card { flex-direction: column; gap: 12px; }
    .generic-page-content { padding: 22px; }
    .mobile-nav { width: 100% !important; }
    .yerba-section { padding: 62px 0; }
    .yerba-media { margin-bottom: 40px; }
    .yerba-facts { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 479.98px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .intro-highlights { grid-template-columns: 1fr; }
    .gallery-grid, .gallery-grid-compact { grid-template-columns: 1fr; grid-auto-rows: 190px; }
    .gallery-item:nth-child(7n + 1) { grid-column: span 1; }
    .search-quick-links { grid-template-columns: 1fr; }
    .authorities-cta-card { padding: 26px; }
    .transparency-cats .filter-btn { font-size: 11.5px; padding: 7px 12px; }
}
