/* ==============================================================
   PRELOADER — PANTALLA DE CARGA JEO ASESORES
   ============================================================== */

/* Oculta el body mientras carga */
body.loading {
    overflow: hidden;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #030508;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Canvas de partículas del preloader */
#preloaderCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Centro del preloader */
.pl-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Anillo SVG giratorio */
.pl-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pl-ring-track {
    fill: none;
    stroke: rgba(157, 21, 53, 0.12);
    stroke-width: 2;
}

.pl-ring-fill {
    fill: none;
    stroke: var(--brand-primary, #9D1535);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 339.3; /* 2π × 54 */
    stroke-dashoffset: 339.3;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(157, 21, 53, 0.6));
}
.pl-ring-fill.animate {
    stroke-dashoffset: 0;
}

/* Segundo anillo decorativo */
.pl-ring-wrap::before {
    content: '';
    position: absolute;
    width: 174px;
    height: 174px;
    border-radius: 50%;
    border: 1px solid rgba(157, 21, 53, 0.2);
    animation: plRingPulse 2.5s ease-in-out infinite;
}
.pl-ring-wrap::after {
    content: '';
    position: absolute;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    border: 1px solid rgba(157, 21, 53, 0.1);
    animation: plRingPulse 2.5s ease-in-out infinite 0.4s;
}
@keyframes plRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.04); opacity: 1; }
}

/* Caja del logo dentro del anillo */
.pl-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

/* Logo principal */
.pl-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pl-logo.show {
    opacity: 1;
    transform: scale(1);
}

.pl-jeo { font-size: 2rem; color: #9D1535; }
.pl-sesores {
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: -1px;
}

/* Tagline bajo el logo */
.pl-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    white-space: nowrap;
}
.pl-tagline.show {
    opacity: 1;
    transform: translateY(0);
}

/* Barra de progreso */
.pl-progress-wrap {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.pl-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9D1535, #C41D43, #9D1535);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: plBarShimmer 1.5s linear infinite;
}
.pl-progress-bar.fill { width: 100%; }
@keyframes plBarShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Texto de carga */
.pl-loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: plTextBlink 1.8s ease-in-out infinite;
    transition: opacity 0.4s ease;
}
.pl-loading-text.show { opacity: 1; }
@keyframes plTextBlink {
    0%, 100% { opacity: 0.28; }
    50%       { opacity: 0.6; }
}

/* ---- Cortinas de salida (split reveal) ---- */
.pl-curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #030508;
    z-index: 3;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.pl-curtain-top    { top: 0; transform: translateY(0); }
.pl-curtain-bottom { bottom: 0; transform: translateY(0); }

.pl-curtain-top.open    { transform: translateY(-100%); }
.pl-curtain-bottom.open { transform: translateY(100%); }

/* Cuando el preloader termina del todo */
#preloader.hidden {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.9s;
}

/* ==============================================================
   VARIABLES DE MARCA — JEO ASESORES
   ============================================================== */
:root {
    --brand-primary: #9D1535;
    --brand-primary-dark: #7A1029;
    --brand-primary-light: #C41D43;
    --brand-dark: #1A1A1A;
    --brand-dark-mid: #111111;
    --hero-bg: #040810;

    --text-main: #1A1A1A;
    --text-mid: #444444;
    --text-light: #717171;
    --text-white: #FFFFFF;
    --text-muted: #AAAAAA;

    --bg-white: #FFFFFF;
    --bg-light: #F4F6F9;
    --bg-dark: #0D0D0D;
    --border: #E2E8F0;
    --border-dark: rgba(255,255,255,0.08);

    --font: 'Poppins', sans-serif;
    --t: 0.3s ease;
    --t-slow: 0.6s ease;

    --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-brand: 0 15px 40px rgba(157,21,53,0.2);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ==============================================================
   RESET & BASE
   ============================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-main); background: var(--bg-white); line-height: 1.65; overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--brand-dark); }
