/* Generales */
:root {
    --primary-color: #0056b3; /* Azul para botones principales */
    --secondary-color: #007bff; /* Azul ligeramente más claro para links */
    --accent-color: #28a745; /* Verde para acentos, por ejemplo, prueba gratuita */
    --dark-color: #343a40; /* Texto oscuro, fondo de header/footer */
    --light-color: #f8f9fa; /* Fondo claro */
    --text-color: #495057; /* Texto general */
    --border-color: #e9ecef; /* Bordes sutiles */
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* estilos de blog  */
.blog{
    background: var(--light-color);
    text-align: center;
}

button{
    text-decoration: none;
    color: var(--light-color);
    transition: color 0.3s ease;
    border:none;
    background-color: var(--accent-color);
    padding: 10px 20px
}

button:hover {
    color: var(--primary-color);
    background-color: #218838;
}

a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);

}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}


.btn-primary:hover {
    background-color: #218838; /* un poco más oscuro */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Header (Minimalista para Landing Page) */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Oculta la navegación en desktop para una landing page pura */
.header .nav {
    display: none; /* Elimina la navegación principal */
}

/* Contenedor para los botones del header */
.header-buttons {
    display: flex;
    gap: 15px; /* Espacio entre los botones */
    align-items: center;
}

/* Estilos para el botón de Iniciar Sesión (discreto) */
.btn-login {
    background-color: transparent;
    color: var(--primary-color); /* Color de texto del botón de inicio de sesión */
    border: 1px solid var(--primary-color); /* Borde sutil */
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Estilos para el botón CTA principal pequeño en el header */
.header-btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    /* Aseguramos que el botón de "Prueba Gratuita" se mantenga con el color de acento */
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.header-btn-small:hover {
    background-color: #218838;
}


/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.85)); /* Replace with actual background image */
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-ctas .btn {
    margin-right: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 110%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* Common Section Styles */
section {
    padding: 80px 0;
}

section:nth-of-type(even) { /* Apply subtle background to alternate sections */
    background: #fdfdfd;
}

section h2 {
    margin-bottom: 3rem;
}

/* Problem / Solution */
.problems-solution {
    background: var(--light-color);
    text-align: center;
}

.problems-solution h2 {
    color: var(--dark-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.problem-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.problem-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.problem-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

/* Features Section */
.features {
    background: #fff;
    padding-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Testimonials */
.testimonials {
    background: #fff;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 1rem;
}

.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: #ffc107; /* Estrella dorada */
    margin-bottom: 15px;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes client info to bottom */
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: auto; /* Push to bottom */
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--border-color);
}

.client-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Pricing Section */
.pricing {
    background: #fff;
    text-align: center;
}

.pricing-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.pricing-plan {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Para el badge */
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.pricing-plan.featured-plan {
    border: 3px solid var(--primary-color); /* Cambiado a primary color para destacar mejor */
    background: #e6f0fa; /* Un azul muy suave para el plan destacado */
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-plan h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pricing-plan .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.pricing-plan .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.pricing-plan ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
    padding: 0 20px;
}

.pricing-plan ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.pricing-plan ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Estilo para el icono de "no incluido" */
.pricing-plan ul li i.fa-times-circle {
    color: #dc3545; /* Rojo para indicar que no está incluido */
}

.pricing-plan .btn {
    margin-top: auto; /* Push button to bottom */
    width: 80%;
}

.pricing-info {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-info a {
    font-weight: 600;
}

/* Badge de Ahorro para el Plan Anual */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color); /* Verde para el ahorro */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer (Minimalista para Landing Page) */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.footer-col.logo-col .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-col p a{
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.footer-col h4 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Estilos del pop-up de registro */

.popup-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
}

.popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
}

.popup-container {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    top: 50% ;
    background-color: silver;
    padding: 1rem;
    height: auto;
    width: auto;
    min-width: 400px;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, transform 1s ease;
}

.popup-content{
    position: relative;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.popup-send{
    width: fit-content;
    padding: 6px 8px;
    margin: 30px auto auto auto;
    border-radius: 0.7rem;
    border: 0;
}

.popup-input{
    font-size: 1.1rem;
    border-radius: 0.2rem;
    padding-left: 0.8rem;
    border: 0;
}

/* ===== Popup de bienvenida con imagen ===== */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.welcome-popup.hidden {
    display: none;
}

.welcome-popup-content {
    position: relative;
    max-width: 600px;
    width: 90%;
}

.welcome-popup-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
}

.welcome-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 50;
}

.hidden {
    display: none !important;
}

/* ESTILO PARA BOTÓN FLOTANTE DE WHATSAPP */

.whatsapp-flotante {
    /* Clave para que se quede fijo en la pantalla */
    position: fixed;

    /* Posición: Inferior Derecha */
    bottom: 25px; /* Distancia desde el borde inferior */
    right: 25px;  /* Distancia desde el borde derecho */
    z-index: 999;

    /* Estilo del contenedor del enlace (círculo) */
    background-color: #32d851; /* El verde oficial de WhatsApp */
    border-radius: 50%; /* Lo convierte en un círculo perfecto */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;  /* Tamaño del círculo */
    height: 90px; /* Tamaño del círculo */
    transition: transform 0.3s ease; /* Transición suave al pasar el mouse */
}

.whatsapp-flotante:hover {
    /* Pequeño efecto de levantamiento al pasar el mouse */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.whatsapp-flotante img {
    /* Estilo para el ícono dentro del círculo */
    width: 100%; /* El ícono es más pequeño que el círculo */
    height: 100%;
    border-radius: 50%;
}



/* Estilos del Formulario de Contacto */

/* 1. Habilita Flexbox y define el espaciado para la fila */
.input-group-row {
    display: flex;
    gap: 20px; /* Añade espacio entre el Correo y el Teléfono */
    margin-bottom: 20px; /* Espacio para separar esta fila de la de Mensaje */
}

/* 2. Hace que cada campo dentro de la fila ocupe el mismo espacio */
.input-group-row .input-half {
    flex: 1;
    /* El flex: 1 hace que el ancho sea 50% para cada uno */
    margin-bottom: 0; /* Opcional: elimina márgenes internos si los form-group los tienen */
}

/* 3. Ajuste para que el botón ENVIAR se alinee a la derecha */
.submit-button-container {
    display: flex;
    justify-content: flex-end; /* Alinea el contenido (el botón) al final del contenedor */
    align-items: center; /* Centra verticalmente si es necesario */
}

.contact-section {
    padding: 80px 0;
    text-align: center;
    background: #f8f9fa; /* Color de fondo ligero */
}

.contact-section .subtitle {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px; /* Limita el ancho del formulario */
    margin: 0 auto; /* Centra el formulario en la sección */
    padding: 30px;

    border-radius: 0;
    box-shadow: none; /* Asumiendo que tienes una variable de sombra */
    text-align: left; /* Alinea el texto de los campos a la izquierda */
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group .required {
    color: red; /* Estilo para el asterisco de obligatorio */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial para que el padding no desborde el 100% */
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Centrar el reCAPTCHA si usa la versión v2 Checkbox
.recaptcha-container {
    display: flex;
    justify-content: center;
}*/

.recaptcha-container {
    /* 1. Asegura que el contenedor es un bloque normal */
    display: block;

    /* 2. Anula cualquier centrado que pueda heredar de un padre (como el body o form) */
    text-align: left !important;

    /* 3. Opcional: Esto fuerza el widget a alinearse al margen izquierdo */
    margin: 0 auto 0 0;

    /* Nota: El g-recaptcha no ocupa todo el ancho, por eso este método funciona. */
}



/* Responsividad */
@media (max-width: 992px) {
    .header .header-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }

    .header .header-btn-small,
    .header .btn-login {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-ctas .btn {
        margin: 10px 5px;
    }

    .hero-image {
        margin-top: 40px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .problem-grid,
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plan.featured-plan {
        transform: scale(1);
        box-shadow: var(--shadow-light);
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-col {
        min-width: unset;
        max-width: 300px;
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-col ul li {
        margin-bottom: 5px;
    }
}




@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }


    #popup-content {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        width: 300px;
        position: relative;
        text-align: center;
    }

    #close-popup-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        cursor: pointer;
    }

    .btn-link {
        background: none;
        border: none;
        padding: 0;
        color: #007bff;
        text-align: left;
        font: inherit;
        cursor: pointer;
        text-decoration: none;
    }

    /* Pseudo-clase para el efecto al pasar el cursor */
    .btn-link:hover {
        text-decoration: underline;
    }

    .btn-link:active {
        color: #0056b3;
    }
}


