/* ==========================================================================
   FUCAIFCO - Sistema de Diseño "Editorial Social Impact"
   ========================================================================== */

:root {
    /* FONDOS */
    --bg-primary:    #FAF6F0;  /* Crema marfil — fondo base */
    --bg-secondary:  #F0E8DA;  /* Crema más profundo — secciones alternas */
    --bg-tertiary:   #FFFFFF;  /* Blanco puro — cards sobre crema */
    --bg-deep:       #2B1810;  /* Chocolate — secciones de contraste/impacto */
    --bg-deep-soft:  #3D2418;  /* Chocolate suave */
  
    /* PRIMARIO — TERRACOTA */
    --primary-50:  #FBEBE8;
    --primary-100: #F4CFC9;
    --primary-200: #E8A096;
    --primary-300: #DC7165;
    --primary-400: #D45A4A;
    --primary-500: #C0392B;   /* Color base */
    --primary-600: #A02E22;
    --primary-700: #7A2319;
    --primary-800: #541810;
    --primary-900: #2E0D08;
    --primary-rgb: 192, 57, 43;
  
    /* SECUNDARIO — MOSTAZA */
    --accent-400:  #EAB75A;
    --accent-500:  #E1A33A;
    --accent-600:  #C28828;
    --accent-rgb:  225, 163, 58;
  
    /* TIERRA — VERDE OLIVA */
    --earth-400:   #768550;
    --earth-500:   #5C6B3F;
    --earth-600:   #45522E;
    --earth-rgb:   92, 107, 63;
  
    /* TEXTOS */
    --text-primary:    #1A1A1A;  /* Negro tinta sobre fondo claro */
    --text-secondary:  #3D3D3D;
    --text-tertiary:   #6B6B6B;
    --text-quaternary: #999999;
    --text-on-dark:    #FAF6F0;  /* Crema sobre fondo chocolate */
    --text-on-dark-2:  #D4C9B5;
  
    /* UTILIDAD */
    --success: #5C6B3F;          /* Verde oliva como success */
    --info:    #1E5F8C;          /* Azul caribe profundo */
    --warning: #E1A33A;          /* Mostaza */
    --border:  rgba(192, 57, 43, 0.15);
  
    /* TYPOGRAPHY SETTINGS */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}
  
/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem); /* 44px -> 72px */
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem); /* 36px -> 52px */
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.375rem, 2vw, 1.625rem); /* 22px -> 26px */
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.text-light {
    color: var(--text-on-dark) !important;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-600);
    margin-bottom: 16px;
}

.eyebrow-accent {
    color: var(--accent-500);
}

.highlight-text {
    color: var(--primary-500);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: none;
}

.body-text {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem); /* 18px -> 20px */
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ==========================================================================
   Components
   ========================================================================== */
   
/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-500) 40%,
        var(--accent-500) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    box-shadow:
        0 4px 16px rgba(192, 57, 43, 0.3),
        0 0 0 1px rgba(192, 57, 43, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 30px;
    border: 1.5px solid var(--primary-500);
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-500);
    color: #ffffff;
}

/* Glass Cards */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(250, 246, 240, 0.5) 100%
    );
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(192, 57, 43, 0.12);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 4px 12px -2px rgba(192, 57, 43, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(192, 57, 43, 0.3);
    box-shadow:
        0 20px 40px -12px rgba(192, 57, 43, 0.18),
        0 0 60px rgba(225, 163, 58, 0.1);
    transform: translateY(-4px);
}

.glass-card-dark {
    background: linear-gradient(
        135deg,
        rgba(250, 246, 240, 0.05) 0%,
        rgba(225, 163, 58, 0.08) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 163, 58, 0.18);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
}