a { text-decoration: none; color: inherit; transition: var(--t); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-accent { color: var(--brand-primary); }

/* ==============================================================
   BOTONES
   ============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--t);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--brand-primary-dark);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}
.btn-outline:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-large { padding: 16px 38px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ==============================================================
   SECTION HEADERS
   ============================================================== */
.section-title {
    text-align: center;
    margin-bottom: 65px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.section-title h2 { font-size: 2.6rem; margin-bottom: 16px; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(157,21,53,0.08);
    color: var(--brand-primary);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-tag.light {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

/* ==============================================================
   WHATSAPP FLOTANTE
   ============================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2); opacity: 0; }
}

/* ==============================================================
   BOTÓN FLOTANTE FACEBOOK
   ============================================================== */
.facebook-float {
    position: fixed;
    bottom: 100px;
    left: 28px;
    width: 48px;
    height: 48px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: 0 5px 18px rgba(24,119,242,0.4);
    transition: transform var(--t), box-shadow var(--t);
    color: #fff;
}
.facebook-float svg { width: 20px; height: 20px; }
.facebook-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(24,119,242,0.55);
}

/* ==============================================================
   NAVBAR
   ============================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    color: #fff;
    transition: var(--t);
}
.navbar.scrolled .logo { color: var(--brand-dark); }
.logo-jeo { color: var(--brand-primary); }
.logo-sesores { font-size: 1.6rem; letter-spacing: -1px; color: #fff; }
.navbar.scrolled .logo-sesores { color: var(--brand-dark); }
.logo-footer .logo-sesores { color: var(--brand-dark); }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width var(--t);
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover { color: var(--brand-primary); }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.nav-cta { font-size: 0.88rem; padding: 10px 22px; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--t);
}
.navbar.scrolled .hamburger span { background: var(--brand-dark); }

/* ==============================================================
   HERO SECTION — AGUA / CENTRADO / WOW
   ============================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #030508;
}

/* --- Imagen de fondo: gota de agua dramática --- */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1920&q=85');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.22;
    filter: saturate(0.4) brightness(0.7);
    transform: scale(1.06);
    animation: heroBgFloat 20s ease-in-out infinite alternate;
}
@keyframes heroBgFloat {
    from { transform: scale(1.06) translateY(0px); }
    to   { transform: scale(1.10) translateY(-12px); }
}

/* --- Overlays de profundidad --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3,5,8,0.7)  0%,
        rgba(3,5,8,0.55) 40%,
        rgba(3,5,8,0.75) 75%,
        rgba(3,5,8,0.98) 100%
    );
    z-index: 1;
}
.hero-overlay-radial {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(157,21,53,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 30%, rgba(80,5,25,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 80% 70%, rgba(80,5,25,0.10) 0%, transparent 60%);
    z-index: 1;
    animation: radialShift 12s ease-in-out infinite alternate;
}
@keyframes radialShift {
    from { opacity: 0.8; }
    to   { opacity: 1.2; }
}

/* --- Canvas agua --- */
#waterCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* --- Orbes atmosféricos flotantes --- */
.hero-orbs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(157,21,53,0.2) 0%, transparent 70%);
    top: -80px; left: -60px;
    animation-duration: 20s;
}
.orb-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(100,5,30,0.15) 0%, transparent 65%);
    bottom: -100px; right: -80px;
    animation-duration: 25s;
    animation-delay: -8s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(157,21,53,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 15s;
    animation-delay: -4s;
}
@keyframes orbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.1); }
}

/* --- Líneas de grilla decorativas --- */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8%;
}
.hero-grid-lines span {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255,255,255,0.04) 30%,
        rgba(157,21,53,0.08) 55%,
        rgba(255,255,255,0.03) 75%,
        transparent 100%
    );
}

/* --- Contenedor centrado principal --- */
.hero-center-wrap {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    padding: 130px 24px 60px;
    width: 100%;
}

/* --- Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(157,21,53,0.1);
    border: 1px solid rgba(157,21,53,0.35);
    border-radius: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    margin-bottom: 36px;
    opacity: 0;
    backdrop-filter: blur(8px);
    animation: heroFallback 0.6s ease 3s forwards;
}
.badge-pulse {
    width: 8px; height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes badgePulse {
    0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(157,21,53,0.5); }
    50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(157,21,53,0); }
}

/* --- Anillo de icono central --- */
.hero-icon-ring {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    opacity: 0;
    animation: heroFallback 0.6s ease 3.1s forwards;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(157,21,53,0.3);
    animation: ringPulse 4s ease-in-out infinite;
}
.ring-outer  { width: 100px; height: 100px; animation-delay: 0s; }
.ring-mid    { width: 72px;  height: 72px;  animation-delay: 0.6s; border-color: rgba(157,21,53,0.45); }
.ring-inner  { width: 50px;  height: 50px;  animation-delay: 1.2s; border-color: rgba(157,21,53,0.6); }
@keyframes ringPulse {
    0%,100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.06); opacity: 1; }
}
.ring-core {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--brand-primary), #6e0e23);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 30px rgba(157,21,53,0.5), 0 0 60px rgba(157,21,53,0.2);
    position: relative;
    z-index: 2;
}

