/* ========== RESET & BASE ========== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #040914;
    color: #e2e8f0;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* ========== HEADER ========== */
.header-main {
    position: sticky;
    top:0;
    z-index: 50;
    background-color: rgba(1,20,61,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30,41,59,0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo-area { display: flex; align-items: center; }
.logo-box {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(51,65,85,0.4);
    background-color: rgba(1,14,40,0.6);
    padding: 0.375rem;
    /* Centrado perfecto del logo */
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-img {
    height: 3.25rem;      /* +30% sobre 2.5rem */
    width: auto;
    display: block;       /* evita alineaciones inline extrañas */
}
@media (min-width: 768px) {
    .logo-img { height: 3.575rem; }  /* +30% sobre 2.75rem */
}
.logo-fallback { display: flex; align-items: center; gap: 0.75rem; }
.fallback-icon {
    position: relative;
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.5rem;
    background-color: #010e28;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.fallback-q {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 1;
}
.fallback-wave {
    position: absolute;
    bottom: 0.25rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 0.25rem;
    background: linear-gradient(to right, #0046ad, #00a3e0);
    border-radius: 9999px;
}
.fallback-text { display: flex; flex-direction: column; }
.fallback-name { font-size: 1.125rem; font-weight: 700; color: #fff; line-height: 1; }
.fallback-spa { font-size: 0.625rem; font-weight: 600; color: #00a3e0; letter-spacing: 0.1em; margin-top: 0.125rem; }

.header-nav { display: none; }
@media (min-width: 768px) {
    .header-nav { display: flex; gap: 2rem; }
}
.header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.header-nav a:hover { color: #00a3e0; }

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    height: 2.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #0046ad, #00a3e0);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,70,173,0.2);
    transition: opacity 0.3s, transform 0.2s;
}
.header-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ========== HERO ========== */
.hero-section {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: 25%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: rgba(0,163,224,0.05);
    filter: blur(130px);
    border-radius: 50%;
    pointer-events: none;
}
.hero-bg-glow-secondary {
    position: absolute;
    top: 33%; left: 33%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: rgba(0,70,173,0.05);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #00a3e0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.badge-dot {
    width: 0.375rem; height: 0.375rem;
    border-radius: 50%;
    background: #00a3e0;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-title { font-size: 3.75rem; }
}
.hero-title-break { display: none; }
@media (min-width: 768px) { .hero-title-break { display: block; } }
.hero-title-highlight {
    background: linear-gradient(to right, #fff, #e2e8f0, #00a3e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 3.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #0046ad, #00a3e0);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,70,173,0.2);
    transition: transform 0.2s, opacity 0.3s;
}
.btn-primary:hover { transform: scale(1.01); opacity: 0.9; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 3.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid #1e293b;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-secondary:hover { background: rgba(30,41,59,0.5); }

/* ========== CARRUSEL MARCAS ========== */
.clients-section {
    padding: 3rem 0;
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #0f172a;
    background: rgba(13,21,39,0.1);
    position: relative;
    overflow: hidden;
}
.clients-heading {
    max-width: 1280px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    text-align: center;
}
@media (min-width: 768px) { .clients-heading { text-align: left; } }
.clients-title-cyan {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00a3e0;
}
.carousel-wrapper { position: relative; }
.slider-shadow::before,
.slider-shadow::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.slider-shadow::before {
    left: 0;
    background: linear-gradient(to right, #040914, transparent);
}
.slider-shadow::after {
    right: 0;
    background: linear-gradient(to left, #040914, transparent);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 9)); }
}
.slider-track {
    display: flex;
    width: calc(300px * 18);
    animation: scroll 35s linear infinite;
}
.slider-track:hover { animation-play-state: paused; }
.slide {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 20px;
}
.brand-logo {
    max-width: 260px;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.brand-text {
    display: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0.5;
    transition: 0.3s;
}
.slide:hover .brand-text { opacity: 1; color: #fff; }
@media (max-width: 767px) {
    .slide { width: 200px; padding: 0 10px; }
    .brand-logo { max-width: 130px; max-height: 50px; }
    .slider-track { width: calc(200px * 18); }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 9)); }
    }
}

/* ========== ENFOQUE ========== */
.enfoque-section { padding: 6rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.section-intro { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00a3e0;
    margin-bottom: 0.75rem;
}
.section-headline {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
@media (min-width: 768px) { .section-headline { font-size: 2.25rem; } }
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.enfoque-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(13,21,39,0.3);
    border: 1px solid #0f172a;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.enfoque-card:hover { border-color: #1e293b; }
.card-icon {
    width: 3rem; height: 3rem;
    border-radius: 0.75rem;
    background: rgba(0,163,224,0.1);
    border: 1px solid rgba(0,163,224,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a3e0;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.enfoque-card:hover .card-icon {
    background: linear-gradient(to right, #0046ad, #00a3e0);
    color: #fff;
}
.icon-svg { width: 1.5rem; height: 1.5rem; }
.card-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.card-text { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; }

/* ========== PORTAFOLIO ========== */
.portfolio-section {
    padding: 6rem 1.5rem;
    background: rgba(13,21,39,0.2);
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #0f172a;
}
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 48rem;
    margin: 3rem auto;
    padding: 0.375rem;
    border-radius: 0.75rem;
    background: #020617;
    border: 1px solid #0f172a;
}
.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active {
    border-color: #00a3e0;
    color: #fff;
    background: rgba(0,163,224,0.06);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.caso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) { .caso-grid { grid-template-columns: 7fr 5fr; } }
.caso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00a3e0;
    background: rgba(0,163,224,0.05);
    border: 1px solid rgba(0,163,224,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}
.caso-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
@media (min-width: 768px) { .caso-title { font-size: 1.875rem; } }
.caso-description { color: #94a3b8; line-height: 1.65; margin-bottom: 1.5rem; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1rem; }
.metric {
    padding: 1rem;
    background: #020617;
    border: 1px solid #0f172a;
    border-radius: 0.75rem;
    text-align: center;
}
.metric-number { font-size: 1.5rem; font-weight: 700; color: #fff; display: block; margin-bottom: 0.25rem; }
.metric-number-cyan { font-size: 1.5rem; font-weight: 700; color: #00a3e0; display: block; margin-bottom: 0.25rem; }
.metric-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: #94a3b8; }
.caso-highlight {
    background: linear-gradient(to bottom right, #020617, #0d1527);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #0f172a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.highlight-title { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; color: #94a3b8; text-transform: uppercase; margin-bottom: 1rem; }
.highlight-list { list-style: none; }
.highlight-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.check { color: #00a3e0; margin-top: 0.125rem; }
.highlight-list strong { color: #e2e8f0; }

/* ========== TRAYECTORIA ========== */
.trayectoria-section { padding: 6rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.trayectoria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) { .trayectoria-grid { grid-template-columns: 5fr 7fr; } }
.trayectoria-left { display: flex; flex-direction: column; gap: 1rem; }
.trayectoria-text { color: #94a3b8; font-size: 0.875rem; line-height: 1.65; }
.trayectoria-stats { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.5rem; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #fff; display: block; }
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #00a3e0; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 3rem; background: #1e293b; }
.trayectoria-sectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.sector-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(13,21,39,0.2);
    border: 1px solid #0f172a;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.sector-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0; }
.sector-dot.cyan { background: #00a3e0; }
.sector-dot.blue { background: #0046ad; }
.sector-dot.purple { background: #6366f1; }

/* ========== CONTACTO ========== */
.contact-section {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.contact-section::before {
    content: "";
    position: absolute;
    bottom: 25%; right: 25%;
    width: 400px; height: 400px;
    background: rgba(0,70,173,0.05);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}
.contact-card {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    background: linear-gradient(to bottom, #0d1527, #020617);
    border: 1px solid #0f172a;
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) { .contact-card { grid-template-columns: 5fr 7fr; padding: 4rem; } }
.contact-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.contact-text { font-size: 0.875rem; color: #94a3b8; line-height: 1.65; margin-bottom: 2rem; }
.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.contact-steps span { color: #00a3e0; font-size: 1rem; margin-right: 0.75rem; }
.contact-direct { display: flex; flex-direction: column; gap: 0.5rem; }
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00a3e0;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}
.whatsapp-link:hover { text-decoration: underline; }
.wa-icon { width: 1.25rem; height: 1.25rem; }
.contact-email { font-size: 0.75rem; color: #94a3b8; }

.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #020617;
    border: 1px solid #0f172a;
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #00a3e0; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form button {
    width: 100%;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #0046ad, #00a3e0);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,70,173,0.15);
    transition: opacity 0.3s;
}
.contact-form button:hover { opacity: 0.9; }
.form-note { font-size: 0.625rem; color: #94a3b8; text-align: center; margin-top: 0.5rem; }

/* ========== FOOTER ========== */
.footer-main {
    border-top: 1px solid #0f172a;
    padding: 3rem 1.5rem;
    background: rgba(2,6,23,0.8);
    font-size: 0.75rem;
    color: #94a3b8;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo {
    width: 1.5rem; height: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.25rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    font-size: 0.75rem; font-weight: 800; color: #fff;
}
.footer-name { font-weight: 700; color: #cbd5e1; }
.footer-info p { margin-bottom: 0.25rem; }
.footer-link { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #00a3e0; }
.footer-tags {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-tags span { color: #00a3e0; }