/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --orange: #f39200;
    --orange-dark: #d67e00;
    --blue: #325aa6;
    --blue-dark: #274785;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Estilo Original Limpio */
.navbar {
    position: fixed;
    top: 40px; /* Espacio para el top banner */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
    transform: translateY(0);
}

/* Cuando el banner se cierra, el navbar sube */
body:not(:has(.top-ad-banner)) .navbar,
.top-ad-banner[style*="display: none"] ~ * .navbar {
    top: 0;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 65px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Ocultar texto cuando hay logo */
.logo img + span {
    display: none;
}

.logo i {
    font-size: 2rem;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #007bff;
}

/* Dropdown Menu Styles - Limpio */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #495057 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #007bff !important;
}

.btn-login, .btn-register {
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login {
    color: #007bff;
    border: 2px solid #007bff;
    background: transparent;
}

.btn-login:hover {
    background: #007bff;
    color: white;
}

.btn-register {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.btn-register:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Buttons - Optimizados */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Focus States - Accesibilidad */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Ocultar outline solo para mouse, mantener para teclado */
.btn:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Animaciones Optimizadas */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Accesibilidad - Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Animación de entrada para elementos del hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-in.delay-1 {
    animation-delay: 0.2s;
}

.animate-in.delay-2 {
    animation-delay: 0.4s;
}

.animate-in.delay-3 {
    animation-delay: 0.6s;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 10px var(--white);
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* Tracking Section */
.tracking-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.tracking-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}

.tracking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tracking-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tracking-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tracking-header p {
    color: var(--text-light);
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tracking-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-light);
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

.calculator {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.calculator h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
}

.calculator-form input,
.calculator-form select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

.calculator-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.rating {
    color: #fbbf24;
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    transition: var(--transition);
    color: #667eea;
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 4.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Responsive FAQ */
@media (max-width: 968px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 4rem 0;
    }
    
    .faq-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
        top: 1rem;
        left: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1rem 1rem 3.5rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem 3.5rem;
        font-size: 0.9rem;
    }
}

/* Contact */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #f39200 !important;
    color: white !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none !important;
}

