/* General Styles */
:root {
    --primary-color: #0056b3; /* Azul más oscuro para acción */
    --secondary-color: #007bff; /* Azul brillante para resaltar */
    --accent-color: #28a745; /* Verde para éxito/oferta */
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-color: #ddd;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text-color);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: #004085; /* Un poco más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sections Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Header */
.header {
    background-color: var(--white-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 45px; /* Ajusta el tamaño del logo */
    vertical-align: middle;
}

.header .navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.header .navbar ul li {
    margin-left: 30px;
}

.header .navbar ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

.header .navbar ul li a:hover {
    color: var(--secondary-color);
}

.header .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px; /* Adjust spacing as needed */
}

.language-switcher .lang-btn {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--light-text-color);
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    text-decoration: none; /* For anchor tags */
}

.language-switcher .lang-btn:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.language-switcher .lang-btn.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('img/hero-bg.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 350px;
    animation: fadeInLeft 1s forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-text-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transform: scale(1.05); /* Ligeramente más grande */
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-item .icon-large {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--light-text-color);
    font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color); /* Fondo del CTA */
    color: var(--white-color);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: var(--accent-color); /* Botón de CTA verde */
    color: var(--white-color);
    border: none;
}

.cta-section .btn:hover {
    background-color: #218838; /* Verde más oscuro */
}


/* Pricing Section */
.pricing-toggle {
    text-align: center;
    margin-bottom: 40px;
    background-color: var(--light-bg);
    border-radius: 50px;
    display: inline-flex;
    padding: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.pricing-toggle button {
    background-color: transparent;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 50px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.pricing-toggle button.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: flex-start; /* Alinea los planes en la parte superior */
}

.pricing-plan {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    padding: 40px 30px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px; /* Asegura una altura mínima para consistencia */
}

.pricing-plan.featured-plan {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pricing-plan .plan-header {
    margin-bottom: 30px;
}

.pricing-plan h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-plan .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.pricing-plan .price sup {
    font-size: 1.5rem;
    top: -0.8em;
}

.pricing-plan .price .currency {
    font-size: 1.2rem;
    font-weight: 400;
}

.pricing-plan .price sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text-color);
    align-self: flex-end;
    margin-bottom: 5px;
}

.pricing-plan .period {
    font-size: 1.1rem;
    color: var(--light-text-color);
    display: block;
    margin-top: 5px;
}

.pricing-plan .discount-badge {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.pricing-plan .plan-features {
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1; /* Permite que la lista de características crezca */
}

.pricing-plan .plan-features ul {
    list-style: none;
    padding: 0;
}

.pricing-plan .plan-features ul li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
}

.pricing-plan .plan-features ul li i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-plan .plan-features ul li .fa-check-circle {
    color: var(--accent-color);
}

.pricing-plan .plan-features ul li .fa-times-circle {
    color: #dc3545; /* Rojo para características no incluidas */
}

.pricing-plan .plan-footer {
    margin-top: auto; /* Empuja el botón al final */
}

.pricing-plan.hidden {
    display: none;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
    overflow: hidden; /* Oculta los elementos fuera del contenedor */
}

/* Nuevo contenedor para gestionar el desbordamiento */
.testimonial-slider-container {
    position: relative;
    overflow: hidden; /* La propiedad clave, ahora en el contenedor correcto */
    width: 100%;
}

/* La "pista" que se mueve. Le quitamos el overflow y el width */
.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Añade un efecto de deslizamiento suave */
}

/* La diapositiva individual. Mi corrección anterior de quitar el margen sigue siendo necesaria */
.testimonial-item {
    min-width: 100%; /* Cada testimonio ocupa el 100% del contenedor */
    flex-shrink: 0;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 700px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.slider-nav {
    text-align: center;
    margin-top: 30px;
}

.slider-nav button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.slider-nav button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}


/* Contact Section (Simplified) */
.contact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info-simple {
    margin-top: 30px;
    margin-bottom: 30px;
}

.contact-info-simple p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar el contenido del párrafo */
}

.contact-info-simple p i {
    margin-right: 15px;
    font-size: 1.4rem;
    color: var(--secondary-color);
    width: 30px; /* Fija el ancho para alinear los iconos */
    text-align: center;
}

.contact-info-simple a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info-simple a:hover {
    color: var(--secondary-color);
}

.contact-section .social-icons {
    margin-top: 20px;
    justify-content: center; /* Centrar los iconos sociales */
}

.mt-40 { /* Utility class for margin-top */
    margin-top: 40px;
}


/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3, .footer-contact h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}


/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity var(--transition-speed);
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--light-text-color);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.popup-content .close-btn:hover {
    color: var(--primary-color);
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px; /* Altura del header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
    }

    .header .navbar.active {
        display: flex;
    }

    .header .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .header .navbar ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .header .navbar ul li a {
        display: block;
        padding: 10px 0;
    }

    .header .hamburger {
        display: block;
    }

    /* Responsive adjustments for language switcher */
    .header .container {
        flex-wrap: wrap; /* Allow wrapping */
    }
    .language-switcher {
        order: 3; /* Move it below logo and hamburger on small screens */
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 15px; /* Space from navbar */
    }
    .header .navbar.active + .language-switcher { /* If nav is active, move switcher below it */
         margin-top: 0; /* No extra margin if nav covers it */
         padding-top: 15px;
         border-top: 1px solid var(--border-color);
         width: 100%;
    }
    .language-switcher .lang-btn {
        flex-grow: 1; /* Make buttons expand */
        max-width: 100px; /* Limit max width for larger screens if still flex-growing */
    }

    .hero-section {
        text-align: center;
        min-height: unset;
        padding: 80px 0;
    }

    .hero-section .container {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        min-width: unset;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-plan.featured-plan {
        transform: scale(1); /* No scale up on smaller screens */
    }

    .pricing-plan {
        margin: 0 auto;
        max-width: 450px;
    }

    .contact-section .container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-simple {
        width: 100%;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        min-width: unset;
        width: 100%;
    }
    .footer-links ul {
        padding-left: 0;
    }
    .contact-info-simple p {
        flex-direction: column; /* Apila el icono y el texto */
        text-align: center;
    }
    .contact-info-simple p i {
        margin-right: 0;
        margin-bottom: 5px; /* Espacio entre icono y texto */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
    .pricing-plan {
        padding: 30px 20px;
    }
    .pricing-plan .price {
        font-size: 3rem;
    }
    .pricing-plan .price sup {
        font-size: 1.2rem;
    }
    .pricing-plan .price .currency {
        font-size: 1rem;
    }
    .pricing-plan .price sub {
        font-size: 0.9rem;
    }
}