/* ================================================
   ESFACIL - SERVICIOS DIGITALES
   Visual Identity System & Styling (Brandbook 2025)
   ================================================ */

:root {
    /* Brand Typography */
    --font-main: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Brandbook Color Palette (Page 12) */
    --brand-bg-light: #F0EBE5;       /* Blanco / Gris claro de base */
    --brand-sand: #DDD2BF;           /* Tono arena secundario */
    --brand-orange: #FF451A;         /* Acento naranja para llamados a la acción y rapidez */
    --brand-orange-hover: #E0350B;
    --brand-blue-soft: #96B4DE;      /* Azul suave / confianza y tecnología */
    --brand-blue-deep: #243E92;      /* Azul profundo corporativo */
    --brand-blue-dark: #192E70;
    
    /* High Contrast Typography */
    --text-primary: #111827;         /* Títulos y textos principales */
    --text-secondary: #374151;       /* Bajadas y descripciones */
    --text-muted: #64748B;
    --text-white: #FFFFFF;
    
    /* Surfaces & Glassmorphism */
    --surface-white: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-glass-border: rgba(150, 180, 222, 0.4);
    --surface-shadow: 0 16px 40px rgba(36, 62, 146, 0.08);
    --surface-shadow-hover: 0 24px 50px rgba(36, 62, 146, 0.15);
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--brand-bg-light);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   PRELOADER
   ================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--brand-bg-light);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

#preloader-logo {
    width: min(320px, 75vw);
    height: auto;
    opacity: 0;
    animation: brandFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes brandFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ================================================
   GLOBAL FLUID BRAND BACKGROUND
   ================================================ */
#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--brand-bg-light);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.95) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(150, 180, 222, 0.45) 0%, transparent 55%),
        linear-gradient(135deg, #F5F7FB 0%, #E8F0FA 40%, #B8CEEE 75%, #96B4DE 100%);
    background-attachment: fixed;
    background-size: cover;
    pointer-events: none;
    overflow: hidden;
}

#bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('FONDO DE REFERENCIA.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    opacity: 0.85;
}

/* 3D Floating Capsules */
.bg-capsule {
    position: absolute;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #FF6F4E 0%, #FF451A 50%, #D83109 100%);
    box-shadow: 0 20px 45px rgba(255, 69, 26, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.capsule-top-right {
    width: 220px;
    height: 70px;
    top: 5%;
    right: -40px;
    transform: rotate(45deg);
    opacity: 0.9;
}

.capsule-bottom-left {
    width: 200px;
    height: 65px;
    bottom: 8%;
    left: -50px;
    transform: rotate(45deg);
    opacity: 0.9;
}

/* Subtle Brand Doodles */
.bg-doodle {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
}

.doodle-loop {
    width: 320px;
    height: 320px;
    top: 30%;
    left: 4%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23243E92' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M30,80 C10,50 30,20 60,30 C90,40 80,80 40,75 C20,70 20,40 45,35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.doodle-wave {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23243E92' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M15,50 Q30,20 45,50 T75,50 T95,50'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ================================================
   CONTAINER & GENERAL SECTION TYPOGRAPHY
   ================================================ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-eyebrow {
    display: inline-block;
    color: var(--brand-orange);
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 500; /* Satoshi Medium */
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-main);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* ================================================
   NAVBAR (Ocultable en Scroll + Atajos + Menú Hamburguesa)
   ================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 3.5rem;
    z-index: 1000;
    background: rgba(240, 235, 229, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--surface-glass-border);
    box-shadow: 0 4px 20px rgba(36, 62, 146, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.site-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo-img {
    transform: scale(1.02);
}

/* Nav Menu & Shortcuts */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.25s ease;
}

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

.nav-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue-deep);
    transition: transform 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

.nav-instagram:hover {
    color: var(--brand-orange);
    transform: scale(1.15);
}

/* Hamburger Button (Oculto en desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--brand-orange);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--brand-orange);
}

/* ================================================
   HERO SECTION (Logo Portada)
   ================================================ */
#hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8.5rem 2rem 4rem;
}

.hero-content {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-logo-portada {
    width: min(620px, 86vw);
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 15px 35px rgba(36, 62, 146, 0.08));
}

.hero-content p {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 1.8vw, 1.25rem);
    letter-spacing: 0.28em;
    font-weight: 500; /* Satoshi Medium */
    color: var(--brand-blue-deep);
    margin-bottom: 2.25rem;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-block;
    background: var(--brand-orange);
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500; /* Satoshi Medium */
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255, 69, 26, 0.32);
}

.btn-primary:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 69, 26, 0.45);
}

.hero-cta {
    margin-top: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--brand-blue-deep);
    width: 36px;
    height: 36px;
    opacity: 0.7;
    animation: bounceScroll 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes bounceScroll {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 12px); opacity: 0.9; }
}

