/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --color-primary: #1c3144;
    --color-primary-dark: #122130;
    --color-primary-light: #e8edf2;
    --color-accent: #958065;
    --color-accent-dark: #7a6852;
    --color-text: #2a2a2a;
    --color-text-light: #4a5568;
    --color-text-muted: #8a93a0;
    --color-bg: #ffffff;
    --color-bg-light: #f7f8fa;
    --color-bg-dark: #1c3144;
    --color-bg-footer: #122130;
    --color-border: #dde3ea;
    --font-main: 'Alegreya Sans', sans-serif;
    --font-alt: 'Roboto', sans-serif;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

[data-aos] { pointer-events: auto; }

/* ========================================
   PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 120px;
    opacity: 0;
    filter: brightness(0) invert(1);
    animation: preloaderFadeIn 0.5s ease 0.2s forwards;
}

.preloader-spinner {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

.preloader-bar-wrap {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: preloaderFadeIn 0.4s ease 0.3s forwards;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    animation: preloaderProgress 1.2s ease 0.4s forwards;
}

@keyframes preloaderFadeIn {
    to { opacity: 1; }
}

@keyframes preloaderProgress {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-bg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-bg);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */

/* Base button style - shared by all buttons */
.btn-hero, .btn-iso, .btn-hero-outline, .btn-iso.agenda-banner-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    min-width: 160px;
}

/* Primary button - gold background */
.btn-hero {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.btn-hero:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* Secondary button - outline gray */
.btn-hero-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-hero-outline:hover {
    background: #6c757d;
    color: white;
}

/* Banner buttons - gold background */
.btn-iso {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.btn-iso:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 3, 4, 0.3);
}

/* Special cases */
.programas-grid .btn-hero {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.programas-grid .btn-hero:hover {
    background: #6c757d;
    color: white;
}

.programas-grid {
    padding: 30px 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

.iso-certification {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-section {
    padding: 30px 0 0;
    background-color: var(--color-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content .text-center.mt-4 {
    margin-top: 2.5rem !important;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.contact-wrapper {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.contact-info-box {
    padding-right: 2rem;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--color-bg);
    font-size: 1.25rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--color-accent);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label-modern {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control-modern {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-alt);
    transition: all 0.3s ease;
    background-color: var(--color-bg-light);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg);
    box-shadow: 0 0 0 4px rgba(97, 97, 99, 0.12);
}

.btn-submit-modern {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 36, 40, 0.3);
}

.btn-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-feedback:not(:empty) {
    display: block;
}

.form-feedback.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.footer-simple {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 70px 0 40px;
}

.footer-logo-top {
    max-height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-desc-top {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

.footer-simple p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.footer-heading {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-info strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-info a:hover {
    color: var(--color-accent);
}

.footer-info i {
    font-size: 0.9rem;
}

.footer-programs p {
    margin: 6px 0;
}

.footer-programs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-programs a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-bottom-border {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--color-accent);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(130, 36, 40, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(130, 36, 40, 0.4);
}

.scroll-top:active { transform: translateY(-2px); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .navbar-logo {
        max-height: 45px;
    }

    .hero-banner {
        padding: 70px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }


    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.25rem;
    }


    .about-text {
        font-size: 1.125rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .footer-simple {
        padding: 60px 0 30px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-logo {
        max-height: 40px;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }

    .hero-banner {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }


    .btn-hero {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }

    .programas-grid {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.875rem;
    }


    .iso-certification {
        padding: 60px 0;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .contact-info-box {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }


    .contact-detail-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .form-label-modern {
        font-size: 0.9rem;
    }

    .form-control-modern {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit-modern {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .footer-simple {
        padding: 50px 0 25px;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-info p,
    .footer-programs a {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
}

/* ========================================
   ARETEA XP — ESTILOS ESPECÍFICOS
   ======================================== */

.xp-quote {
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-text-muted);
    max-width: 700px;
    display: block;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

/* Impact cards — Charlas / Experiencias */
.xp-impact-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    height: 100%;
    transition: all 0.3s ease;
}

.xp-impact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.xp-impact-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.xp-impact-icon i {
    font-size: 1.5rem;
    color: white;
}

.xp-impact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

/* Audience cards — Con quiénes */
.xp-audience-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border: 2px solid var(--color-border);
    height: 100%;
    transition: all 0.3s ease;
}

.xp-audience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: var(--color-primary);
}

.xp-audience-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.xp-audience-icon i {
    font-size: 1.4rem;
    color: white;
}

.xp-audience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

/* Questions list */

/* Charlas list */

/* Btn XP */
.btn-xp {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-xp:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .xp-impact-card,
    .xp-audience-card {
        padding: 1.75rem;
    }
}

/* ========================================
   CHARLAS GRID + LOGOS CAROUSEL
   ======================================== */

.xp-charlas-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.xp-charlas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

a.xp-charla-card,
.xp-charla-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.6rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.xp-charla-card::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
}

.xp-charla-card:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.xp-charla-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.xp-charla-card:hover .xp-charla-num {
    color: var(--color-accent);
    opacity: 1;
}

.xp-charla-card:hover .xp-charla-titulo {
    color: #ffffff;
}

.xp-charla-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.12;
    line-height: 1;
    font-family: var(--font-main);
    flex-shrink: 0;
    width: 52px;
    text-align: right;
    transition: all 0.25s ease;
}

.xp-charla-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.45;
    margin: 0;
    transition: color 0.25s ease;
}

/* Client logos carousel */
.client-logos-carousel {
    margin-top: 3rem;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 1rem 0;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    flex: 0 0 auto;
    width: 130px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    margin: 0 0.6rem;
}

.logo-slide img {
    max-width: 100%;
    max-height: 63px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.25s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .xp-charlas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .xp-charla-card {
        padding: 1rem 0.5rem;
    }
}

/* ========================================
   TICKER DE PREGUNTAS
   ======================================== */

.xp-ticker-section {
    padding: 80px 0 60px;
    background-color: var(--color-bg);
    overflow: hidden;
}

.xp-ticker-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 1.5rem 0;
}

.xp-ticker-wrapper::before,
.xp-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.xp-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-primary-dark), transparent);
}

.xp-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-primary-dark), transparent);
}

