/* === PALETA CORPORATIVA DE ALTA GAMA === */
:root {
    --bg-main: #F8FAFC;
    --card-bg: #FFFFFF;
    --azul-primary: #0A192F;
    --azul-accent: #1E3A8A;
    --naranja-primary: #E65100;
    --naranja-hover: #C44100;
    --naranja-soft: rgba(230, 81, 0, 0.08);
    --texto-dark: #0F172A;
    --texto-muted: #64748B;
    --borde-card: #E2E8F0;
    --sombra-elegante: 0 10px 30px -5px rgba(10, 25, 47, 0.04);
    --sombra-hover: 0 20px 40px -10px rgba(10, 25, 47, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--texto-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.75;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === FONDO DIURNO LUMINOSO === */
.sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.cloud-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(230, 81, 0, 0.035) 0%, rgba(255, 255, 255, 0.7) 60%, transparent 80%);
    filter: blur(80px);
}

.cloud-glow-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.025) 0%, rgba(255, 255, 255, 0.6) 60%, transparent 80%);
    filter: blur(90px);
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(10, 25, 47, 0.015) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(10, 25, 47, 0.015) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: 0;
}

/* === CONTENEDOR PRINCIPAL ESPACIOSO === */
.page-wrapper {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 2.5rem 1.5rem 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

@media(min-width: 768px) {
    .page-wrapper {
        padding: 4rem 3rem 6rem 3rem;
        gap: 4.5rem;
    }
}

/* === BOTONES EJECUTIVOS DE ALTA GAMA === */
.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.1rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background-color: var(--naranja-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(230, 81, 0, 0.28);
}

.btn-primary:hover {
    background-color: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.38);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--azul-primary);
    border: 1px solid var(--borde-card);
    box-shadow: 0 2px 10px rgba(10, 25, 47, 0.03);
}

.btn-secondary:hover {
    border-color: var(--azul-primary);
    background-color: var(--azul-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: #FFFFFF;
    color: var(--azul-primary);
    border: 1.5px solid var(--azul-primary);
}

.btn-outline-dark:hover {
    background-color: var(--azul-primary);
    color: #FFFFFF;
}

/* === HERO SECTION === */
.hero-section {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--sombra-elegante);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--naranja-primary);
}

@media(min-width: 768px) {
    .hero-section {
        padding: 4.5rem 4rem;
    }
}

.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-primary);
    letter-spacing: -0.03em;
}

.brand-logo span.orange {
    color: var(--naranja-primary);
}

.brand-logo span.thin {
    font-weight: 300;
    color: var(--texto-muted);
}

.badge-global {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--azul-primary);
    background: #F1F5F9;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #E2E8F0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--naranja-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(230, 81, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--azul-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

@media(min-width: 768px) {
    .hero-title {
        font-size: 3.4rem;
    }
}

.gradient-text {
    color: var(--naranja-primary);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--texto-muted);
    max-width: 900px;
    line-height: 1.8;
    margin-bottom: 2.8rem;
    text-align: justify;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media(min-width: 600px) {
    .hero-cta-group {
        flex-direction: row;
    }
}

/* === BARRA DE MÉTRICAS (TRUST BADGES) === */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media(min-width: 768px) {
    .metrics-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-item {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--sombra-elegante);
}

.metric-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--azul-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--texto-muted);
}

/* === BLOQUE NARRATIVO CON TEXTO JUSTIFICADO === */
.value-narrative-box {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 2.8rem 2.2rem;
    box-shadow: var(--sombra-elegante);
    border-left: 5px solid var(--azul-primary);
}

@media(min-width: 768px) {
    .value-narrative-box {
        padding: 3.2rem 3.5rem;
    }
}

.narrative-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--azul-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.narrative-content p {
    font-size: 1rem;
    color: var(--texto-muted);
    line-height: 1.85;
    text-align: justify;
}

/* === SECCIÓN DE CAPACIDADES (SISTEMA DE TABS CORREGIDO) === */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-header {
    text-align: left;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--naranja-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--azul-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 0.98rem;
    color: var(--texto-muted);
    margin-top: 0.4rem;
}

/* Pista visual para móviles */
.tabs-hint-mobile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--naranja-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: bounceX 1.5s infinite;
}

@keyframes bounceX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@media(min-width: 900px) {
    .tabs-hint-mobile {
        display: none;
    }
}

/* Navegación por Pestañas (Corregida para mostrar texto completo) */
.tabs-navigation {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    width: 100%;
    scrollbar-width: thin;
}

.tabs-navigation::-webkit-scrollbar {
    height: 4px;
}

.tabs-navigation::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.tab-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    color: var(--texto-muted);
    cursor: pointer;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    flex-shrink: 0;     /* Impide que los botones se aplasten */
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    border-color: var(--naranja-primary);
    color: var(--naranja-primary);
}

