/* ==========================================================================
   TESoCo - Estilos Globales
   ========================================================================== */
:root {
    --bg-dark: #12161f;
    --bg-gray: #1e2a32;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --accent: #f4a261;
    --accent-dark: #e76f51;
    --border-light: #cbd5e1;
    --card-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease;
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-code: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6; /* Mejorado para legibilidad */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased; /* Mejor renderizado de fuentes */
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background-color: var(--bg-dark);
    color: white;
    padding: 16px 0;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegurado por encima de todo */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center; /* Centrado verticalmente */
    gap: 16px;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 45px; /* Altura controlada para el logo */
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0; /* Reseteo de margen */
}

.logo-tag {
    font-size: 0.7rem;
    background: rgba(255, 255, 240, 0.1);
    padding: 4px 10px;
    border-radius: 40px;
    color: #cbd5e1;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Menú hamburguesa */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero, .page-hero {
    background: linear-gradient(110deg, #0a0f1c 0%, #1b2a3a 100%);
    color: white;
    padding: 80px 0 70px;
}

.page-hero {
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 162, 97, 0.2);
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(244, 162, 97, 0.4);
}

.hero h2, .page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p, .page-hero p {
    font-size: 1.2rem;
    max-width: 640px;
    margin-bottom: 32px;
    color: #d4dfea;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Botones */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: white;
}

.btn-secondary:hover {
    background: rgba(244, 162, 97, 0.2);
    color: white;
}

.outline-light {
    background: transparent;
    border: 1.5px solid white;
    color: white;
}
.outline-light:hover {
    background: white;
    color: var(--bg-dark);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.25);
    border-radius: 60px;
    padding: 12px 24px;
    width: fit-content;
}

.stat span {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--accent);
}

/* ==========================================================================
   Secciones Generales y Tarjetas
   ========================================================================== */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.section-tag {
    background: #e9ecef;
    color: var(--text-dark);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    border: 1px solid #eef2f6;
}

.card:hover {
    transform: translateY(-6px);
}

/* Feature Tour (COB) */
.tour-timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding-left: 20px;
}
.tour-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    height: 100%;
    width: 3px;
    background: #e2e8f0;
}
.tour-step {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.tour-icon-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
}
.tour-number {
    font-size: 0.75rem;
    font-weight: 800;
    background: #1e222b;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-bottom: -8px;
    z-index: 3;
}
.tour-icon-container i {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 3px solid var(--accent);
    color: #1e222b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.tour-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    flex: 1;
}
.tour-content h3 {
    font-size: 1.25rem;
    color: #1e222b;
    margin-bottom: 10px;
    font-weight: 700;
}
.tour-content p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

/* ==========================================================================
   Estilos específicos para Página COB
   ========================================================================== */
.cob-logo-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 32px;
    border: 1px solid #e2e8f0;
}
.cob-logo-visual img {
    max-height: 80px;
    margin-bottom: 20px;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.spec-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.spec-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.spec-card ul {
    list-style: none;
    margin-top: 16px;
    text-align: left;
    padding-left: 0;
}
.spec-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.features-cob-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}
.feature-cob-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}
.feature-icon {
    font-size: 2rem;
    color: var(--accent);
}

.benefits-section {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.flow-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.flow-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Videos Section */
.videos-section {
    padding: 60px 0;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-info {
    padding: 20px;
}

/* ==========================================================================
   Estilos para Página Nosotros
   ========================================================================== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
}
.mission-card, .vision-card {
    padding: 40px;
    border-radius: 28px;
    text-align: center;
}
.mission-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
}
.vision-card {
    background: white;
    border: 1px solid #e2e8f0;
}
.mission-card i, .vision-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.founder-card {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    align-items: center;
}
.founder-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--accent);
}
.founder-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-title {
    color: var(--accent-dark);
    font-weight: 600;
    margin: 8px 0 16px;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.tech-tags span {
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #0b1119;
    color: #adb7c4;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3, .footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 16px;
}
.footer-links ul {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a, .social-icons a {
    text-decoration: none;
    color: #adb7c4;
    transition: var(--transition);
}
.footer-links a:hover, .social-icons a:hover {
    color: var(--accent);
}
.social-icons {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    font-size: 1.2rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e2a32;
    padding-top: 24px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Estilos para Index - Service Showcase (servicios destacados)
   ========================================================================== */
.service-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eef2f6;
}

.service-showcase.reverse {
    flex-direction: row-reverse;
}

.service-icon-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fef3e8, #fff7f0);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large i {
    font-size: 3.5rem;
    color: var(--accent);
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--bg-dark);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}

.service-features span {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-features span i {
    color: var(--accent-dark);
}

.service-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.mini-stat {
    background: var(--bg-dark);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* COB Showcase (sección oscura destacada) */
.cob-showcase-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.cob-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cob-showcase-content .section-tag.light {
    background: rgba(244, 162, 97, 0.2);
    color: var(--accent);
}

.cob-showcase-content h2 {
    font-size: 2rem;
    margin: 16px 0;
}

.cob-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.cob-highlights span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cob-highlights span i {
    color: var(--accent);
}

.cob-showcase-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat-cob {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: 24px;
    min-width: 160px;
}

.stat-cob i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.stat-cob .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* MVS Section (Plan Ignite) */
.mvs-section {
    margin: 60px auto;
}

.mvs-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

.mvs-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.mvs-header i {
    font-size: 2.5rem;
    color: var(--accent);
}

.mvs-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.mvs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.mvs-phase {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.phase-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phase-content h4 {
    margin-bottom: 8px;
}

.phase-content p {
    color: #64748b;
    font-size: 0.9rem;
}

.mvs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.mvs-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.mvs-footer span i {
    color: var(--accent-dark);
}

/* Beneficios transversales */
.benefits-transversal {
    background: #f8fafc;
    padding: 60px 0;
}

.benefits-grid-transversal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.benefit-trans {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 24px;
    transition: transform 0.2s;
}

.benefit-trans:hover {
    transform: translateY(-5px);
}

.benefit-trans i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.benefit-trans h4 {
    margin-bottom: 12px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--bg-dark);
        position: absolute;
        top: 100%; /* Ajustado para pegarlo al header */
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 1rem;
        border-top: 1px solid #2d3e4b;
        z-index: 999;
    }
    nav ul.show {
        display: flex;
    }
    .hero h2, .page-hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .founder-card {
        flex-direction: column;
        text-align: center;
    }
    .founder-avatar-img {
        margin: 0 auto;
    }
    .tour-timeline::before {
        left: 25px;
    }
    .tour-step {
        gap: 15px;
    }
    .tour-icon-container {
        min-width: 34px;
    }
    .tour-icon-container i {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .tour-content {
        padding: 15px;
    }
    .service-showcase, .service-showcase.reverse {
        flex-direction: column;
        text-align: center;
    }
    .cob-showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mvs-grid {
        grid-template-columns: 1fr !important; /* Forzar en móvil */
    }
    .mvs-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .service-features, .service-stats {
        justify-content: center;
    }
}