:root {
    --primary-color: #007BFF;
    --primary-dark: #0056b3;
    --secondary-color: #ff6600;
    --light-color: #f4f4f4;
    --dark-color: #333;
    --white-color: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Promotion Banner Styles */
#promo-banner {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 8px 20px;
    position: relative;
    width: 100%;
    z-index: 1001;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#promo-banner p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-promo-banner {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    padding: 0 5px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

#close-promo-banner:hover {
    opacity: 0.8;
}

header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky; /* Changed to sticky for better behavior with the banner */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 72px;
    transition: var(--transition);
}



.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.nav-menu a.btn-secondary:hover {
    color: var(--white-color);
}

.hero {
    min-height: calc(100vh - 80px); /* Adjust height considering the header */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaef 100%);
    padding-top: 20px;
    padding-bottom: 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text {
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    position: relative;
    text-align: center;
    max-width: 100%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.features {
    padding: 100px 0;
    background-color: var(--white-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #777;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
}

.how-it-works {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step p {
    color: #666;
}

.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white-color);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.cta .btn-secondary:hover {
    background-color: transparent;
    color: var(--white-color);
}

.testimonials {
    padding: 100px 0;
    background-color: var(--white-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
}

footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    color: var(--white-color);
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Modal para login/signup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 95%;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s ease-in-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark-color);
}

@media (min-width: 576px) {
    #knowledge-base-modal .modal,
    #help-center-modal .modal,
    #tutorials-modal .modal,
    #contact-modal .modal {
    width: 90%;
    max-width: 600px;
    }
}
@media (min-width: 992px) {
    #knowledge-base-modal .modal,
    #help-center-modal .modal,
    #tutorials-modal .modal,
    #contact-modal .modal {
    width: 80%;
    max-width: 800px;
    }
}
@media (max-width: 575px) {
    #knowledge-base-modal .modal,
    #help-center-modal .modal,
    #tutorials-modal .modal,
    #contact-modal .modal {
    width: 95%;
    }
}

/* Forms styling */
.form-container {
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus, input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.alert-message {
    padding: 12px;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
    font-size: 14px;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.password-rules {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin: 5px 0 15px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.password-wrapper .toggle-visibility {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper .toggle-visibility svg {
    width: 20px;
    height: 20px;
    fill: #666;
    transition: fill 0.2s;
}

.password-wrapper .toggle-visibility:hover svg {
    fill: #333;
}

/* Mobile menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hero {
        height: auto; /* Cambiamos la altura fija por automática */
        padding: 80px 0 50px; /* Añadimos padding para espaciar */
    }
    
    .nav-menu {
        position: fixed;
        top: 70px; /* Ajustado al alto del header */
        left: -100%;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 2.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .modal {
        padding: 25px;
    }
}

/* Estilos para modales con contenido scrollable */
.modal-scrollable .modal {
    max-height: 90vh; /* Altura máxima del modal */
    display: flex; /* Usar flexbox para el layout interno del modal */
    flex-direction: column; /* Apilar los elementos verticalmente */
}

.modal-scrollable .form-container {
    overflow-y: auto; /* Habilita el scroll vertical para el contenido */
    flex-grow: 1; /* Permite que el contenedor del formulario crezca para llenar el espacio */
    padding-right: 15px; /* Espacio para la barra de scroll para que no solape contenido */
    margin-top: 10px; /* Un pequeño margen superior */
}

/* Ajustes específicos para el logo y título en modales scrollables */
.modal-scrollable .logo-container {
    margin-bottom: 15px; /* Ajustar si es necesario */
    flex-shrink: 0; /* Evita que el logo se encoja */
}

.modal-scrollable h2 {
        margin-bottom: 15px; /* Ajustar si es necesario */
        flex-shrink: 0; /* Evita que el título se encoja */
}

/* Estilos para la sección de vídeo */
.video-promo {
    padding: 100px 0;
    background-color: var(--white-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 para el vídeo */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================== */
/* =========== Estilos para la sección "Explora tu App" ========== */
/* =============================================== */
.app-showcase {
    padding: 100px 0;
    background-color: var(--white-color);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

/* Estilo para invertir el orden de imagen y texto */
.showcase-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.showcase-item.reverse .showcase-image {
    order: 2;
}

.showcase-item.reverse .showcase-text {
    order: 1;
}

.showcase-image {
    text-align: center;
    position: relative;
}

.showcase-image img {
    max-width: 300px; /* Ancho máximo para las capturas de móvil */
    width: 100%;
    height: auto;
    border-radius: 20px; /* Bordes redondeados para simular un móvil */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #e0e0e0;
    background-color: #000;
}

.showcase-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.showcase-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* --- Responsive para la nueva sección --- */
@media (max-width: 992px) {
    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .showcase-item .showcase-image,
    .showcase-item.reverse .showcase-image {
        order: 1; /* La imagen siempre primero en móvil */
    }
    
    .showcase-item .showcase-text,
    .showcase-item.reverse .showcase-text {
        order: 2; /* El texto siempre después en móvil */
    }

    .showcase-text h3 {
        font-size: 1.8rem;
    }
}

/* =============================================== */
/* ============ New Single Pricing Section Styles ============= */
/* =============================================== */

.single-price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 10px 0 140px;
}

.single-pricing-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color); /* Borde para destacar la tarjeta */
    max-width: 550px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.single-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.single-pricing-card .price-header {
    padding: 30px 20px;
    background-color: #f9f9f9; /* Un fondo más suave para la cabecera */
}

.single-pricing-card .plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.single-pricing-card .price-tag {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.single-pricing-card .price-tag span {
    font-size: 1.1rem;
    font-weight: 400;
    margin-left: 5px;
    color: #555;
}

.single-pricing-card .promo-info {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 8px;
    border-radius: 5px;
    font-weight: 500;
    margin: 15px auto 0;
    max-width: 90%;
}

.single-pricing-card .price-body {
    padding: 30px 40px;
}

.single-pricing-card .includes-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.single-pricing-card .features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas para las características */
    gap: 15px;
}

.single-pricing-card .features-list li {
    color: #555;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.single-pricing-card .features-list i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.single-pricing-card .btn {
    width: 80%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Responsive para la nueva sección de precios --- */
@media (max-width: 576px) {
    .single-pricing-card .features-list {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
    .single-pricing-card .price-body {
        padding: 30px 25px;
    }
    .single-pricing-card .price-tag {
        font-size: 2.8rem;
    }
}
