:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #c9a84c;
    --accent-light: #e0c76a;
    --dark: #1a1a2e;
    --light: #f5f3ef;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 24px;
}

/* ===== PLACEHOLDERS ===== */
.logo-placeholder,
.hero-logo-placeholder,
.card-image,
.badge-icon,
.quienes-img-placeholder,
.revista-cover,
.testimonios-hero-img,
.author-avatar,
.programa-img-placeholder,
.map-container,
.placeholder-frame {
    border: none;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.04), rgba(201, 168, 76, 0.06));
}

.logo-placeholder,
.hero-logo-placeholder {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(201, 168, 76, 0.15);
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    border-color: rgba(201, 168, 76, 0.3);
}

.logo-placeholder i {
    color: var(--accent);
    font-size: 1.2rem;
}

.logo-placeholder.logo-brand {
    width: 96px;
    height: 96px;
    border: none;
    background: transparent;
    padding: 0;
}

.logo-placeholder.logo-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header.shrink .logo-placeholder.logo-brand {
    width: 72px;
    height: 72px;
}

.logo-placeholder.footer-logo {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    margin-bottom: 12px;
}

.logo-placeholder.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder.logo-brand {
    border: none;
    background: transparent;
}

.logo-placeholder.logo-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f7f7f7;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}


.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    transition: var(--transition);
}

.site-header.shrink {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.site-header.shrink .container {
    height: 80px;
}

.site-header.shrink .logo-placeholder:not(.logo-brand) {
    width: 40px;
    height: 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-nav ul {
    display: flex;
    gap: 8px;
}

.primary-nav a {
    padding: 8px 16px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    width: 70%;
}

.primary-nav a:hover {
    color: var(--primary-light);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid transparent;
}

.nav-phone:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.25);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: rgba(247, 247, 247, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    padding-top: 16px;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.site-header.shrink + .mobile-nav {
    top: 80px;
    max-height: calc(100vh - 80px);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
}

.mobile-nav a:hover {
    background: rgba(26, 58, 92, 0.06);
}

.mobile-nav a.active {
    background: rgba(201, 168, 76, 0.08);
    border-left: 3px solid var(--accent);
}

.mobile-nav .nav-phone {
    justify-content: center;
    margin-top: 16px;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: none;
}

.card-image-placeholder {
    color: var(--primary);
    opacity: 0.25;
    font-size: 0.8rem;
    text-align: center;
    padding: 16px;
}

.card-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.card-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 22px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
    white-space: nowrap;
}

.card:hover .card-label {
    background: var(--primary);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.3);
}

.card-body {
    padding: 36px 28px 28px;
}

.card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ===== CONTACT ===== */
.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item .ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(26, 58, 92, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item .ci-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-item .ci-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-light);
}

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

/* ===== FOOTERS ===== */
footer {
    background: #f7f7f7;
    color: var(--primary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0 24px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.1);
    flex-wrap: wrap;
}

.footer-brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-mini .logo-placeholder {
    width: 40px;
    height: 40px;
}

.footer-brand-mini p {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 400px;
    line-height: 1.5;
}

.footer-nav ul {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding: 48px 0 32px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.1);
}

.footer-col {
    text-align: center;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    display: block;
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .primary-nav,
    .nav-phone-desktop {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid .card-image {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 320px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .logo-placeholder {
        width: 42px;
        height: 42px;
    }
}