.glass-card-dark:hover {
    border-color: rgba(225, 163, 58, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Animaciones Clave */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(192, 57, 43, 0.4),
            0 4px 24px rgba(192, 57, 43, 0.25),
            0 0 60px rgba(225, 163, 58, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(192, 57, 43, 0.6),
            0 8px 40px rgba(192, 57, 43, 0.4),
            0 0 80px rgba(225, 163, 58, 0.35);
    }
}

.pulse-glow {
    animation: pulse-glow 3s infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(192, 57, 43, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-600);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-600);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 88vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 50%, rgba(225, 163, 58, 0.1) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    align-items: center;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-text::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-500);
    border-radius: 50%;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 50%;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    z-index: 2;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-metric {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.floating-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Partículas */
.particle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.p1 { width: 12px; height: 12px; background: var(--accent-400); top: 10%; right: 20%; animation: float 4s ease-in-out infinite; }
.p2 { width: 8px; height: 8px; background: var(--primary-400); bottom: 20%; right: 10%; animation: float 5s ease-in-out infinite 1s; }
.p3 { width: 16px; height: 16px; border: 2px solid var(--accent-500); background: transparent; top: 30%; left: 10%; animation: float 6s ease-in-out infinite 0.5s; }
.p4 { width: 6px; height: 6px; background: var(--earth-500); bottom: 10%; left: 20%; animation: float 4.5s ease-in-out infinite 2s; }
.p5 { width: 10px; height: 10px; background: var(--primary-300); top: 50%; right: 5%; animation: float 5.5s ease-in-out infinite 1.5s; }

/* Social Proof */
.social-proof {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.social-proof-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--primary-600);
}

.partner-badge {
    padding: 6px 12px;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--primary-700);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* About / History */
.about {
    background-color: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    width: 100%;
    border-radius: 20px 100px 20px 20px; /* Marco curvo asimétrico */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-700);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Líneas de Acción */
.services {
    background-color: var(--bg-secondary);
    background-image: url('images/pattern_bg.png'); /* Pattern sutil */
    background-blend-mode: overlay;
    background-size: cover;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.flip-card {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Hover effect on desktop, handled by tap on mobile via JS/CSS */
@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card.mobile-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.flip-card-front {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.flip-card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.flip-card-front h3 {
    margin: auto;
    padding: 0 20px;
    color: var(--primary-700);
}

.flip-card-back {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.flip-card-back p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tags span {
    background-color: rgba(225, 163, 58, 0.15);
    color: var(--accent-600);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Impacto */
.impact {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-soft) 100%);
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 163, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.impact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.impact-number {
    font-family: var(--font-display);
    font-size: 4rem; /* 64px */
    font-weight: 700;
    color: var(--text-on-dark);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(225, 163, 58, 0.2);
}

.impact-label {
    color: var(--accent-400);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.impact-desc {
    color: var(--text-on-dark-2);
    font-size: 0.85rem;
}

.impact-footer p {
    margin: 4px 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Experiencia */
.experience {
    background-color: var(--bg-primary);
}

.contracts-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.contract-card {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    align-items: center;
    padding: 24px 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.contract-card:hover {
    border-color: var(--primary-400);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.1);
    transform: translateX(4px);
}

.contract-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contract-meta strong {
    color: var(--primary-700);
    font-size: 1.1rem;
}

.date-badge {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    background-color: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.contract-details {
    padding: 0 20px;
}

.contract-id {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.contract-details p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.contract-value {
    font-family: var(--font-display);
    font-size: 1.375rem; /* 22px */
    font-weight: 700;
    color: var(--primary-600);
    text-align: right;
}

.total-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 246, 240, 0.8) 100%);
    border-color: rgba(225, 163, 58, 0.3);
}

.total-card h3 {
    margin: 0;
    color: var(--primary-700);
    font-size: 1.5rem;
}

/* Territorios */
.territories {
    background-color: var(--bg-secondary);
}

.territories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.territory-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.territory-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(84, 24, 16, 0.8) 100%);
    z-index: 1;
}

.territory-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #ffffff;
}

.territory-content h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.territory-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Principios */
.principles {
    background-color: var(--bg-primary);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.principle-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary-500);
    background-color: rgba(192, 57, 43, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.principle-card:hover .principle-icon {
    background-color: var(--primary-500);
    color: #ffffff;
    transform: scale(1.1);
}

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

.principle-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA Final */
.cta-section {
    background: radial-gradient(circle at center, rgba(225, 163, 58, 0.15) 0%, var(--bg-secondary) 100%);
}

.cta-container {
    text-align: center;
    max-width: 800px;
}

.cta-container h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-800);
}

.cta-container p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--bg-deep);
    color: var(--text-on-dark-2);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    margin-bottom: 20px;
}