/* --- Título hero --- */
.hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 28px;
    opacity: 0;
    letter-spacing: -2px;
    animation: heroFallback 0.6s ease 3.2s forwards;
}
.title-line-wrap {
    display: inline-block;
    position: relative;
}
.text-accent { color: var(--brand-primary); }
.title-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light), transparent);
    border-radius: 2px;
    transition: width 1.2s ease 1.4s;
}
.title-underline.animate { width: 100%; }

/* --- Subtítulo --- */
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.55);
    max-width: 580px;
    margin-bottom: 44px;
    line-height: 1.8;
    opacity: 0;
    font-weight: 400;
    animation: heroFallback 0.6s ease 3.3s forwards;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 42px;
    opacity: 0;
    /* Fallback: si Anime.js no ejecuta, se muestra después de 3s */
    animation: heroFallback 0.6s ease 3s forwards;
}
@keyframes heroFallback {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Trust chips --- */
.hero-trust-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: heroFallback 0.6s ease 3.4s forwards;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}
.trust-chip svg { color: var(--brand-primary); flex-shrink: 0; }

/* --- Barra de estadísticas inferior --- */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 22px 0;
    opacity: 0;
    animation: heroFallback 0.6s ease 3.5s forwards;
}
.hsb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 50px;
    text-align: center;
}
.hsb-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.hsb-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    letter-spacing: 0.3px;
}
.hsb-divider {
    width: 1px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* --- Scroll indicator --- */
.scroll-indicator {
    display: none;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: rgba(157,21,53,0.7);
    border-radius: 2px;
    animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes wheelScroll {
    0%   { transform: translateY(0); opacity: 1; }
    60%  { transform: translateY(10px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==============================================================
   TRUST BAR
   ============================================================== */
.trust-bar {
    background: var(--brand-dark);
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.tb-label {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.sectors-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: rgba(255,255,255,0.55);
    font-size: 0.87rem;
    font-weight: 500;
}
.dot-sep { color: var(--brand-primary); font-size: 0.5rem; }

/* ==============================================================
   BENEFICIOS
   ============================================================== */
.benefits { background: var(--bg-white); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--t-slow);
    position: relative;
    overflow: hidden;
}
.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(157,21,53,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--t-slow);
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-brand);
    border-color: rgba(157,21,53,0.15);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card:hover .bc-icon { background: var(--brand-primary); color: #fff; }

.bc-icon {
    width: 60px;
    height: 60px;
    background: rgba(157,21,53,0.06);
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all var(--t);
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.benefit-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.bc-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--brand-primary);
    border-radius: 0 2px 0 0;
    transition: width 0.4s ease;
}
.benefit-card:hover .bc-line { width: 100%; }

/* ==============================================================
   SERVICIOS
   ============================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: all var(--t-slow);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sc-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.sc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .sc-image img { transform: scale(1.07); }
.sc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,5,15,0.1) 0%, rgba(157,21,53,0.4) 100%);
}

.sc-body { padding: 30px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.sc-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(157,21,53,0.12);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.sc-body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.sc-body > p { color: var(--text-light); font-size: 0.93rem; line-height: 1.7; margin-bottom: 18px; }

.sc-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; flex: 1; }
.sc-list li {
    font-size: 0.87rem;
    color: var(--text-mid);
    padding-left: 18px;
    position: relative;
}
.sc-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.8rem;
}
.sc-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap var(--t);
}
.sc-link:hover { gap: 10px; }

/* ==============================================================
   HIGHLIGHT / STATS
   ============================================================== */
.highlight-section {
    position: relative;
    padding: 110px 0;
    background: var(--brand-dark-mid);
    overflow: hidden;
}
#hlCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.hl-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(157,21,53,0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(80,5,25,0.2) 0%, transparent 50%);
}
.hl-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.hl-content { display: flex; flex-direction: column; gap: 0; }
.hl-content h2 { color: #fff; font-size: 2.5rem; margin-bottom: 18px; }
.hl-content p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.75; margin-bottom: 36px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    text-align: center;
    transition: all var(--t);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-item:hover {
    background: rgba(157,21,53,0.1);
    border-color: rgba(157,21,53,0.25);
    transform: translateY(-4px);
}
.stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    display: inline;
}
.stat-suffix { font-size: 2rem; font-weight: 700; color: var(--brand-primary); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ==============================================================
   PROCESO / METODOLOGÍA
   ============================================================== */
.process { background: var(--bg-white); }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--brand-primary), var(--border));
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
}

.ps-number {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 auto 24px;
    transition: all var(--t-slow);
    position: relative;
    z-index: 2;
}
.process-step:hover .ps-number {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-brand);
}

