/* ============================================
   EMPIEZA DE CERO - LANDING PAGE STYLES
   ============================================ */

/* ============================================
   SISTEMA TIPOGRÁFICO UNIFICADO
   ============================================ */
/*
   ESCALA TIPOGRÁFICA (ratio 1.25 - Major Third)
   -----------------------------------------------
   - Display (H1 Hero):    38px / 2.375rem
   - H2 (Títulos sección): 35px móvil / 48px desktop
   - H3 (Subtítulos):      20px / 1.25rem  
   - H4 (Cards):           18px / 1.125rem
   - Body (Párrafos):      16px / 1rem
   - Small (Auxiliar):     14px / 0.875rem
   - XS (Badges/Labels):   12px / 0.75rem
   
   PESOS:
   - Regular: 400 (body text)
   - Medium: 500 (énfasis)
   - Semibold: 600 (subtítulos)
   - Bold: 700 (títulos)
   - Extrabold: 800 (display)
*/

/* Clases de tipografía reutilizables */
.typo-display {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.typo-h2 {
    font-family: 'Inter', sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .typo-h2 {
        font-size: 48px;
    }
}

.typo-h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.typo-h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.typo-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.typo-body-lg {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.typo-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.typo-xs {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.typo-badge {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.typo-faq {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   UTILIDADES DE ESPACIADO CONSISTENTE
   ============================================ */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section-header-spacing {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header-spacing {
        margin-bottom: 4rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-animated-bg {
    background: linear-gradient(-45deg, #0A2463, #0D2E7A, #05143A, #122D6B);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-gradient {
    background-image: linear-gradient(to right, #0A2463 50%, transparent 100%);
}

/* ============================================
   HELLO BAR
   ============================================ */
.hello-bar {
    animation: helloBarSlide 0.5s ease-out;
}

@keyframes helloBarSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   TIMELINE ANIMADO
   ============================================ */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #0A2463 10%, #0A2463 90%, transparent);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(to bottom, #0A2463, #1a3a8f);
    transform: translateX(-50%);
    transition: height 0.1s ease-out;
    border-radius: 3px;
}

.timeline-step {
    position: relative;
}

.timeline-horizontal {
    position: absolute;
    top: 50%;
    height: 3px;
    background: #0A2463;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.timeline-horizontal.left {
    right: 50%;
    width: 0;
    transform-origin: right center;
}

.timeline-horizontal.right {
    left: 50%;
    width: 0;
    transform-origin: left center;
}

.timeline-horizontal.active {
    opacity: 1;
    width: calc(50% - 2rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #0A2463;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    z-index: 10;
}

.timeline-dot.active {
    transform: translate(-50%, -50%) scale(1);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0A2463;
    border-radius: 50%;
}

/* ============================================
   UTILIDADES Y EFECTOS
   ============================================ */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
}

/* ============================================
   TESTIMONIOS SLIDER
   ============================================ */
.testimoniosSwiper {
    padding: 30px 0 50px 0 !important;
    overflow: visible;
}

.testimoniosSwiper .swiper {
    padding-top: 20px;
    padding-bottom: 3px;
    overflow: visible;
}

.testimoniosSwiper .swiper-wrapper {
    overflow: visible;
}

.testimoniosSwiper .swiper-slide {
    height: auto;
    overflow: visible;
}

.testimoniosSwiper .swiper-slide > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimoniosSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0A2463;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.testimoniosSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* Botones de navegación personalizados */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    transition: all 0.2s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: #0A2463;
    color: white;
}

@media (max-width: 1024px) {
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        display: none;
    }
}

/* ============================================
   FAQ ACORDEÓN
   ============================================ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.faq-active {
    border-color: #0A2463;
    box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PASOS CONECTOR - FLECHAS ANIMADAS
   ============================================ */
/* Flecha horizontal (desktop) - se mueve hacia la derecha */
.step-arrow-horizontal {
    animation: arrowMoveRight 1.5s ease-in-out infinite;
}

@keyframes arrowMoveRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

/* Flecha vertical (móvil) - se mueve hacia abajo */
.step-arrow-vertical {
    animation: arrowMoveDown 1.5s ease-in-out infinite;
}

@keyframes arrowMoveDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

/* Efecto de pulso en el círculo */
.step-arrow-circle {
    position: relative;
}

.step-arrow-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.3);
    animation: circlePulse 2s ease-in-out infinite;
}

@keyframes circlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* ============================================
   HUBSPOT FORM CUSTOMIZATION
   ============================================ */
/* Estilos para personalizar el formulario de HubSpot */
.hs-form-frame .hs-form fieldset {
    max-width: 100% !important;
}

.hs-form-frame .hs-form .hs-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    color: #374151 !important;
    transition: all 0.3s ease !important;
}

.hs-form-frame .hs-form .hs-input:focus {
    outline: none !important;
    border-color: #0A2463 !important;
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1) !important;
}

.hs-form-frame .hs-form .hs-field-desc {
    font-size: 0.875rem !important;
    color: #6B7280 !important;
}

.hs-form-frame .hs-form label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

.hs-form-frame .hs-form .hs-button {
    width: 100% !important;
    background-color: #0A2463 !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 15px -3px rgba(10, 36, 99, 0.3) !important;
}

.hs-form-frame .hs-form .hs-button:hover {
    background-color: rgba(10, 36, 99, 0.9) !important;
    box-shadow: 0 20px 25px -5px rgba(10, 36, 99, 0.4) !important;
    transform: translateY(-2px) !important;
}

.hs-form-frame .hs-form .hs-error-msgs {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 0.5rem !important;
}

.hs-form-frame .hs-form .hs-error-msg {
    color: #EF4444 !important;
    font-size: 0.875rem !important;
}

.hs-form-frame .hs-form .hs-form-field {
    margin-bottom: 1.5rem !important;
}

/* Grid layout para campos en 2 columnas */
.hs-form-frame .hs-form .hs-form-required {
    color: #EF4444 !important;
}

/* Mensaje de éxito */
.hs-form-frame .submitted-message {
    text-align: center !important;
    padding: 3rem 0 !important;
    color: #059669 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}