/* ================================================
   TICKER
   ================================================ */
.scrolling-ticker {
    width: 100%;
    overflow: hidden;
    background: var(--brand-orange);
    padding: 0.85rem 0;
    display: flex;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 69, 26, 0.25);
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: tickerLoop 32s linear infinite;
}

.ticker-content span {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500; /* Satoshi Medium */
    letter-spacing: 0.15em;
    color: var(--text-white);
    text-transform: uppercase;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* ================================================
   NUESTRO ECOSISTEMA (SERVICIOS CONECTADOS)
   ================================================ */
#ecosistema-servicios {
    padding: 6.5rem 2rem 4rem;
    position: relative;
}

.ecosystem-flow-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 3.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.ecosystem-card {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 36px rgba(36, 62, 146, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Hover Dimming & Highlighting (Interconnected Interaction) */
.ecosystem-flow-wrapper:hover .ecosystem-card,
.ecosystem-flow-wrapper.is-hovering .ecosystem-card {
    opacity: 0.48;
    transform: scale(0.985);
    filter: grayscale(15%);
}

.ecosystem-flow-wrapper .ecosystem-card:hover,
.ecosystem-flow-wrapper .ecosystem-card.is-active {
    opacity: 1 !important;
    transform: translateY(-8px) scale(1.02) !important;
    filter: none !important;
    border-color: var(--brand-orange) !important;
    box-shadow: 0 20px 45px rgba(255, 69, 26, 0.22), 0 0 0 1px rgba(255, 69, 26, 0.35), 0 0 35px rgba(36, 62, 146, 0.12) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    z-index: 10;
}

/* Flow Connectors Between Cards */
.ecosystem-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    flex-shrink: 0;
    z-index: 1;
}

.flow-track {
    position: absolute;
    top: 50%;
    left: -8px;
    right: -8px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 69, 26, 0.35), rgba(36, 62, 146, 0.45));
    transform: translateY(-50%);
    border-radius: 2px;
    overflow: hidden;
}

.flow-pulse {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
    animation: flowPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flowPulse {
    0% { left: -100%; }
    100% { left: 100%; }
}

.flow-node {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid rgba(36, 62, 146, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    box-shadow: 0 4px 14px rgba(36, 62, 146, 0.12);
    transition: all 0.35s ease;
}

.flow-node svg {
    width: 18px;
    height: 18px;
}

.ecosystem-flow-wrapper:hover .flow-node {
    border-color: var(--brand-orange);
    box-shadow: 0 0 16px rgba(255, 69, 26, 0.45);
    transform: scale(1.08);
}

/* Card Content Elements */
.eco-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.eco-badge-step {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.badge-orange {
    background: var(--brand-orange);
    box-shadow: 0 4px 14px rgba(255, 69, 26, 0.35);
}

.badge-blue {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-deep);
    font-weight: 900;
}

.badge-navy {
    background: var(--brand-blue-deep);
    box-shadow: 0 4px 14px rgba(36, 62, 146, 0.3);
}

.eco-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.eco-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.ecosystem-card:hover .eco-icon-wrap {
    transform: scale(1.1) rotate(4deg);
}

.icon-orange {
    background: rgba(255, 69, 26, 0.12);
    color: var(--brand-orange);
}

.icon-blue {
    background: rgba(150, 180, 222, 0.25);
    color: var(--brand-blue-deep);
}

.icon-navy {
    background: rgba(36, 62, 146, 0.12);
    color: var(--brand-blue-deep);
}

.eco-card-title {
    font-family: var(--font-main);
    font-size: 1.65rem;
    font-weight: 500; /* Satoshi Medium */
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.eco-card-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.eco-flow-next {
    font-size: 0.78rem;
    color: var(--brand-blue-deep);
    background: rgba(36, 62, 146, 0.05);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.next-target {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 0.82rem;
}

.eco-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(150, 180, 222, 0.25);
}

.eco-badge {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-blue-deep);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(150, 180, 222, 0.4);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(36, 62, 146, 0.04);
    transition: all 0.25s ease;
}

.ecosystem-card:hover .eco-badge {
    background: rgba(255, 69, 26, 0.08);
    border-color: rgba(255, 69, 26, 0.35);
    color: var(--brand-orange);
}

/* Banner de Escalabilidad */
.scalability-banner {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(36, 62, 146, 0.15);
    border-left: 4px solid var(--brand-orange);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    max-width: 950px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(36, 62, 146, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scalability-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(36, 62, 146, 0.12);
}

.scalability-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 69, 26, 0.12);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 69, 26, 0.25);
}

.scalability-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.scalability-content {
    text-align: left;
}

