html {
    scroll-behavior: smooth;
}


/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --primary: #2563EB;
    /* Azul principal */
    --primary-dark: #1e40af;
    /* Azul oscuro para hover */
    --secondary: #0F172A;
    /* Texto oscuro */
    --text-gray: #475569;
    /* Texto secundario */
    --success: #16A34A;
    /* Verde éxito */
    --bg: #F8FAFC;
    /* Fondo gris muy claro */
    --whatsapp: #25D366;
    /* Verde WhatsApp */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--secondary);
    overflow-x: hidden;
    /* Evita scroll horizontal no deseado */
}

/* --- 1. HERO SECTION (ENCABEZADO) --- */
.hero-section {
    position: relative;
    background-image: url('https://ssl.ryca.cl/images/bg-slider.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 20px 140px 20px;
    /* Padding inferior extra para dar espacio a las tarjetas */
    text-align: center;
}

/* Capa oscura sobre la imagen para que se lea el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(15, 23, 42, 0.75);  Azul muy oscuro semitransparente */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    /* Para que el texto quede encima de la capa oscura */
    max-width: 1000px;
    margin: 0 auto;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-bottom: 80px;
}

.logo-img {
    height: 50px;
    /* Ajusta este valor si el logo se ve muy grande o chico */
    width: auto;
    /* Si tu logo tiene fondo blanco y quieres que se vea bien sobre oscuro: */
    /* filter: brightness(0) invert(1); Descomenta esto si quieres volver el logo blanco puro */
}

.login-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-text-box {
    max-width: 750px;
    margin: 0 auto;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

.scroll-down {
    display: inline-block;
    color: white;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- 2. SECCIÓN BENEFICIOS (CARDS) --- */
.features-section {
    position: relative;
    z-index: 3;
    /* Para que flote sobre el hero */
    max-width: 1000px;
    margin: -80px auto 80px auto;
    /* Margen negativo para subir las tarjetas */
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* --- 3. CALCULADORA (PRICING) --- */
.pricing-container {
    max-width: 800px;
    margin: 25px auto 100px auto;
    /* Margen inferior grande para el final de página */
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.pricing-header p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.employee-display {
    margin-bottom: 20px;
}

.employee-count {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.employee-label {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Slider Personalizado */
.slider-container {
    margin: 40px 0;
    padding: 0 20px;
}

input[type=range] {
    width: 100%;
    height: 10px;
    background: #E2E8F0;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.1);
    cursor: grabbing;
}

/* Toggle */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 36px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider-switch {
    background-color: var(--primary);
}

input:checked+.slider-switch:before {
    transform: translateX(28px);
}

.discount-badge {
    background-color: #DCFCE7;
    color: var(--success);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Resultado Caja */
.result-box {
    background: #F8FAFC;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #E2E8F0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-box.premium-active {
    border-color: var(--success);
    background: #F0FDF4;
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(22, 163, 74, 0.15);
}

.plan-title {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 500;
}

.hardware-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.hardware-free {
    background-color: #DCFCE7;
    color: var(--success);
    border: 1px solid #86EFAC;
}

.hardware-paid {
    background-color: #E2E8F0;
    color: var(--text-gray);
}

.cta-button {
    background-color: var(--whatsapp);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-button:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.legal-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 20px;
}

/* Móvil */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding-bottom: 100px;
    }

    .pricing-container {
        padding: 30px 20px;
    }

    .employee-count {
        font-size: 3rem;
    }
}



/* --- ESTILOS NUEVOS PARA NAVBAR Y SECCIONES --- */

/* 1. Nuevo Navbar con Enlaces */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Ocultar menú en móviles (simple) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* 2. Sección Dashboard (Capturas) */
.showcase-section {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.section-title {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.dashboard-item img:hover {
    transform: scale(1.02);
}

.dashboard-label {
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary);
}

/* 3. Sección Hardware (Relojes) */
.hardware-section {
    padding: 80px 20px;
    background: #F8FAFC;
}

.clock-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.clock-card:hover {
    transform: translateY(-5px);
}

.clock-img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

.clock-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--secondary);
}

.clock-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 10px 0;
}

.clock-features {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 20px;
}

.clock-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.clock-features li::before {
    content: "•";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 4. Sección Servidor (Técnica) */
.server-section {
    background: var(--secondary);
    /* Fondo oscuro */
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto 0 auto;
}

.server-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.server-item p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.server-icon {
    color: var(--primary);
    margin-bottom: 15px;
}


/* --- 4. FOOTER (PIE DE PÁGINA) --- */
.site-footer {
    background-color: var(--secondary);
    /* Fondo oscuro */
    color: #94a3b8;
    /* Texto gris claro */
    padding: 60px 20px 20px 20px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    /* Este filtro vuelve el logo blanco para que se vea bien en fondo oscuro */
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}