.xp-ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: xpTickerScroll 38s linear infinite;
}

.xp-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes xpTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.xp-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-main);
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.xp-ticker-item i {
    font-size: 0.4rem;
    color: var(--color-accent);
    flex-shrink: 0;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .xp-ticker-item {
        font-size: 0.95rem;
        padding: 0 1.75rem;
    }
}

/* ========================================
   TALLERES / EXPERIENCIAS
   ======================================== */

.talleres-hero {
    position: relative;
    background: var(--color-primary-dark);
    padding: 110px 0 90px;
    overflow: hidden;
}

.talleres-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, rgba(149,128,101,0.2) 100%);
}

.talleres-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../img/puente.jpg') center/cover no-repeat;
    opacity: 0.08;
}

.charlas-hero {
    position: relative;
    background: var(--color-primary-dark);
    padding: 110px 0 90px;
    overflow: hidden;
}

.charlas-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, rgba(149,128,101,0.15) 100%);
}

.talleres-eyebrow {
    display: inline-block;
    background: rgba(149,128,101,0.2);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    padding: 0.35rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.talleres-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-family: var(--font-main);
    position: relative;
}

.talleres-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

/* Tabs */
.talleres-tabs-section {
    padding: 60px 0 100px;
    background: var(--color-bg);
}

.talleres-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 3rem;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

.talleres-tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 160px;
    text-align: left;
}

.tab-btn:hover { background: var(--color-bg-light); }

.tab-btn.active {
    border-bottom-color: var(--color-accent);
    background: transparent;
}

.tab-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.6;
    font-family: var(--font-alt);
    letter-spacing: 1px;
    transition: opacity 0.25s;
}

.tab-btn.active .tab-num { opacity: 1; }

.tab-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    font-family: var(--font-main);
    line-height: 1.3;
    transition: color 0.25s;
}

.tab-btn.active .tab-label,
.tab-btn:hover .tab-label { color: var(--color-primary-dark); }

.talleres-tabs-content { position: relative; }

.tab-panel {
    display: none;
    animation: tabFadeIn 0.35s ease;
}