.scalability-title {
    font-weight: 700;
    color: var(--brand-blue-deep);
    font-size: 1.05rem;
    margin-right: 0.4rem;
}

.scalability-desc {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.ecosystem-footer-text {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--brand-blue-deep);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    font-weight: 500;
}

.ecosystem-cta {
    padding: 1.15rem 3.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.ecosystem-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(255, 69, 26, 0.5);
}

/* ================================================
   EMPRESAS QUE NOS ACOMPAÑAN (Fondo Limpio)
   ================================================ */
#empresas-acompanan {
    padding: 5rem 2rem;
    position: relative;
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.empresa-logo-card {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.empresa-logo-card:hover {
    transform: translateY(-4px);
}

.empresa-logo-card img {
    max-width: 90%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.04));
    transition: transform 0.3s ease;
}

.empresa-logo-card:hover img {
    transform: scale(1.08);
}

/* ================================================
   BENEFITS / CHECKLIST
   ================================================ */
#benefits {
    padding: 6rem 2rem;
    position: relative;
}

.benefits-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-eyebrow {
    color: var(--brand-orange);
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.benefits-text h2 {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 500; /* Satoshi Medium */
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.benefits-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.benefits-checklist {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-glass-border);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
}

.benefits-checklist ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-checklist li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 500; /* Satoshi Medium */
    color: var(--text-primary);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-blue-deep) 100%);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 69, 26, 0.25);
}

/* ================================================
   NUESTRO EQUIPO (2 Principales Grandes + 4 Secundarias Pequeñas)
   ================================================ */
#equipo {
    padding: 6.5rem 2rem 5rem;
    position: relative;
}

.team-grid-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.team-grid-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--surface-shadow);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--surface-shadow-hover);
    border-color: var(--brand-orange);
}

.team-card-featured {
    padding: 2.5rem 2.25rem;
    border-width: 1.5px;
    background: rgba(255, 255, 255, 0.94);
}

.team-card-small {
    padding: 1.5rem 1.15rem;
}

.team-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 4.8;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(240, 235, 229, 0.8) 0%, rgba(150, 180, 222, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(36, 62, 146, 0.08);
}

.small-photo {
    aspect-ratio: 4 / 4.8;
    margin-bottom: 1rem;
}

.team-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo-img {
    transform: scale(1.05);
}

.team-photo-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 69, 26, 0.3);
    z-index: 2;
}

.team-card-info h3 {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.team-card-small .team-card-info h3 {
    font-size: 1.05rem;
}

.team-role {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.team-card-small .team-role {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.team-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.team-card-small .team-desc {
    font-size: 0.84rem;
    line-height: 1.45;
}

/* ================================================
   POST-PORTFOLIO CTA
   ================================================ */
.post-portfolio-cta {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--surface-glass-border);
    border-bottom: 1px solid var(--surface-glass-border);
}

.post-portfolio-cta h2 {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500; /* Satoshi Medium */
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

/* ================================================
   ECOSYSTEM / PLATAFORMAS LÍDERES
   ================================================ */
#ecosystem {
    padding: 6rem 2rem;
    text-align: center;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem 4.5rem;
    margin-top: 3rem;
}

.partner-icon {
    width: 46px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.partner-icon:hover {
    transform: scale(1.15);
}

svg.partner-icon {
    color: var(--brand-blue-deep);
}

/* ================================================
   FOOTER & CONTACT
   ================================================ */
#site-footer {
    position: relative;
    z-index: 20;
    background: var(--brand-blue-deep);
    padding: 6.5rem 2rem 3rem;
    color: var(--text-white);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.footer-left h2 {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 500; /* Satoshi Medium */
    margin-bottom: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 480px;
}

.field {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.field:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 69, 26, 0.25);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    font-family: var(--font-main);
    font-weight: 500; /* Satoshi Medium */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1.15rem 3.5rem;
    background: var(--brand-orange);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 69, 26, 0.35);
}

.submit-btn:hover {
    background: var(--brand-orange-hover);
    box-shadow: 0 12px 30px rgba(255, 69, 26, 0.5);
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
}

.footer-col h4 {
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--brand-blue-soft);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand-blue-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--text-white);
}

.top-btn {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-white);
}

/* ================================================
   RESPONSIVE DESIGN (MOBILE-FIRST OPTIMIZATION)
   ================================================ */
