/* ============================================= */
/* == style.css para Web Nativa 24            == */
/* == VERSIÓN DEFINITIVA Y CORREGIDA          == */
/* ============================================= */

:root {
    --primary-color: #007BFF;
    --dark-bg-color: #212529;
    --light-bg-color: #F8F9FA;
    --text-dark: #212529;
    --text-light: #fff;
    --border-color: #DEE2E6;
}

/* --- ESTILOS GENERALES Y RESETEO --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    padding-top: 71px; /* Espacio para el header fijo */
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #6C757D;
}

h1, h2, h3 {
    overflow-wrap: break-word;
}

h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80vh;
    color: var(--text-light);
    background-color: #000;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text-light);
}

.hero p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all .3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.btn--secondary {
    background-color: transparent;
    border-color: #6C757D;
    color: #6C757D;
}
.btn--secondary:hover {
    background-color: #6C757D;
    color: #fff;
}

/* --- GRIDS DE CARACTERÍSTICAS Y PLANES --- */
.features-grid, .pricing-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.pricing-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.card, .pricing-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.card__icon-wrapper {
    margin-bottom: 20px;
    display: inline-block;
    background-color: #E9ECEF;
    border-radius: 50%;
    padding: 15px;
}
.card__icon {
    width: 40px;
    height: 40px;
}
.card__title, .pricing-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

/* --- PROCESO (SOLUCIÓN CON GRID) --- */
.process-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 20px;
    margin-top: 40px;
}
.process-step {
    text-align: center;
}
.process-step span {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    margin: 0 auto 15px;
}
.process-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 35px;
}

/* --- PLANES --- */
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.pricing-card li {
    margin-bottom: 10px;
}
.pricing-card--popular {
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.05);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}
.pricing-desc {
    min-height: 60px;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--dark-bg-color);
    color: var(--text-light);
}
.cta-section__title {
    color: var(--text-light);
}
.cta-section__text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form-wrapper {
    max-width: 700px;
    margin: 30px auto 0;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-form {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}
.form-group {
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.form-group--full-width {
    grid-column: 1 / -1;
}
.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    min-width: 200px;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-bg-color);
    color: #ADB5BD;
    padding: 40px 0;
    text-align: center;
}
.footer-links a {
    color: #ADB5BD;
    margin: 0 15px;
}
.footer p {
    margin-top: 20px;
}


/* --- RESPONSIVE DESIGN (MÓVIL Y TABLET) --- */
@media (max-width: 991px) {
    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav.active ul {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
     .pricing-card--popular {
        transform: scale(1);
    }
    .process-flow {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 10px auto;
    }
}

@media (max-width: 767px) {
    body { padding-top: 65px; }
    .header { padding: 10px 0; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
}