.tab-btn.active {
    background: var(--azul-primary);
    color: #FFFFFF;
    border-color: var(--azul-primary);
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.15);
}

/* Contenedor y Paneles de Tabs */
.tabs-content-container {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--sombra-elegante);
}

@media(min-width: 768px) {
    .tabs-content-container {
        padding: 3.5rem;
    }
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media(min-width: 900px) {
    .pane-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.pane-info {
    flex: 1;
}

.pane-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--naranja-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.pane-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    color: var(--azul-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pane-info p {
    font-size: 0.98rem;
    color: var(--texto-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.pane-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pane-info li {
    font-size: 0.9rem;
    color: var(--texto-dark);
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.6;
    text-align: justify;
}

.pane-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--naranja-primary);
    font-weight: bold;
    font-size: 1.2rem;
    top: -0.1rem;
}

.pane-action {
    flex-shrink: 0;
}

/* === SECCIÓN DE CASOS DE ÉXITO === */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--sombra-elegante);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: rgba(230, 81, 0, 0.3);
    transform: translateY(-3px);
}

.case-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--naranja-primary);
    background: var(--naranja-soft);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    width: fit-content;
}

.case-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--azul-primary);
    font-weight: 600;
}

.case-card p {
    font-size: 0.88rem;
    color: var(--texto-muted);
    line-height: 1.65;
    text-align: justify;
}

/* === SECCIÓN CERTIFICACIONES === */
.cert-box {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--sombra-elegante);
}

@media(min-width: 768px) {
    .cert-box {
        padding: 3.5rem 3.5rem;
    }
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media(min-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1100px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: rgba(230, 81, 0, 0.25);
    transform: translateY(-2px);
    background: #FFFFFF;
}

.cert-badge-icon {
    font-size: 1.6rem;
    background: #FFFFFF;
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.cert-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--azul-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.cert-item p {
    font-size: 0.85rem;
    color: var(--texto-muted);
    line-height: 1.6;
    text-align: justify;
}

/* === CAPACIDADES CORE (CHIPS) === */
.capabilities-box {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 2.8rem 2.2rem;
    box-shadow: var(--sombra-elegante);
}

@media(min-width: 768px) {
    .capabilities-box {
        padding: 3.2rem 3.5rem;
    }
}

.capabilities-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--naranja-primary);
    margin-bottom: 1.5rem;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.chip {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--azul-primary);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: var(--naranja-primary);
    color: var(--naranja-primary);
    background: #FFFFFF;
    transform: translateY(-1px);
}

/* === FOOTER === */
.footer-section {
    background: var(--card-bg);
    border: 1px solid var(--borde-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--sombra-elegante);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    text-align: center;
}

@media(min-width: 768px) {
    .footer-section {
        flex-direction: row;
        justify-content: space-between;
        padding: 2.5rem 3.5rem;
        text-align: left;
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--azul-primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--texto-muted);
}

.footer-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* === MODAL DE ESCALAS DE INVERSIÓN === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #FFFFFF;
    border: 1px solid var(--borde-card);
    border-top: 5px solid var(--naranja-primary);
    border-radius: 20px;
    max-width: 750px;
    width: 100%;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(10, 25, 47, 0.3);
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 1.8rem;
    color: var(--texto-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--azul-primary);
}

.modal-header-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--azul-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.modal-header-content p {
    font-size: 0.95rem;
    color: var(--texto-muted);
    line-height: 1.6;
}

.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tier-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.25s ease;
}

.tier-card:hover {
    border-color: rgba(230, 81, 0, 0.35);
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.04);
}

@media(min-width: 600px) {
    .tier-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
}

.tier-info {
    flex: 1;
}

.tier-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--azul-primary);
    margin-bottom: 0.3rem;
}

.tier-info p {
    font-size: 0.88rem;
    color: var(--texto-muted);
    line-height: 1.65;
    text-align: justify;
}

.tier-pricing {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--naranja-primary);
    font-size: 1.1rem;
    white-space: nowrap;
    background: var(--naranja-soft);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(230, 81, 0, 0.15);
    text-align: center;
}

.modal-footer-cta {
    margin-top: 0.5rem;
}

/* === OCULTAR SCROLLBAR Y CONFIGURAR BURBUJA FLOTANTE === */
html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.scroll-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: var(--naranja-primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.4);
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.scroll-bubble:hover {
    background-color: var(--naranja-hover);
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(230, 81, 0, 0.5);
}

.scroll-bubble.floating {
    animation: floatBubble 3s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.scroll-bubble.up .bubble-arrow {
    transform: rotate(180deg);
}

.bubble-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
}
/* === BLOQUEO TOTAL DE SELECCIÓN DE TEXTO DEFINITIVO === */
*, *::before, *::after {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}
/* Nota: Eliminamos el bloqueo global de texto de la etiqueta '*' para evitar que afectara los textos de los botones y pestañas. */