/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #0052cc; /* Azul vibrante de Koral */
    --secondary-color: #0a2540; /* Azul oscuro de Koral */
    --light-gray-color: #f7f9fc;
    --text-color: #333;
    --white-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-gray-color);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.bg-dark h2, .bg-dark p {
    color: var(--white-color);
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

/* --- Header y Logo --- */
.header {
    background-color: var(--white-color);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    height: 80px;
}

/* --- Sección Hero --- */
.hero {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0041a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #cccccc;
}


/* --- Secciones de Contenido --- */
.feature-box {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.benefit-list {
    list-style: none;
    max-width: 800px;
    margin: 30px auto 0 auto;
    font-size: 1.1rem;
}

.benefit-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* --- Tabla de Precios --- */
.pricing-table {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pricing-plan {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 320px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-plan:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pricing-plan.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-plan h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.pricing-plan .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-plan .period {
    font-size: 1rem;
    color: #777;
}

.pricing-plan ul {
    list-style: none;
    margin: 20px 0;
}
.pricing-plan ul li {
    padding: 8px 0;
}

.payment-terms {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #555;
}

/* --- Sección Para Quién Es --- */
.text-center {
    text-align: center;
}

.large-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Formulario de Contacto --- */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    font-weight: bold;
    color: var(--primary-color);
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* --- Footer --- */
.footer {
    background-color: #f4f4f4;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}


/* --- Responsividad --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .pricing-table {
        flex-direction: column;
    }

    .pricing-plan {
        width: 100%;
        max-width: 350px;
    }
}

/* =========================================
   NUEVOS ESTILOS: INTERACCIÓN Y MODALES
   ========================================= */

/* Hacer que las tarjetas parezcan botones */
.vertical-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.vertical-btn:hover {
    border-color: var(--primary-color);
    background-color: #eef4ff; /* Fondo azul muy claro */
    transform: translateY(-5px);
}

/* Estilos del Modal (Ventana Emergente) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 1000; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto borroso */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* Centrado vertical/horizontal */
    padding: 40px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para las viñetas dentro del modal */
.modal-list {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
    list-style-type: disc; /* Esto hace que salgan los puntos */
}

/* Asegura que las listas dentro del modal tengan viñetas */
.lista-modal {
    text-align: left !important;
    margin-top: 15px !important;
    padding-left: 25px !important;
}

.lista-modal li {
    list-style-type: disc !important; /* Fuerza el punto negro */
    margin-bottom: 8px;
    display: list-item !important; /* Asegura que se comporte como lista */
    color: #333;
}

.modal-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

#modal-body p {
    text-align: left;
    font-weight: 600;
}

/* Animaciones */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}