.tab-panel.active { display: block; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Taller inner layout */
.taller-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.taller-inner-reverse > * { direction: ltr; }

.taller-imagen {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28,49,68,0.15);
    aspect-ratio: 4/3;
}

.taller-imagen img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}

.taller-imagen:hover img { transform: scale(1.04); }

.taller-numero {
    position: absolute;
    bottom: 1.25rem; left: 1.5rem;
    font-size: 5rem; font-weight: 800;
    color: white; opacity: 0.15;
    line-height: 1;
    font-family: var(--font-main);
    pointer-events: none;
}

.taller-contenido {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.taller-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}

.taller-titulo {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.2;
    font-family: var(--font-main);
    margin: 0;
}

.taller-pregunta {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-accent);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.taller-intro {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0;
}

.taller-detalle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 3px solid var(--color-primary-light);
    padding-left: 1.5rem;
}

.taller-item { display: flex; gap: 1rem; align-items: flex-start; }

.taller-item-icon {
    width: 34px; height: 34px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}

.taller-item-icon i { color: white; font-size: 0.8rem; }

.taller-item h4 {
    font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--color-primary); margin: 0 0 0.3rem;
}

.taller-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.65; margin: 0;
}

.taller-lab {
    background: var(--color-primary);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    color: white;
}

.taller-lab h4 {
    font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--color-accent); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}

.taller-lab p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7; margin: 0;
}

.btn-taller {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--color-accent); color: white;
    padding: 0.85rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s ease;
    width: fit-content;
}

.btn-taller:hover {
    background: var(--color-accent-dark); color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149,128,101,0.35);
}

.btn-taller i { font-size: 0.8rem; transition: transform 0.25s ease; }
.btn-taller:hover i { transform: translateX(4px); }

.talleres-medida {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.talleres-medida-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800; color: white;
    margin-bottom: 1.25rem; font-family: var(--font-main);
}

.talleres-medida-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .taller-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .taller-imagen { aspect-ratio: 16/9; }
    .taller-numero { font-size: 4rem; }
}

@media (max-width: 576px) {
    .talleres-hero { padding: 80px 0 60px; }
    .taller-lab { padding: 1.25rem; }
}

/* ========================================
   CHARLAS — ACORDEÓN
   ======================================== */

.charlas-section {
    padding: 90px 0 100px;
    background: var(--color-bg);
}

.charlas-acordeon {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 30px rgba(28,49,68,0.07);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.charla-item { border-bottom: 1px solid var(--color-border); }
.charla-item:last-child { border-bottom: none; }

.charla-header {
    width: 100%; display: flex; align-items: center;
    gap: 1.25rem; padding: 1.4rem 2rem;
    background: transparent; border: none;
    cursor: pointer; text-align: left;
    transition: background 0.2s ease; position: relative;
}

.charla-header:hover { background: var(--color-bg-light); }
.charla-item.open .charla-header { background: var(--color-primary); }

.charla-n {
    font-size: 0.75rem; font-weight: 700;
    color: var(--color-accent); font-family: var(--font-alt);
    letter-spacing: 1px; flex-shrink: 0;
    width: 24px; opacity: 0.7; transition: opacity 0.2s;
}

.charla-item.open .charla-n { opacity: 1; color: var(--color-accent); }

.charla-nombre {
    flex: 1; font-size: 1.05rem; font-weight: 600;
    color: var(--color-primary-dark); font-family: var(--font-main);
    line-height: 1.4; transition: color 0.2s;
}

.charla-item.open .charla-nombre { color: #ffffff; }

.charla-icon {
    flex-shrink: 0; color: var(--color-accent); font-size: 0.85rem;
    transition: transform 0.3s ease, color 0.2s;
}

.charla-item.open .charla-icon { transform: rotate(45deg); }

.charla-body {
    display: none;
    padding: 0 2rem 1.75rem calc(2rem + 24px + 1.25rem);
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    animation: charlaOpen 0.3s ease;
}

.charla-item.open .charla-body { display: block; }

@keyframes charlaOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.charla-body p {
    font-size: 0.98rem; color: var(--color-text-light);
    line-height: 1.75; margin: 1rem 0 1.25rem;
}

.charla-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--color-accent); font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.charla-cta:hover { border-bottom-color: var(--color-accent); gap: 0.75rem; }
.charla-cta i { font-size: 0.75rem; transition: transform 0.2s ease; }
.charla-cta:hover i { transform: translateX(3px); }

.charlas-cta-text {
    font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
    .charla-header { padding: 1.2rem 1.25rem; gap: 1rem; }
    .charla-body { padding: 0 1.25rem 1.5rem 1.25rem; }
    .charla-nombre { font-size: 0.97rem; }
}

/* Agenda banners */
.agenda-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.25s ease;
}