.brand-desc {
    color: var(--text-on-dark);
    font-weight: 500;
    margin-bottom: 12px;
}

.brand-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer h4 {
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-on-dark-2);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-400);
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-on-dark-2);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   Por qué Existimos
   ========================================================================== */
.why-section {
    background-color: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.why-photo-stack {
    position: relative;
    height: 520px;
}

.why-photo-main {
    width: 80%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: absolute;
    top: 0;
    left: 0;
}

.why-photo-accent {
    width: 60%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(192, 57, 43, 0.2);
    position: absolute;
    bottom: 0;
    right: 0;
    border: 4px solid var(--bg-primary);
}

/* Quiénes Somos — actualizado */
.about-content .about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag-pill {
    background-color: rgba(192, 57, 43, 0.08);
    color: var(--primary-700);
    border: 1px solid rgba(192, 57, 43, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Servicios — nuevo estilo de cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-400));
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img-wrap img {
    transform: scale(1.05);
}

.service-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    line-height: 1;
}

.service-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card-body h3 {
    color: var(--primary-700);
    margin: 0;
}

.service-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

/* Trust / Confianza */
.trust-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-soft) 100%);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 163, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.trust-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

.partners-section {
    margin-top: 70px;
}

.partners-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(250,246,240,0.5);
    margin-bottom: 32px;
}

.partners-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.partner-logo-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.partner-logo-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(225,163,58,0.3);
    transform: translateY(-3px);
}

.partner-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-svg {
    width: 120px;
    height: 75px;
    display: block;
}

/* CTA Section */
.cta-section {
    background: radial-gradient(circle at center, rgba(225, 163, 58, 0.15) 0%, var(--bg-secondary) 100%);
}

.cta-container {
    text-align: center;
    max-width: 760px;
}

.eyebrow-dark {
    color: var(--primary-600);
}

.cta-container h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-800);
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(192, 57, 43, 0.08);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-600);
    font-weight: 500;
    transition: color 0.2s;
}

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

.contact-visual {
    position: relative;
}

.contact-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px 80px 20px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-card-overlay {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,246,240,0.9));
}

.contact-nit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-700);
    margin: 0 0 4px;
}

.contact-nit:last-child { margin: 0; }

/* Nav logo fallback */
.nav-logo-fallback {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-600);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .why-photo-stack {
        height: 340px;
    }

    .why-photo-main {
        height: 300px;
    }

    .why-photo-accent {
        height: 200px;
    }

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

@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        max-width: 90%;
    }

    .floating-card {
        left: 0;
        bottom: 20px;
        padding: 12px 16px;
    }

    .floating-metric {
        font-size: 1.2rem;
    }

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

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-photo-stack {
        height: 280px;
    }

    .why-photo-main {
        width: 90%;
        height: 240px;
    }

    .why-photo-accent {
        width: 65%;
        height: 180px;
    }

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

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

    .partners-logos-grid {
        gap: 14px;
    }

    .partner-svg {
        width: 90px;
        height: 56px;
    }

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

    .contact-card-overlay {
        left: 0;
        bottom: -10px;
    }

    .contact-image {
        border-radius: 20px;
        height: 300px;
    }

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

    /* Mobile Nav */
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
