/* --- Variables y Reset --- */
:root {
    --primary-color: #007bff; /* Azul profesional */
    --secondary-color: #28a745; /* Verde para CTA secundario */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Desplazamiento suave */
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Clases de Utilidad --- */
/* 1. Contenedor Flexible */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%; /* Uso de porcentajes para mejor ajuste en móviles */
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1e7e34;
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header --- */
.header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* 2. Hero Section Adaptable */
.hero {
    padding: 120px 0 60px;
    text-align: center; /* Centrado por defecto para móviles */
}

.hero-content {
    display: flex;
    flex-direction: column; /* Columna por defecto (móvil) */
    align-items: center;
    gap: 40px;
}

.hero-text {
    padding-right: 0;
    order: 2; /* Texto abajo de la imagen en móvil para impacto visual */
}

.hero-text h1 {
    font-size: 2.2rem; /* Tamaño manejable en móvil */
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-bg);
}

.hero-price .currency, .hero-price .period {
    font-size: 1.2rem;
    font-weight: 600;
    color: #777;
    vertical-align: middle;
}

.hero-price .amount {
    color: var(--primary-color);
}

.hero-image {
    width: 100%;
    max-width: 500px;
    order: 1;
}

/* --- Sección de Beneficios --- */
.benefits {
    padding: 100px 0;
}

/* 3. Grid de Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna en móviles */
    gap: 20px;
}

.benefit-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* --- Sección de Precios/CTA --- */
.pricing {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

/* 4. Sección de Precios (El banner azul) */
.pricing-box {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.pricing-header {
    padding-right: 0;
}

.pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pricing-cta {
    flex: 1;
    text-align: right;
}

/* --- Sección de Contacto --- */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

/* 5. Formulario de Contacto */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    width: 100%;
    padding: 25px; /* Menos padding en móvil para ganar espacio */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    text-align: center;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
}
/* ------------------------------------------------------
   MEDIA QUERIES PARA PANTALLAS GRANDES (Escritorio)
   ------------------------------------------------------ */

@media (min-width: 992px) {
    .hero {
        padding: 160px 0 100px;
        text-align: left;
    }

    .hero-content {
        flex-direction: row; /* Vuelve a filas en escritorio */
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
        padding-right: 50px;
        order: 1;
    }

    .hero-image {
        flex: 1;
        order: 2;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en escritorio */
    }

    .pricing-box {
        flex-direction: row;
        text-align: left;
    }

    .contact-grid {
        flex-direction: row;
        align-items: center;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form-wrapper {
        flex: 1;
    }
}

/* Ajuste para el Botón de WhatsApp en móviles pequeños */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-price {
        font-size: 2rem;
    }
}
/* --- Animaciones de Entrada --- */

/* Clase base para elementos que se animarán */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* Clase que se añade mediante JS cuando el elemento es visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Retrasos escalonados para las tarjetas de beneficios (Efecto Cascada) */
.benefit-card:nth-child(1) { transition-delay: 0.1s; }
.benefit-card:nth-child(2) { transition-delay: 0.3s; }
.benefit-card:nth-child(3) { transition-delay: 0.5s; }

/* Animación especial para la imagen del Hero (deslizamiento lateral) */
.hero-image.reveal {
    transform: translateX(50px);
}
.hero-image.reveal.active {
    transform: translateX(0);
}