.ps-connector { display: none; }
.ps-content {}
.ps-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ps-content h3 { font-size: 1.05rem; margin-bottom: 10px; }
.ps-content p { font-size: 0.87rem; color: var(--text-light); line-height: 1.65; }
.ps-duration {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    background: rgba(157,21,53,0.07);
    color: var(--brand-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==============================================================
   INDUSTRIAS / PORTAFOLIO
   ============================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.industry-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 300px;
    cursor: pointer;
}
.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.industry-card:hover img { transform: scale(1.12); }

.ic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4,4,10,0.95) 0%,
        rgba(4,4,10,0.4) 50%,
        rgba(4,4,10,0.1) 100%
    );
    display: flex;
    align-items: flex-end;
    transition: background var(--t-slow);
}
.industry-card:hover .ic-overlay {
    background: linear-gradient(
        to top,
        rgba(100,10,30,0.95) 0%,
        rgba(50,5,20,0.7) 50%,
        rgba(10,3,10,0.4) 100%
    );
}

.ic-content { padding: 28px; width: 100%; }
.ic-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(157,21,53,0.6);
    color: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ic-content h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.ic-content p {
    color: rgba(255,255,255,0.65);
    font-size: 0.83rem;
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-bottom: 0;
}
.industry-card:hover .ic-content p { max-height: 100px; opacity: 1; margin-bottom: 12px; }
.ic-btn {
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}
.industry-card:hover .ic-btn { opacity: 1; transform: translateY(0); }

/* ==============================================================
   CONTACTO
   ============================================================== */
.contact { background: var(--bg-white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 16px; }
.contact-info > p { color: var(--text-light); line-height: 1.75; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ci-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ci-icon {
    width: 46px;
    height: 46px;
    background: rgba(157,21,53,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ci-item > div { display: flex; flex-direction: column; gap: 2px; }
.ci-item strong { font-size: 0.88rem; color: var(--text-main); }
.ci-item span { font-size: 0.92rem; color: var(--text-light); }

.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-embed iframe { display: block; }

/* Formulario */
.contact-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-sub { color: var(--text-light); font-size: 0.88rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-main); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--bg-light);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(157,21,53,0.08);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; cursor: pointer; }

.form-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 14px;
}

/* ==============================================================
   FOOTER
   ============================================================== */
.footer { background: var(--brand-dark); }

.footer-top { padding: 80px 0 50px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-brand .logo-footer {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -2px;
    display: inline-flex;
    align-items: baseline;
    background: var(--bg-white);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.footer-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 290px;
    margin-bottom: 22px;
}

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--t);
}
.social-links a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: var(--t);
}
.footer-col a:hover { color: var(--brand-primary); padding-left: 5px; }
.footer-col p {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 22px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* ==============================================================
   REVEAL ANIMATIONS (base state — JS animates)
   ============================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================
   RESPONSIVE — TABLET
   ============================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.4rem; }
    .hero-subtitle { max-width: 100%; }
    .hsb-item { padding: 0 28px; }

    .hl-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hl-content .btn { align-self: center; }

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

/* ==============================================================
   RESPONSIVE — MOBILE
   ============================================================== */
@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }

    /* Navbar */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(4,8,16,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { color: #fff; font-size: 1.2rem; }
    .hamburger { display: flex; z-index: 1001; }
    .nav-cta { display: none; }

    /* Hero */
    .hero-title { font-size: 2.6rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-center-wrap { padding-bottom: 160px; } /* espacio para la barra de stats fija */
    .hsb-item { padding: 0 12px; }
    .hsb-num { font-size: 1.4rem; }
    .hsb-label { font-size: 0.68rem; }
    .hero-trust-row { gap: 6px; }
    .trust-chip { font-size: 0.72rem; padding: 6px 10px; }
    .hero-buttons { gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Sections */
    .section-title h2 { font-size: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .process-timeline::before { display: none; }
    .industries-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    .float-card { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .btn-large { padding: 14px 24px; font-size: 0.92rem; }
    .stats-grid { grid-template-columns: 1fr; }
}