.agenda-banner:hover {
    box-shadow: 0 8px 30px rgba(28,49,68,0.08);
}

.agenda-banner-icon {
    width: 56px;
    height: 56px;
    background: #e8ecef;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-banner-icon i {
    font-size: 1.3rem;
    color: var(--color-primary);
}


.agenda-banner-body {
    flex: 1;
}

.agenda-banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-main);
    margin: 0 0 0.35rem;
}

.agenda-banner-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Agenda items */
.agenda-items {
    margin-top: 3rem;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.agenda-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.agenda-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--color-primary-dark);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    min-width: 80px;
}

.agenda-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.agenda-month {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.agenda-content {
    flex: 1;
}

.agenda-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.agenda-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Agenda Accordion */
.agenda-accordion {
    margin-bottom: 1rem;
}

.agenda-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e8ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.agenda-banner-header:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.agenda-banner-header.active {
    background: var(--color-primary-dark);
    color: white;
}

.agenda-banner-header.active .agenda-banner-icon {
    background: white;
    color: var(--color-primary-dark);
}

.agenda-banner-header.active .agenda-banner-title {
    color: white;
}

.agenda-banner-header.active .agenda-banner-text {
    color: rgba(255,255,255,0.9);
}

.agenda-arrow-indicator {
    text-align: center;
    padding: 0.5rem;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.agenda-arrow-indicator:hover {
    color: var(--color-accent);
}

.agenda-accordion.active .agenda-arrow-indicator {
    color: var(--color-primary-dark);
    transform: rotate(180deg);
}

.agenda-accordion:not(.active) .agenda-arrow-indicator {
    transform: rotate(0deg);
}

.agenda-accordion-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.agenda-accordion-content:not(.active) {
    max-height: 0;
}

.agenda-accordion-body {
    padding: 2rem;
    background: white;
    border-left: 1px solid #e8ecef;
    border-right: 1px solid #e8ecef;
    border-bottom: 1px solid #e8ecef;
    border-radius: 0 0 12px 12px;
}

.agenda-accordion-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agenda-accordion-footer {
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid #e8ecef;
}



@media (max-width: 767px) {
    .agenda-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .agenda-banner-btn { width: 100%; text-align: center; }
}

/* ========================================
   ANIMACIONES DE CARGA (hero + primeras secciones)
   ======================================== */

@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-content .hero-title {
    animation: heroSlideUp 0.8s ease 0.1s both;
}

.hero-content .hero-subtitle {
    animation: heroSlideUp 0.8s ease 0.3s both;
}

.hero-content .btn-hero {
    animation: heroSlideUp 0.8s ease 0.5s both;
}

.talleres-hero .talleres-eyebrow,
.charlas-hero .talleres-eyebrow {
    animation: heroSlideUp 0.7s ease 0.1s both;
}

.talleres-hero .talleres-hero-title,
.charlas-hero .talleres-hero-title {
    animation: heroSlideUp 0.8s ease 0.25s both;
}

.talleres-hero .talleres-hero-subtitle,
.charlas-hero .talleres-hero-subtitle {
    animation: heroSlideUp 0.8s ease 0.4s both;
}

.hero-overlay { animation: heroFadeIn 1.2s ease both; }

/* ========================================
   RESPONSIVE COMPLETO
   ======================================== */

/* --- Tablet grande (≤ 1199px) --- */
@media (max-width: 1199px) {
    .hero-title { font-size: 2.8rem; }
    .taller-inner { gap: 3rem; }
}

/* --- Tablet (≤ 991px) --- */
@media (max-width: 991px) {
    /* Hero */
    .hero-banner { padding: 80px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Secciones */
    .about-section,
    .programas-grid,
    .iso-certification,
    .xp-charlas-section,
    .charlas-section { padding: 70px 0; }

    /* Impacto cards */
    .xp-impact-card { padding: 2rem; }

    /* Contacto */
    .contact-wrapper { padding: 2.5rem; }
    .contact-title { font-size: 1.75rem; }

    /* Ticker */
    .xp-ticker-section { padding: 60px 0 40px; }

    /* Tabs */
    .tab-btn { min-width: 130px; padding: 0.85rem 1.25rem; }

    /* Footer */
    .footer-logo-top { max-height: 44px; }
}

/* --- Mobile grande (≤ 767px) --- */
@media (max-width: 767px) {
    /* Navbar */
    .navbar-logo { max-height: 38px; }
    .navbar-collapse { padding: 1rem 0; }
    .nav-link { padding: 0.5rem 0 !important; border-bottom: 1px solid var(--color-border); }

    /* Hero */
    .hero-banner { padding: 70px 0 60px; }
    .hero-title { font-size: 1.9rem; line-height: 1.2; }
    .hero-subtitle { font-size: 0.97rem; }
    .btn-hero { padding: 0.8rem 1.75rem; font-size: 0.95rem; }

    /* Secciones */
    .about-section,
    .programas-grid,
    .iso-certification,
    .contact-section,
    .xp-charlas-section,
    .charlas-section,
    .talleres-tabs-section { padding: 55px 0; }

    /* Section headers */
    .section-title { font-size: 1.6rem; }
    .section-label { font-size: 0.88rem; }

    /* Impact cards */
    .xp-impact-card { padding: 1.75rem; }

    /* Audience cards */
    .xp-audience-card { padding: 1.5rem; text-align: center; }
    .xp-audience-icon { margin: 0 auto 1rem; }

    /* Ticker */
    .xp-ticker-item { font-size: 0.9rem; padding: 0 1.5rem; }

    /* Tabs nav — scroll horizontal en mobile */
    .talleres-tabs-nav { justify-content: flex-start; padding-bottom: 2px; }
    .tab-btn { min-width: 140px; padding: 0.75rem 1rem; }
    .tab-label { font-size: 0.85rem; }

    /* Taller inner */
    .taller-inner { grid-template-columns: 1fr; gap: 2rem; }
    .taller-imagen { aspect-ratio: 16/9; }
    .taller-numero { font-size: 3.5rem; }
    .taller-titulo { font-size: 1.4rem; }
    .taller-lab { padding: 1.25rem; }

    /* Charlas hero / talleres hero */
    .talleres-hero,
    .charlas-hero { padding: 80px 0 60px; }
    .talleres-hero-title { font-size: 2rem; }

    /* Contacto */
    .contact-wrapper { padding: 2rem 1.5rem; }
    .contact-title { font-size: 1.5rem; }
    .contact-detail-item { gap: 0.75rem; }

    /* Footer */
    .footer-simple { padding: 50px 0 30px; }
    .footer-heading { margin-bottom: 1rem; }
    .footer-desc-top { font-size: 0.9rem; }
    .footer-copyright { text-align: center; }
}

/* --- Mobile pequeño (≤ 480px) --- */
@media (max-width: 480px) {
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 0.93rem; }
    .btn-hero { width: 100%; text-align: center; justify-content: center; }

    .section-title { font-size: 1.45rem; }

    .xp-charla-card { padding: 1rem 0.75rem; gap: 1rem; }
    .xp-charla-num { font-size: 1.5rem; width: 36px; }

    .contact-form-modern { padding: 0; }
    .btn-submit-modern { width: 100%; justify-content: center; }

    .charla-header { padding: 1rem; gap: 0.75rem; }
    .charla-n { width: 20px; }

    .talleres-medida { padding: 60px 0; }
    .talleres-medida-title { font-size: 1.5rem; }

    .tab-btn { min-width: 120px; padding: 0.65rem 0.85rem; }
    .tab-label { font-size: 0.8rem; }
}
