/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #0d6efd;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white-color: #fff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark-color);
}

p {
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

/* --- Botones --- */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: #e9ecef;
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1.1em;
}
.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo a {
    display: flex;
    align-items: center;
}
.main-header .logo img {
    height: 35px; /* Reducido para un aspecto más refinado */
    width: auto;
}
.main-nav {
    display: flex;
    gap: 20px;
}
.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.main-nav a:hover {
    background-color: var(--light-color);
}
.header-buttons {
    display: flex;
    gap: 10px;
}
.menu-toggle {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
}
.mobile-nav-container.active {
    visibility: visible;
}
.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-container.active .nav-overlay {
    opacity: 1;
}
.mobile-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-container.active .mobile-nav {
    transform: translateX(0);
}
.mobile-nav .close-btn {
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
}
.mobile-nav a {
    color: var(--dark-color);
    font-size: 1.2em;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    background-color: #004884;
    color: var(--white-color);
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 3.2em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white-color);
}
.hero-content p {
    font-size: 1.2em;
    max-width: 500px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}
.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}
.hero-features li {
    margin-bottom: 10px;
    font-weight: 500;
}
.hero-features i {
    color: #33ffad; /* Un color brillante para el check */
    margin-right: 10px;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-image .img-top {
   display: none; /* Simplificando para evitar problemas de layout */
}

/* --- Stats Section --- */
.stats {
    padding: 40px 0;
    background-color: var(--light-color);
}
.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
}
.stat-label {
    color: var(--text-light);
}

/* --- Form Section --- */
.form-section {
    padding: 80px 0;
    background-color: var(--white-color);
    text-align: center;
}
.form-section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.form-section p {
    margin-bottom: 40px;
}
#storeForm {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.input-group {
    display: flex;
}
#email {
    width: 100%;
    box-sizing: border-box;
}
.input-group input, #email {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}
.input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.input-group-addon {
    padding: 15px;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}
.form-section button {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
}
.message-box {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 500;
}
.message-box.success {
    background-color: #d1e7dd;
    color: #0f5132;
}
.message-box.error {
    background-color: #f8d7da;
    color: #842029;
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white-color);
}
.how-it-works h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}
.steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}
.step-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Feature Detailed Section --- */
.feature-detailed {
    padding: 80px 0;
}
.feature-detailed .container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.feature-detailed.feature-reversed .container {
    flex-direction: row-reverse;
}
.feature-detailed-content {
    flex: 1;
}
.feature-detailed-content h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}
.feature-detailed-image {
    flex: 1;
}
.feature-detailed-image img {
    max-width: 100%;
    border-radius: 15px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-color);
}
.faq-section .container {
    max-width: 800px;
}
.faq-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}
.faq-category {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.faq-category:first-of-type {
    margin-top: 0;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.faq-question {
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 80px 0;
    background-color: var(--white-color);
}
.testimonials h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}
.testimonial-item {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.testimonial-item p {
    font-size: 1.1em;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
}
.testimonial-author h4 {
    margin: 0;
    font-size: 1.1em;
}
.testimonial-author span {
    color: var(--text-light);
    font-weight: 500;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--light-color);
}
.why-choose-us h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.reason-item {
    text-align: center;
    padding: 20px;
}
.reason-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.reason-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* --- CTA Final --- */
.cta-final {
    background-color: #2c3e50;
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.cta-final h2 {
    color: var(--white-color);
    font-size: 2.2em;
    margin-bottom: 15px;
}
.cta-final p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 40px 0;
}
.footer-links {
    margin: 15px 0;
}
.footer-links a {
    color: var(--white-color);
    margin: 0 10px;
}
.footer-info {
    font-size: 0.9em;
    color: var(--text-light);
}
.footer-info a {
    color: var(--text-light);
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .main-nav, .header-buttons {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        overflow-x: hidden;
    }
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 40px 0;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .stats {
        padding: 30px 0;
    }
    .stats .container {
        flex-direction: column;
        gap: 20px;
    }
    .stat-number {
        font-size: 2em;
    }
    .how-it-works, .feature-detailed, .faq-section, .testimonials, .why-choose-us {
        padding: 50px 0;
    }
    .how-it-works h2, .feature-detailed-content h2, .faq-section h2, .testimonials h2, .why-choose-us h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .steps {
        flex-direction: column;
        gap: 30px;
    }
    .feature-detailed .container, .feature-detailed.feature-reversed .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-links, .footer-info {
        line-height: 1.8;
    }
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}
