/* Variables y Configuración Básica */
:root {
    --primary-color: #0d6efd; /* Azul Tecnológico */
    --primary-hover: #0b5ed7;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --text-light: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* Tipografía y Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.text-white { color: var(--white) !important; }
.mt-5 { margin-top: 50px !important; }
.mt-3 { margin-top: 20px !important; }

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Menú de Navegación */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 300;
}

.logo strong {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; 
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Beneficios (Grid) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Servicios / Módulos */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 50px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text, .service-image {
    flex: 1;
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-text ul {
    list-style-position: inside;
    margin-left: 10px;
}

.service-text li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 5px solid #fff;
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.03); 
}

/* --- SECCIÓN PRECIOS --- */
.pricing-category-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.single-grid {
    grid-template-columns: minmax(320px, 450px);
    justify-content: center;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #eaeaea;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.pricing-card.highlight {
    border-top: 5px solid var(--primary-color);
}

.pricing-card.border-sifen {
    border-top: 5px solid #198754; /* Un verde para destacar SIFEN */
}

.pricing-card h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.plan-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price span {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: normal;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

.features-list li.disabled {
    color: var(--text-light);
    opacity: 0.7;
}

.sifen-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    font-size: 0.9rem;
    border-left: 4px solid #ffeeba;
}

.additional-services {
    background: #e9ecef;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    border-left: 5px solid var(--primary-color);
}

.additional-services h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.additional-services p {
    margin-bottom: 20px;
}

/* FAQ Acordeón */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--white);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background-color: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.accordion-header.active::after {
    content: '-';
}

.accordion-header:hover {
    background-color: rgba(0,0,0,0.02);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-list {
    list-style: none;
    margin-top: 20px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 30px 0;
}

/* Animaciones Fade-in (Efecto Scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active li {
        margin: 15px 0;
    }

    .hero h1 { font-size: 2.5rem; }
    
    .service-row, .service-row.reverse {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

