/* Base CSS for Economic Observatory */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color scheme based on original website */
    --primary-color: #08519c;
    --secondary-color: #2cc3c3;
    --accent-color: #386cb0;
    --text-primary: #0f172a;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --background-light: #f8fafc;
    --background-lighter: #f1f5f9;
    --white: #ffffff;
    --navbar-height: 76px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Typography */
body {
    font-family: 'Poppins', 'Roboto', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #063d7a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom:3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Landing page specific styles */

.flex-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically (optional) */
  margin-bottom: 1.5rem;
}

/* Minimal side-by-side logo + title */
.hero-title-row {
    display: block;
    align-items: center;          /* vertical center */
    gap: 1.25rem;                 /* small space between logo and text */
    margin-bottom: 1.5rem;        /* keep the same spacing the title had */
}

.hero-logo {
    height: 6.5rem;              /* adjust size – keep it modest */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;               /* never squish the logo */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 95vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 1;
}

.hero-overlay.blur-in {
    backdrop-filter: blur(8px);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    display: block;
    transform: translateY(20px);
    transition: all 1.5s ease;
}

.hero-content-title {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    display: block;
    transform: translateY(20px);
    transition: all 1.5s ease;
}

.hero-content.show-text {
    opacity: 1;
    transform: translateY(0);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-main {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-rotating-clip {
    margin: 2rem 0;
    height: 40px;
    overflow: hidden;
}

.hero-rotating-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

.hero-rotating-clip.visible .hero-rotating-inner {
    animation: rotate 5s infinite;
}

@keyframes rotate {
    0%, 100% { transform: translateY(0); }
    33% { transform: translateY(-40px); }
    66% { transform: translateY(-80px); }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary:hover {
    background: #1abcbc;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 195, 195, 0.4);
}

.hero-btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: var(--white);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    opacity: 0;
    transition: all 1.5s ease;
}

.hero-scroll-hint.show-text {
    opacity: 1;
}

.hero-scroll-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin: 0 auto;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(8, 81, 156, 0.1), transparent);
    /*background: #0b1629;*/
    border-radius: 50%;
    z-index: 0;
}

.mission-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.mission-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mission-logos img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

/*.mission-logos a img {
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--primary-color);
}*/

/* Functions Section */
.funciones-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}

.funciones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
    z-index: 0;
}

.funciones-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.funciones-title span {
    color: var(--secondary-color);
}

.funciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.funcion-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.funcion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.funcion-card:hover::before {
    transform: scaleX(1);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.funcion-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.flip-card-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: rotateY(180deg);
    padding: 1.5rem;
}

.card-border {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inner {
    text-align: center;
}

.funcion-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.flip-card-back .card-inner {
    color: var(--white);
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flip-card-back li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
}

.flip-card-back li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Team Section */
.equipo-section {
    padding: 5rem 0;
    background: #0b1629;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.equipo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 195, 195, 0.1), transparent);
    z-index: 0;
}

.equipo-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.equipo-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.equipo-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
}