.social-links a:hover {
    background: #325aa6 !important;
    color: var(--white);
    transform: translateY(-3px);
    text-decoration: none !important;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Validación de formulario */
.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contact-form input.input-error:focus,
.contact-form textarea.input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Alertas del formulario de contacto */
.contact-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.contact-alert span {
    flex: 1;
}

.contact-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.contact-alert-success i {
    color: #28a745;
}

.contact-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-alert-error i {
    color: #dc3545;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
    filter: brightness(1.2);
}

/* Responsive - Navbar Original Limpio */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        list-style: none;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a:hover {
        color: #007bff;
    }
    
    /* Dropdown responsive - Limpio */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-left: 20px !important;
        border: none !important;
        border-left: 3px solid #007bff !important;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    .dropdown-toggle i {
        display: none;
    }

    /* Prevent body scroll when nav is open */
    body.nav-open {
        overflow: hidden;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-number {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
    }

    .pricing-grid,
    .services-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Sección Cómo Funciona - Mejorada
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: #f39200;
    opacity: 1;
    line-height: 1;
    position: relative;
    z-index: 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #325aa6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(50, 90, 166, 0.3);
    position: relative;
    z-index: 1;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(50, 90, 166, 0.5);
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.step-content p {
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.step-features i {
    color: #48bb78;
    font-size: 12px;
}

.step-arrow {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #667eea;
    opacity: 0.3;
    display: none;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    background: white;
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f7fafc;
}

.cta-box .btn i {
    margin-right: 10px;
}

/* Responsive */
@media (min-width: 992px) {
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .step-arrow {
        display: block;
    }
    
    .step-card:last-child .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }
    
    .steps-container {
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .step-number {
        font-size: 36px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .step-content h3 {
        font-size: 20px;
    }
    
    .cta-box {
        padding: 40px 30px;
    }
    
    .cta-box h3 {
        font-size: 24px;
    }
    
    .cta-box p {
        font-size: 16px;
    }
}


/* ============================================
   Sección de Tarifas - Rediseñada
   ============================================ */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-hero {
    margin-top: 60px;
}

/* Grid de Rutas */
.pricing-routes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* Sección de Calculadora */
.pricing-calculator-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pricing-calculator-section .pricing-calculator-card {
    max-width: 500px;
    width: 100%;
}

/* Tarjeta Principal de Precio */
.pricing-main-card {
    background: #f39200;
    border-radius: 30px;
    padding: 50px;
    color: white;
    box-shadow: 0 20px 60px rgba(243, 146, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.pricing-main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #325aa6;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 30px;
    color: white;
}

.pricing-badge i {
    color: white;
}

.pricing-price-section {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

.pricing-price-big {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.pricing-price-big .currency {
    font-size: 36px;
    font-weight: 700;
    margin-top: 10px;
}

.pricing-price-big .amount {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
}

.pricing-price-big .period {
    font-size: 24px;
    font-weight: 600;
    align-self: flex-end;
    margin-bottom: 15px;
    opacity: 0.9;
}

.pricing-tagline {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
    color: white !important;
}

/* Grid de Beneficios */
.pricing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #325aa6 !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: white !important;
}

.benefit-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white !important;
}

.benefit-content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: white !important;
}

.pricing-cta {
    text-align: center;
}

.pricing-cta .btn {
    width: 100%;
    max-width: 400px;
    background: #325aa6 !important;
    color: white !important;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    margin-bottom: 15px;
}

.pricing-cta .btn i {
    color: white !important;
}

.pricing-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pricing-note {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Estilos específicos para la tarjeta de España */
.pricing-spain-card {
    background: linear-gradient(135deg, #c41e3a, #aa1529) !important;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.4) !important;
}

.pricing-badge-spain {
    background: #ffd700 !important;
    color: #c41e3a !important;
}

.pricing-badge-spain i {
    color: #c41e3a !important;
}

/* Estilos para las rutas */
.route-header {
    text-align: center;
    margin-bottom: 20px;
}

.route-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.flag-icon {
    width: 40px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.route-arrow {
    font-size: 20px;
    color: white;
    opacity: 0.8;
}

.route-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

/* Tarjeta de Calculadora */
.pricing-calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.pricing-calculator-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-calculator-card h3 i {
    color: #667eea;
}

.calculator-subtitle {
    color: #718096;
    margin-bottom: 30px;
}

.calc-input-inline {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.calc-input-inline label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 8px;
}

.calc-input-inline .input-with-unit {
    width: 100%;
}

/* Botón de calcular - diseño final pulido */
.calculator-form .btn {
    padding: 0.7rem 2.5rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    height: 48px !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.calculator-form .btn i {
    color: white !important;
}

/* Asegurar que todos los iconos en botones primarios sean blancos */
.btn-primary i,
.btn-primary .fas,
.btn-primary .fa {
    color: white !important;
}

/* Específicamente para el botón de calcular */
.calculator-form .btn i.fa-calculator {
    color: white !important;
}

/* Específicamente para el botón de consultar estado */
.tracking-form .btn-primary i.fa-search {
    color: white !important;
}

.calculator-form .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.calculator-form .btn:active {
    transform: translateY(0) !important;
}

.calc-inputs-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-input-group {
    margin-bottom: 0;
}

.calc-input-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 14px;
}

.calc-input-group label i {
    color: #667eea;
    margin-right: 5px;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #718096;
}

.calculator-result {
    margin-top: 25px;
    display: none;
}

.calc-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 25px;
}

.calc-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    color: #991b1b;
    text-align: center;
    font-weight: 600;
}

.calc-breakdown {
    margin-bottom: 15px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #166534;
    font-size: 15px;
}

.calc-divider {
    height: 2px;
    background: #86efac;
    margin: 10px 0;
}

.calc-total {
    font-size: 20px;
    font-weight: 700;
    color: #15803d;
}

.calc-note {
    font-size: 13px;
    color: #166534;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-note i {
    color: #22c55e;
}

/* Ejemplos de Costos */
.calculator-note {
    margin-top: 20px;
    padding: 15px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.calculator-note i {
    color: #3b82f6;
    font-size: 18px;
    margin-top: 2px;
}

.calculator-note p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.calc-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.calc-exempt {
    background: #f0fdf4;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.exempt-badge {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.calc-note-success {
    font-size: 13px;
    color: #166534;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
}

.calc-note-success i {
    color: #22c55e;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-routes-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .pricing-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-calculator-section {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 60px 0;
    }
    
    .pricing-main-card {
        padding: 30px 20px;
    }
    
    .pricing-price-big .amount {
        font-size: 64px;
    }
    
    .pricing-price-big .currency {
        font-size: 24px;
    }
    
    .pricing-calculator-card {
        padding: 30px 20px;
    }
    
    .calc-input-inline {
        margin-bottom: 15px;
    }
}


/* ============================================
   CARRUSEL DE TIENDAS - OPTIMIZADO
   ============================================ */
.stores-carousel-section {
    padding: 80px 0;
    background: #325aa6;
    overflow: hidden;
}

.carousel-wrapper {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

/* Gradientes laterales para efecto fade */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(50, 90, 166, 1), rgba(50, 90, 166, 0));
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(50, 90, 166, 1), rgba(50, 90, 166, 0));
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

/* Pausar animación al hacer hover */
.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.store-logo {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.store-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.store-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(80%) brightness(0.9);
    transition: all 0.3s ease;
}

.store-logo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .stores-carousel-section {
        padding: 60px 0;
    }
    
    .store-logo {
        width: 130px;
        height: 80px;
        padding: 15px;
    }
    
    .carousel-track {
        gap: 20px;
        animation-duration: 30s;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .store-logo {
        width: 110px;
        height: 70px;
        padding: 12px;
    }
    
    .carousel-track {
        gap: 15px;
        animation-duration: 25s;
    }
    
    .carousel-wrapper::before,
    .carousel-wrapper::after {
        width: 30px;
    }
}


/* ============================================
   LIBRO DE RECLAMACIONES - FOOTER
   ============================================ */
.footer-complaints {
    margin-top: 20px;
}

.btn-complaints {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: #325aa6 !important;
    color: white !important;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 90, 166, 0.3);
}

.btn-complaints:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 90, 166, 0.5);
    background: #2a4d8f !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-complaints i {
    font-size: 1.2rem;
}

/* ========================================
   FIX ICONOS BLANCOS - MÁXIMA PRIORIDAD
   ======================================== */

/* Forzar iconos blancos en recuadros de contacto */
.contact .contact-item i,
.contact-item i.fas,
.contact-item i.fa,
section.contact .contact-item i {
    color: white !important;
    background: #f39200 !important;
}

/* Forzar iconos blancos en botones primarios */
.btn-primary i,
.btn-primary .fas,
.btn-primary .fa,
button.btn-primary i,
.btn.btn-primary i {
    color: white !important;
}

/* Forzar icono blanco en botón calcular */
.calculator-form .btn i,
.calculator-form .btn .fas,
.calculator-form .btn .fa-calculator,
.pricing .calculator-form .btn i {
    color: white !important;
}

/* Forzar icono blanco en botón consultar estado */
.tracking-form .btn i,
.tracking-form .btn .fas,
.tracking-form .btn .fa-search,
.tracking-section .tracking-form .btn i {
    color: white !important;
}

/* Regla universal para todos los iconos Font Awesome en botones primarios */
.btn-primary i[class*="fa-"],
.btn-primary .fas[class*="fa-"],
button[class*="btn-primary"] i[class*="fa-"] {
    color: white !important;
}