/* Variables de Estilo Institucionales */
:root {
    --primary-blue: #187bcd;
    --dark-navy: #103a71;
    --shield-green: #107c41;
    --light-bg: #f4f7fa;
    --white: #ffffff;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 30px rgba(16, 58, 113, 0.08);
    --shadow-hover: 0 15px 35px rgba(24, 123, 205, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- LOADER INICIAL DE PANTALLA COMPLETA --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #091326;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #ffffff;
    max-width: 320px;
    width: 90%;
}

.loader-cloud-anim {
    position: relative;
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-block;
}

.loader-cloud-anim .fa-arrow-up {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    font-size: 1.5rem;
    color: #ffffff;
    animation: loaderBounce 1s infinite ease-in-out;
}

@keyframes loaderBounce {
    0%, 100% { transform: translate(-50%, -10%); opacity: 0.2; }
    50% { transform: translate(-50%, -60%); opacity: 1; }
}

.loader-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 1px;
}

.loader-content p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 25px;
}

.loader-progress-track {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--shield-green));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center { text-align: center; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Tipografía */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-navy);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--shield-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.section-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-navy);
    transform: translateY(-2px);
}

.btn-download {
    background-color: var(--shield-green);
    color: var(--white);
}

.btn-download:hover {
    background-color: #0b582f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 124, 65, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Encabezado / Logo Enorme */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 95px; /* Logo enorme y dominante en el header */
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-navy);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 90px;
    background: radial-gradient(circle at top right, rgba(24, 123, 205, 0.06), transparent);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 124, 65, 0.1);
    color: var(--shield-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-navy);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
}

/* Slider del Header / Hero Visual */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 380px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    position: relative;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(24, 123, 205, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 10px;
}

/* Vista Previa App & Loader */
.dashboard-preview {
    background: #0f172a;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    color: #f8fafc;
    border: 1px solid #1e293b;
}

.preview-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }

.preview-title { font-size: 0.85rem; color: #94a3b8; }
.preview-body { padding: 20px; }

.preview-huge-logo {
    height: 110px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Cloud Loader Styles */
.cloud-loader-card {
    background: #1e293b;
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cloud-animation-box {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-icon-wrapper {
    position: relative;
    z-index: 2;
}

.cloud-base {
    font-size: 2.2rem;
    color: var(--primary-blue);
    filter: drop-shadow(0 0 8px rgba(24, 123, 205, 0.5));
}

.cloud-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-size: 1rem;
    color: #ffffff;
    animation: bounceUp 1.2s infinite ease-in-out;
}

@keyframes bounceUp {
    0%, 100% { transform: translate(-50%, -20%); opacity: 0.3; }
    50% { transform: translate(-50%, -60%); opacity: 1; }
}

.upload-info { flex: 1; }

.upload-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.upload-filename {
    color: #f8fafc;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.upload-percentage { color: var(--shield-green); font-weight: 800; }

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--shield-green));
    border-radius: 10px;
    transition: width 0.2s ease-out;
}

.upload-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
}

.upload-meta i { color: var(--primary-blue); }

.preview-log {
    background: #020617;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.78rem;
}

.log-line { margin-bottom: 4px; color: #cbd5e1; }
.log-time { color: #64748b; }

/* Banner Recomendación */
.recommendation-banner {
    background: linear-gradient(135deg, var(--dark-navy), #0a254a);
    color: var(--white);
    padding: 50px 0;
}

.recommendation-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: var(--radius-md);
}

.rec-icon { font-size: 3.5rem; color: var(--primary-blue); }
.rec-text h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.rec-text p { color: #d0dce8; font-size: 1.05rem; line-height: 1.6; }

/* Grids Generales */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Acerca de */
.about-card-decorative {
    background: linear-gradient(135deg, rgba(24, 123, 205, 0.1), rgba(16, 124, 65, 0.1));
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.about-logo {
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
}

.about-features { list-style: none; margin-top: 20px; }
.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-navy);
}
.about-features i { color: var(--shield-green); }

/* Carrusel de Imágenes ¿Cómo funciona? */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mockup-window {
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #1e293b;
}

.window-bar {
    background: #1e293b;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
}

.window-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.step-screen { padding: 50px 20px; text-align: center; color: #f8fafc; }
.step-big-icon { font-size: 3.5rem; margin-bottom: 15px; }
.step-screen h4 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
.step-screen p { color: #94a3b8; font-size: 0.9rem; }

.slide-num { font-size: 0.85rem; font-weight: 800; color: var(--primary-blue); text-transform: uppercase; letter-spacing: 1px; }
.slide-info h3 { font-size: 1.8rem; margin: 10px 0 15px; }
.slide-info p { color: var(--text-muted); font-size: 1.05rem; }

.carousel-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-navy);
    box-shadow: var(--shadow-soft);
    position: absolute;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover { background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot-nav { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: var(--transition); }
.dot-nav.active { background: var(--primary-blue); width: 28px; border-radius: 10px; }

/* Selector Mensual / Anual */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.toggle-label { font-weight: 700; color: var(--text-muted); font-size: 1rem; }
.toggle-label.active { color: var(--dark-navy); }

.discount-tag {
    background: rgba(16, 124, 65, 0.15);
    color: var(--shield-green);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 5px;
}

.switch { position: relative; display: inline-block; width: 54px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s;
}

.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s;
}

input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Tarjetas de Precios */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    width: 380px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pricing-card.featured { border: 2px solid var(--primary-blue); box-shadow: var(--shadow-soft); }

.popular-ribbon {
    position: absolute; top: -14px; right: 30px;
    background: var(--primary-blue); color: var(--white);
    padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}

.plan-badge { font-size: 0.85rem; color: var(--primary-blue); font-weight: 700; }
.plan-name { font-size: 1.6rem; margin: 5px 0 10px; }
.plan-desc { font-size: 0.9rem; color: var(--text-muted); min-height: 40px; }

.plan-price { margin: 25px 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price .currency { font-size: 1.5rem; font-weight: 700; color: var(--dark-navy); }
.plan-price .amount { font-size: 3rem; font-weight: 800; color: var(--shield-green); transition: var(--transition); }
.plan-price .period { font-size: 0.9rem; color: var(--text-muted); }

.plan-features { list-style: none; margin-bottom: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.plan-features li { padding: 8px 0; font-size: 0.95rem; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars { color: #f59e0b; margin-bottom: 15px; }
.testimonial-text { font-style: italic; color: #475569; font-size: 0.98rem; margin-bottom: 25px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }

.author-avatar {
    width: 48px; height: 48px; background: rgba(24, 123, 205, 0.1);
    color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.testimonial-author h4 { font-size: 1rem; color: var(--dark-navy); }
.testimonial-author p { font-size: 0.82rem; color: var(--text-muted); }

/* Contacto */
.contact-methods { margin-top: 30px; }
.method-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }

.method-icon {
    width: 50px; height: 50px; background: rgba(24, 123, 205, 0.1);
    color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.contact-form-card { background: var(--white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.contact-form h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.95rem; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-blue); }

/* Footer */
.footer { background: var(--dark-navy); color: var(--white); padding: 50px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { height: 90px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background-color: #25d366; color: white; border-radius: 50px; text-align: center; font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Responsivo */
@media (max-width: 992px) {
    .hero-container, .grid-2, .slide-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-title { font-size: 2.3rem; }
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--white); padding: 20px; box-shadow: var(--shadow-soft); display: none;
    }
    .nav-menu.active { display: block; }
    .nav-list { flex-direction: column; gap: 15px; }
    .pricing-card { width: 100%; }
    .recommendation-content { flex-direction: column; text-align: center; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}