/**
 * ============================================================
 * main.min.css - Fácil Control
 * CSS completo y modular (versión compilada)
 * ============================================================
 */

/* ============================================================
1. IMPORTACIÓN DE MODULOS
============================================================ */

/* ============================================================
2. VARIABLES CSS (Globales)
============================================================ */
:root {
    /* Colores primarios */
    --primary: #05D3BF;
    --primary-dark: #04B8A6;
    --primary-light: #7AECE0;
    --primary-rgb: 5, 211, 191;
    
    /* Colores secundarios */
    --dark-bg: #05023A;
    --dark-bg-rgb: 5, 2, 58;
    --light-bg: #F4F7FC;
    --light-bg-rgb: 244, 247, 252;
    
    /* Texto */
    --text-dark: #1A1A2E;
    --text-gray: #4A4A5E;
    --text-light: #6B6B80;
    --text-white: #FFFFFF;
    
    /* Estado */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Bordes y sombras */
    --border-light: #E8EBF2;
    --border-medium: #D1D6E0;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 20px rgba(5, 211, 191, 0.25);
    --shadow-primary-hover: 0 12px 28px rgba(5, 211, 191, 0.35);
    
    /* Radios */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    
    /* Z-index */
    --z-header: 999;
    --z-overlay: 1000;
    --z-modal: 1050;
    --z-tooltip: 1100;
    --z-whatsapp: 998;
    --z-mobile-cta: 998;
    
    /* Container max-width */
    --container-width: 1200px;
}

/* ============================================================
3. RESET Y BASE
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: #FAFCFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ============================================================
4. UTILITY CLASSES
============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-padding {
    padding: var(--spacing-4xl) 0;
}

.section-padding-sm {
    padding: var(--spacing-3xl) 0;
}

.section-padding-lg {
    padding: var(--spacing-4xl) 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-gray);
}

.badge-soft-primary {
    background: rgba(5, 211, 191, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    display: inline-block;
    letter-spacing: 0.02em;
}

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }
.gap-4 { gap: var(--spacing-xl); }

/* ============================================================
5. BOTONES
============================================================ */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: #151515;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    box-shadow: var(--shadow-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #05023A;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-hover);
}

.btn-primary-custom:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-primary-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline-light-custom:hover {
    background: #fff;
    color: var(--dark-bg);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #151515;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-sm {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
6. CARDS Y TARJETAS
============================================================ */
.card-service {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-service .icon {
    background: rgba(5, 211, 191, 0.08);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.card-service h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-benefit {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    height: 100%;
    text-align: center;
}

.card-benefit:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-benefit i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.card-benefit h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.card-benefit p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================
7. HERO
============================================================ */
#hero {
    background: linear-gradient(135deg, #05023A 0%, #0B0A4A 50%, #05023A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    width: 100%;
}

/* Decoración de fondo */
#hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5, 211, 191, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 211, 191, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.4;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stats-item {
    color: #fff;
}

.hero-stats-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.hero-stats-item .label {
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 400;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Icon boxes en hero */
.icon-box-hero {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    transition: all var(--transition);
    height: 100%;
}

.icon-box-hero:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(5, 211, 191, 0.2);
}

.icon-box-hero i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.icon-box-hero h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.icon-box-hero p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin: 0;
}

/* ============================================================
8. SECCIÓN ACERCA / PROBLEMA
============================================================ */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.4rem;
    min-width: 28px;
    margin-top: 2px;
}

.img-acerca {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
9. TESTIMONIOS
============================================================ */
#testimonios {
    background: var(--light-bg);
}

.testimonio-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonio-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.testimonio-card .stars {
    color: #F4B400;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.testimonio-card .quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    flex: 1;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.testimonio-card .autor {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.testimonio-card .autor-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.testimonio-card .autor-info h6 {
    font-weight: 700;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonio-card .autor-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: block;
}

.testimonio-card .autor-info .empresa {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Swiper */
.testimonios-swiper {
    padding: 10px 5px 40px;
}

.testimonios-swiper .swiper-slide {
    height: auto;
}

.testimonios-swiper .swiper-pagination-bullet {
    background: #D0D5E0;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.testimonios-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

.testimonios-swiper .swiper-button-next,
.testimonios-swiper .swiper-button-prev {
    color: var(--primary);
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.testimonios-swiper .swiper-button-next:hover,
.testimonios-swiper .swiper-button-prev:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.testimonios-swiper .swiper-button-next::after,
.testimonios-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 700;
}

.testimonios-swiper .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: default;
}

/* ============================================================
10. FAQ
============================================================ */
.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.faq-question i {
    transition: transform var(--transition);
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0.8rem;
}

/* ============================================================
11. CONTACTO / FORMULARIO
============================================================ */
#contacto {
    background: var(--light-bg);
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-control-custom {
    border: 1px solid var(--border-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #fff;
    transition: all var(--transition);
    width: 100%;
    color: var(--text-dark);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 211, 191, 0.1);
    outline: none;
}

.form-control-custom.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-control-custom.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control-custom::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.form-message {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.08);
    color: #065F46;
    border: 1px solid var(--success);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: #991B1B;
    border: 1px solid var(--error);
}

.invalid-feedback {
    display: none;
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.3rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ============================================================
12. RESPONSIVE
============================================================ */

/* Tablets y dispositivos medianos */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: var(--spacing-3xl) 0;
    }
    
    #hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-image img {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .testimonios-swiper .swiper-button-next,
    .testimonios-swiper .swiper-button-prev {
        display: none;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stats-item .number {
        font-size: 1.5rem;
    }
    
    .icon-box-hero {
        padding: 1rem;
    }
    
    .icon-box-hero i {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .testimonio-card {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1rem 1.2rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    .btn-primary-custom,
    .btn-outline-light-custom {
        padding: 0.55rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .btn-primary-custom,
    .btn-outline-light-custom {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }
}

/* ============================================================
13. ANIMACIONES (Clases para JS)
============================================================ */
.animated {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animated.fade-up {
    animation-name: fadeUp;
}

.animated.fade-in {
    animation-name: fadeIn;
}

.animated.slide-in-left {
    animation-name: slideInLeft;
}

.animated.slide-in-right {
    animation-name: slideInRight;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Delay utilities */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }


/* ============================================================
FUENTE INTER (Self-hosted)
============================================================ */

/* Variable font (mejor performance) */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallbacks (si la variable falla) */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/inter-extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Fallback system fonts */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}