/* Import base styles */
@import url('styles.css');

/* LTR (Left-to-Right) Overrides for Spanish Version */

/* Container max-width override */
.container {
    max-width: 1300px !important;
}

/* Header container max-width override */
.header-container {
    max-width: 1300px !important;
}

/* Desktop Navbar - Complete Rewrite */
.desktop-navbar {
    display: block;
    background: linear-gradient(135deg, #1e3a5f 0%, #2a3d66 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.desktop-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.desktop-navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.desktop-navbar-nav {
    display: flex;
}

.desktop-navbar-left {
    grid-column: 1;
    justify-content: flex-end;
}

.desktop-navbar-right {
    grid-column: 3;
    justify-content: flex-start;
}

.desktop-navbar-logo {
    grid-column: 2;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-navbar-logo a {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
    display: block;
}

.desktop-navbar-logo a:hover {
    transform: scale(1.05);
    color: #ffffff;
}

.desktop-navbar-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.desktop-navbar-list li:last-child {
    margin-left: 0.5rem;
}

.desktop-nav-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
    text-decoration: none;
    display: block;
}

.desktop-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.desktop-nav-link:hover::after {
    width: 100%;
}

.desktop-nav-link.active {
    color: #ffffff;
}

.desktop-nav-link.active::after {
    width: 100%;
}

/* Flag link styling */
.desktop-nav-link.flag-link {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 50px;
}

.desktop-nav-link.flag-link::before,
.desktop-nav-link.flag-link::after {
    display: none;
}

.desktop-nav-link.flag-link:hover {
    transform: translateY(-2px);
}

.desktop-nav-link.flag-link .flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.desktop-nav-link.flag-link:hover .flag-icon {
    transform: scale(1.1);
}

.desktop-nav-link.flag-link .flag-text {
    font-size: 0.7rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* Mobile Navbar */
.mobile-navbar {
    display: none;
}

.mobile-navbar .header-container {
    display: grid;
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .desktop-navbar-container {
        padding: 1.25rem 20px;
        gap: 2rem;
    }
    
    .desktop-navbar-list {
        gap: 1.5rem;
    }
    
    .desktop-navbar-logo {
        padding: 0 1.5rem;
    }
    
    .desktop-navbar-logo a {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-navbar {
        display: none !important;
    }
    
    .mobile-navbar {
        display: block !important;
    }
}

/* Base body direction */
body {
    direction: ltr !important;
    text-align: left !important;
}

/* Form direction */
.lead-form,
.contact-form {
    direction: ltr !important;
}

/* Text alignment overrides */
.hero-text,
.about-text,
.service-card p,
.timeline-step p,
.value-item p,
.faq-question,
.author-info,
.checklist,
.services-note,
.footer-compliance {
    text-align: left !important;
}

/* Padding and margin swaps */
.hero-text {
    padding-right: 0 !important;
    padding-left: 2rem !important;
}

@media (max-width: 1024px) {
    .hero-text {
        padding-left: 0 !important;
    }
}

.hero-subtitle {
    padding-right: 0 !important;
}

.trust-bullets {
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

.trust-bullets li {
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

.trust-bullets li::before {
    left: 0 !important;
    right: auto !important;
}

.trust-bullets li:hover {
    transform: translateX(5px) !important;
}

/* Navigation */
.nav-left {
    order: 1;
    justify-content: flex-start !important;
}

.nav-right {
    order: 3;
    justify-content: flex-end !important;
}

.logo {
    order: 2;
}

.header-mobile-wrapper {
    order: 2;
}

.nav-list {
    flex-direction: row;
}

.nav-link::before {
    left: 0 !important;
    right: auto !important;
}

.nav-link::after {
    left: 0 !important;
    right: auto !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100% !important;
}

/* FAQ */
.faq-question {
    text-align: left !important;
    flex-direction: row;
}

.faq-icon {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

.faq-answer {
    text-align: left !important;
}

/* Mobile menu */
.mobile-menu {
    right: auto !important;
    left: -100% !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3) !important;
}

.mobile-menu.open {
    right: auto !important;
    left: 0 !important;
}

.mobile-menu-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    background: none !important;
    border: none !important;
    font-size: 2.5rem !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

.mobile-menu-close:hover {
    color: #ff6b35 !important;
    transform: scale(1.2) rotate(90deg) !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile menu content styling */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2a3d66 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
    left: 0;
}

.mobile-nav {
    display: block;
    width: 100%;
    margin-top: 3rem;
}

.mobile-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
}

.mobile-nav-list li {
    width: 100%;
    display: block;
}

.mobile-nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    color: #ffffff;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link::after {
    display: none;
}

/* Mobile flag link styling */
.mobile-nav-link.mobile-flag-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.mobile-nav-link.mobile-flag-link .mobile-flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.mobile-nav-link.mobile-flag-link .mobile-flag-text {
    font-size: 1.125rem;
    color: #ffffff;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* Header Mobile Wrapper - Desktop */
.header-mobile-wrapper {
    display: contents;
}

.header-mobile-wrapper .logo {
    grid-column: 2;
    order: 0;
}

.header-mobile-wrapper .menu-toggle {
    display: none;
}

.menu-toggle {
    position: absolute !important;
}

/* Contact buttons container */
.contact-buttons-container {
    position: fixed;
    right: 20px;
    left: auto;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

/* Contact buttons positioning */
.phone-button,
.whatsapp-button {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-primary-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-white);
    text-decoration: none;
    animation: pulse-phone 2s ease-in-out infinite;
}

.phone-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px var(--shadow-primary-dark);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.phone-button:active {
    transform: scale(0.95);
}

.phone-button svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-button {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #20BA5A 0%, #25D366 100%);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 4px 20px var(--shadow-primary-dark);
    }
    50% {
        box-shadow: 0 4px 25px var(--shadow-primary-dark), 0 0 0 8px var(--shadow-primary-light);
    }
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .contact-buttons-container {
        right: 12px;
        left: auto;
        bottom: 20px;
        gap: 12px;
    }
    
    .phone-button,
    .whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .phone-button svg,
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .contact-buttons-container {
        right: 12px;
        left: auto;
        bottom: 16px;
        gap: 10px;
    }
    
    .phone-button,
    .whatsapp-button {
        width: 52px;
        height: 52px;
    }
    
    .phone-button svg,
    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Form inputs */
.form-group label {
    text-align: left !important;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    text-align: left !important;
    direction: ltr !important;
}

input::placeholder {
    text-align: left !important;
    direction: ltr !important;
}

/* Hero CTA button alignment */
.hero-ctas {
    justify-content: flex-start !important;
    text-align: left !important;
}

.hero-text h1 {
    text-align: left !important;
    font-size: 32px !important;
}

/* Timeline */
.timeline-step {
    text-align: left !important;
}

/* Recommendations */
.recommendation-text {
    text-align: left !important;
}

.author-info {
    text-align: left !important;
}

/* Checklist */
.checklist {
    text-align: left !important;
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

/* Footer */
.footer {
    text-align: center !important;
}

/* Success popup */
.success-popup-content {
    text-align: center !important;
}

/* Animation adjustments for LTR */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service cards text */
.service-card h3,
.service-card p {
    text-align: left !important;
}

/* Who it's for section */
.who-column {
    text-align: left !important;
}

/* Value section */
.value-item {
    text-align: left !important;
}

/* About section */
.highlight-box ul {
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
    text-align: left !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-navbar .header-container {
        grid-template-columns: 1fr !important;
        padding: 1rem 20px !important;
        gap: 0 !important;
    }
    
    .header-mobile-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    .mobile-navbar .logo {
        order: 1 !important;
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: center !important;
        display: flex !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 1rem !important;
    }
    
    .menu-toggle {
        display: flex !important;
        order: 2 !important;
        position: relative !important;
        margin: 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        padding: 8px !important;
        flex-shrink: 0 !important;
    }
    
}

@media (max-width: 480px) {
    .mobile-navbar .header-container {
        padding: 0.75rem 15px !important;
    }
    
    .header-mobile-wrapper {
        padding: 0 !important;
    }
    
    .mobile-navbar .logo {
        font-size: 0.9rem !important;
        align-items: center !important;
        display: flex !important;
    }
    
    .menu-toggle {
        padding: 6px !important;
        align-items: center !important;
    }
    
    .menu-toggle span {
        width: 22px !important;
    }
    
    .mobile-menu-close {
        top: 0.75rem !important;
        right: 0.75rem !important;
        left: auto !important;
        font-size: 2rem !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    .mobile-menu {
        padding: 1rem 1.5rem 2rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-nav {
        margin-top: 2.5rem !important;
    }
    
    .hero-text h1 {
        font-size: 29px !important;
    }
}