@media (max-width: 992px) {
    .site-nav {
        padding: 1rem 2rem;
    }
    .benefits-container,
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .footer-right {
        justify-content: flex-start;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Compact section paddings to eliminate empty gaps */
    #hero {
        min-height: 75vh;
        padding: 5.5rem 1rem 2.5rem;
    }
    #ecosistema-servicios,
    #empresas-acompanan,
    #benefits,
    #equipo,
    #ecosystem {
        padding: 3rem 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
        line-height: 1.45;
    }
    .hero-logo-portada {
        width: min(380px, 90vw);
        margin-bottom: 1rem;
    }
    .hero-content p {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        margin-bottom: 1.5rem;
    }
    
    /* Navbar móvil con menú hamburguesa */
    .site-nav {
        padding: 0.75rem 1.25rem;
    }
    .nav-logo-img {
        height: 40px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(240, 235, 229, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--surface-glass-border);
        box-shadow: 0 15px 30px rgba(36, 62, 146, 0.12);
        flex-direction: column;
        gap: 1.35rem;
        padding: 2rem 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
    .nav-instagram {
        margin-top: 0.25rem;
    }

    /* NUESTRO ECOSISTEMA EN MÓVIL: 3 CUADROS EN UNA SOLA LÍNEA */
    .ecosystem-flow-wrapper {
        display: flex;
        gap: 0.35rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .ecosystem-flow-arrow {
        display: none;
    }
    .ecosystem-card {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.75rem 0.35rem;
        border-radius: var(--radius-sm);
        border-width: 1px;
    }
    .eco-card-top {
        margin-bottom: 0.35rem;
    }
    .eco-badge-step {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        border-radius: 5px;
    }
    .eco-icon-wrap {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }
    .eco-icon-wrap svg {
        width: 13px;
        height: 13px;
    }
    .eco-card-title {
        font-size: 0.82rem;
        margin-bottom: 0.25rem;
        line-height: 1.1;
    }
    .eco-card-desc {
        font-size: 0.58rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
    }
    .eco-flow-next {
        display: none;
    }
    .eco-badges-wrap {
        gap: 0.22rem;
        padding-top: 0.4rem;
        border-top: 1px solid rgba(150, 180, 222, 0.2);
    }
    .eco-badge {
        font-size: 0.5rem;
        padding: 0.18rem 0.35rem;
        border-radius: 4px;
        line-height: 1.15;
    }
    .scalability-banner {
        padding: 0.85rem 0.85rem;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }
    .scalability-icon-wrap {
        width: 32px;
        height: 32px;
    }
    .scalability-icon-wrap svg {
        width: 16px;
        height: 16px;
    }
    .scalability-title {
        font-size: 0.76rem;
        display: block;
        margin-bottom: 0.15rem;
    }
    .scalability-desc {
        font-size: 0.72rem;
        line-height: 1.35;
    }
    .ecosystem-footer-text {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 1.5rem;
    }

    /* EMPRESAS QUE NOS ACOMPAÑAN EN MÓVIL: 3 EN 3 */
    .empresas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    .empresa-logo-card img {
        max-height: 48px;
        max-width: 95%;
    }

    /* EQUIPO EN MÓVIL: 2 PRINCIPALES A LA PAR + 4 SECUNDARIAS DEBAJO A LA PAR */
    .team-grid-primary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        margin-bottom: 0.65rem;
    }
    .team-grid-secondary {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.32rem;
    }
    .team-card {
        padding: 0.65rem 0.35rem;
        border-radius: var(--radius-sm);
    }
    .team-card-featured {
        padding: 0.85rem 0.55rem;
    }
    .team-card-small {
        padding: 0.5rem 0.22rem;
    }
    .team-photo-wrapper {
        aspect-ratio: 4 / 4.8;
        margin-bottom: 0.45rem;
        border-radius: 6px;
    }
    .small-photo {
        aspect-ratio: 4 / 4.8;
        margin-bottom: 0.35rem;
    }
    .team-photo-badge {
        top: 0.25rem;
        right: 0.25rem;
        font-size: 0.46rem;
        padding: 0.12rem 0.35rem;
    }
    .team-card-info h3 {
        font-size: 0.72rem;
        margin-bottom: 0.12rem;
        line-height: 1.15;
    }
    .team-card-small .team-card-info h3 {
        font-size: 0.56rem;
    }
    .team-role {
        font-size: 0.52rem;
        margin-bottom: 0.25rem;
    }
    .team-card-small .team-role {
        font-size: 0.44rem;
        margin-bottom: 0.18rem;
    }
    .team-desc {
        font-size: 0.54rem;
        line-height: 1.25;
    }
    .team-card-small .team-desc {
        font-size: 0.45rem;
        line-height: 1.2;
    }

    /* Benefits Checklist móvil */
    .benefits-checklist {
        padding: 1.75rem 1.25rem;
    }
    .benefits-checklist li {
        font-size: 0.95rem;
        gap: 0.85rem;
    }

    /* Footer móvil */
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    .legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .capsule-top-right,
    .capsule-bottom-left {
        transform: scale(0.6) rotate(45deg);
    }
}