.equipo-member {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.equipo-member--reverse {
    flex-direction: row-reverse;
}

.equipo-foto {
    flex: 0 0 42%;
    height: 0;
    padding-bottom: 28%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.equipo-foto img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipo-member:hover .equipo-foto img {
    transform: scale(1.05);
}

.equipo-foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 55%, #0b1629 100%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.equipo-member--reverse .equipo-foto-overlay {
    background: linear-gradient(to left, transparent 55%, #0b1629 100%);
}

.equipo-member:hover .equipo-foto-overlay {
    background: linear-gradient(to right, rgba(44, 195, 195, 0.1), #0b1629 100%);
}

.equipo-bio {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.equipo-numero {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: -0.5rem;
    font-family: 'Poppins', sans-serif;
}

.equipo-name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0;
}

.equipo-cargo {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.equipo-line {
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 1.5rem;
}

.equipo-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.equipo-items li {
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.equipo-items li::before {
    content: '—';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

.equipo-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin: 0 auto 4rem;
}

/* Scroll fade animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .equipo-member,
    .equipo-member--reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .equipo-foto {
        flex: none;
        width: 100%;
        height: 0;
        padding-bottom: 75%;
    }
    
    .equipo-bio {
        width: 100%;
        margin-top: -2rem;
        position: relative;
        background: #0b1629;
    }
    
    .equipo-foto-overlay,
    .equipo-member--reverse .equipo-foto-overlay {
        background: linear-gradient(to top, #0b1629 0%, transparent 50%) !important;
    }
    
    .equipo-bio {
        padding: 1.5rem;
    }
    
    .equipo-numero {
        font-size: 3.5rem;
    }

    .equipo-items {
        font-size: 0.875rem;
        color: #94a3b8;
        display: flex;
        text-align: left;
        gap: 0.5rem;
        justify-content: left;
    }

}

/* Footer styles */
.site-footer {
    background: #0b1629;
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    display: block;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(44, 195, 195, 0.3), transparent);
}

.ft-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.ft-brand {
    max-width: 300px;
}

.ft-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ft-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: block;
    gap: 3rem;
    margin-bottom: 2rem;
    }
}

.subscribe-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 6rem;
}

.subscribe-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

/*.subscribe-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: inline-block;
}*/

.ft-brand p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ft-brand-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ft-brand-logos span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-col {
    display: flex;
    flex-direction: column;
}

.ft-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.ft-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ft-col a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.ft-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.ft-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ft-contact-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ft-contact-val {
    font-size: 0.875rem;
    color: var(--white);
    font-weight: 500;
}

.ft-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.ft-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ft-copy {
    color: #64748b;
    font-size: 0.875rem;
}

.ft-copy a {
    color: var(--secondary-color);
    text-decoration: none;
}

.ft-copy a:hover {
    text-decoration: underline;
}

.ft-socials {
    display: flex;
    gap: 0.75rem;
}

.ft-social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.ft-social-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 195, 195, 0.4);
}

.ft-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive footer */
@media (max-width: 768px) {
    .ft-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .ft-socials {
        justify-content: center;
    }
    
    .ft-col {
        align-items: left;
    }
    
    .ft-col ul {
        align-items: left;
        margin-bottom: 3rem;
    }
    
    .ft-col a:hover {
        padding-left: 0;
    }

    .subscribe-badge {
        display: inline-block;
        /*background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));*/
        background: var(--primary-color);
        color: var(--white);
        padding: 0.5rem 1rem;
        border-radius: 999px;
        font-size: 1.2rem;
        font-weight: 400;
        /*text-transform: uppercase;*/
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
        display: inline-block;
    }

}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.nav-wrapper.nav-show {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-capsule {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.nav-show .nav-capsule {
    background: rgba(255, 255, 255, 0.95);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--background-light);
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-items.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-item-cta .nav-link {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.nav-item-cta .nav-link::after {
    display: none;
}

.nav-item-cta .nav-link:hover {
    background: #063d7a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-wrapper {
        top: 0;
        padding: 0.5rem 1rem;
    }
    
    .nav-capsule {
        border-radius: 20px;
        padding: 0.5rem 1rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-items {
        display: none;
    }
    
    .nav-items.open {
        display: flex;
    }
    
    .nav-item-cta {
        margin-top: 0.5rem;
    }
    
    .nav-item-cta .nav-link {
        display: block;
        text-align: center;
    }

    .hero-title-row {
        gap: 0.9rem;
    }
    .hero-logo {
        height: 3.2rem;
        height: 6.5rem;              /* adjust size – keep it modest */
        width: auto;
        object-fit: contain;
        flex-shrink: 0;               /* never squish the logo */
    }
    .mission-logos {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
        margin-top: 2rem;
    }
    .equipo-foto {
        display: none;
    }

    .subscribe-button {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
        /*margin-top: 10rem;*/
    }

    .subscribe-title {
        font-size: 2rem;
        font-weight: 600;
        color: white;
    }

}

/* Main content spacing */
.site-main {
    margin-top: var(--navbar-height);
    position: relative;
    z-index: 1;
}

/* Global animations and utilities */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light);
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--background-light);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #063d7a;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--secondary-color);
    color: var(--white);
}

