/* Local fixes for Ruta64 - Critical styles for local development */

/* ==========================================
   CSS Variables (Avada/Fusion defaults)
   ========================================== */
:root {
    --awb-color1: #ffffff;
    --awb-color2: #0e030f;
    --awb-color3: #0e030f;
    --awb-color4: #0e030f;
    --awb-color5: #0e030f;
    --awb-color6: #6c4213;
    --awb-color7: #023e8a;
    --awb-color8: #091b18;
    --primary_color: #ff00ff;
    --awb-border-color: #e5e5e5;
    --awb-background: #fff;
}

/* ==========================================
   Visibility Classes (Avada/Fusion)
   ========================================== */
@media screen and (max-width: 640px) {
    .fusion-no-small-visibility {
        display: none !important;
    }
    body .sm-text-align-center {
        text-align: center !important;
    }
    body .sm-text-align-left {
        text-align: left !important;
    }
    body .sm-text-align-right {
        text-align: right !important;
    }
}

@media screen and (min-width: 641px) and (max-width: 1125px) {
    .fusion-no-medium-visibility {
        display: none !important;
    }
    body .md-text-align-center {
        text-align: center !important;
    }
    body .md-text-align-left {
        text-align: left !important;
    }
    body .md-text-align-right {
        text-align: right !important;
    }
}

@media screen and (min-width: 1126px) {
    .fusion-no-large-visibility {
        display: none !important;
    }
    body .lg-text-align-center {
        text-align: center !important;
    }
    body .lg-text-align-left {
        text-align: left !important;
    }
    body .lg-text-align-right {
        text-align: right !important;
    }
}

/* ==========================================
   Modal Styles (Bootstrap/Fusion)
   ========================================== */
.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

.modal.fade .modal-dialog {
    transform: translate(0, -25%);
    transition: transform 0.3s ease-out;
}

.modal.in {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.in .modal-dialog {
    transform: translate(0, 0);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 30px auto;
    max-width: 900px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.modal-lg {
    width: 90%;
    max-width: 900px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    background-clip: padding-box;
    outline: 0;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .close {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: 300;
    color: #000;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.modal-body {
    position: relative;
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

/* Fusion Modal specific */
.fusion-modal {
    display: none;
}

.fusion-modal.in {
    display: block !important;
}

.fusion-modal .modal-body p {
    text-align: center;
}

.fusion-modal .modal-body img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
}

/* Modal scroll */
.fusion-modal .modal-dialog {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99998;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.in {
    opacity: 0.7;
}

/* ==========================================
   Navigation Menu Styles
   ========================================== */
.awb-menu {
    position: relative;
}

.awb-menu.loading .awb-menu__main-ul,
.awb-menu.mega-menu-loading .awb-menu__main-ul {
    opacity: 1 !important;
    visibility: visible !important;
}

.awb-menu__main-ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.awb-menu__main-li {
    position: relative;
}

.awb-menu__main-a {
    display: block;
    padding: 0 30px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.awb-menu__main-a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

.awb-menu__m-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #fff;
}

/* Mobile menu */
@media screen and (max-width: 1125px) {
    .awb-menu__m-toggle {
        display: block;
    }

    .awb-menu.collapse-enabled .awb-menu__main-ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #000;
        z-index: 1000;
    }

    .awb-menu.collapse-enabled.expanded .awb-menu__main-ul {
        display: flex;
    }

    .awb-menu.collapse-enabled .awb-menu__main-li {
        width: 100%;
    }

    .awb-menu.collapse-enabled .awb-menu__main-a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop menu visible */
@media screen and (min-width: 1126px) {
    .awb-menu_desktop .awb-menu__main-ul {
        display: flex !important;
    }

    .awb-menu_desktop .awb-menu__m-toggle {
        display: none;
    }
}

/* ==========================================
   Animation Classes
   ========================================== */
.fusion-animated {
    opacity: 1;
    animation-fill-mode: both;
}

.fusion-animated.fusion-animated-visible {
    opacity: 1;
}

/* Ensure header is always visible */
.fusion-tb-header .fusion-animated {
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   Sticky Header
   ========================================== */
.fusion-sticky-container.fusion-is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #000 !important;
}

/* ==========================================
   Go to Top Button
   ========================================== */
.to-top-container {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 9999;
}

#toTop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ff00ff;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#toTop:hover {
    background: #d135e0;
}

#toTop::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

/* ==========================================
   Image Element Fixes
   ========================================== */
.fusion-image-element img {
    max-width: 100%;
    height: auto;
}

.imageframe-none {
    display: inline-block;
}

/* ==========================================
   Button Styles
   ========================================== */
.fusion-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fusion-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Flex Layout
   ========================================== */
.fusion-flex-container {
    display: flex;
    flex-wrap: wrap;
}

.fusion-flex-column {
    display: flex;
    flex-direction: column;
}

.fusion-flex-align-items-center {
    align-items: center;
}

.fusion-flex-justify-content-flex-end {
    justify-content: flex-end;
}

.fusion-flex-justify-content-center {
    justify-content: center;
}

/* ==========================================
   Column Layout
   ========================================== */
.fusion-builder-row {
    display: flex;
    flex-wrap: wrap;
}

.fusion-layout-column {
    position: relative;
}

/* ==========================================
   Separator
   ========================================== */
.fusion-separator {
    clear: both;
}

.fusion-separator-border {
    border-style: solid;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
}

/* ==========================================
   Font Awesome Icons (basic)
   ========================================== */
.fas, .far, .fab {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', sans-serif;
    font-style: normal;
}

.fa-bars::before {
    content: '\2630';
}

.fa-times::before {
    content: '\00D7';
}

.fa-window-close::before {
    content: '\00D7';
}

/* Mobile menu toggle icon */
.awb-menu__m-collapse-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.awb-menu__m-collapse-icon-open {
    font-size: 24px;
    color: #fff;
}

.awb-menu__m-collapse-icon-close {
    display: none;
    font-size: 28px;
    color: #fff;
}

.awb-menu.expanded .awb-menu__m-collapse-icon-open {
    display: none;
}

.awb-menu.expanded .awb-menu__m-collapse-icon-close {
    display: block;
}

/* ==========================================
   Body and Wrapper
   ========================================== */
body {
    margin: 0;
    padding: 0;
    background: #0e030f;
    color: #fff;
}

#wrapper {
    position: relative;
    overflow: hidden;
}

#boxed-wrapper {
    position: relative;
}

/* ==========================================
   Header specific fixes
   ========================================== */
.fusion-tb-header {
    position: relative;
    z-index: 10000;
}

.fusion-tb-header .fusion-fullwidth {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure logo is visible */
.fusion-image-element img.lazyload {
    opacity: 1;
}

/* Navigation background */
.fusion-tb-header .fusion-builder-row-1 {
    background: #000;
}

/* Button styles for header */
.fusion-tb-header .fusion-button {
    border-color: #fff;
    color: #fff;
}

/* ==========================================
   Separator (pink line under header)
   ========================================== */
.fusion-separator-border.sep-single.sep-solid {
    height: var(--awb-height, 3px);
    border-top-width: var(--awb-height, 3px) !important;
}

/* Pink separator line */
#box-shadow-global + .fusion-fullwidth .fusion-separator-border,
.fusion-builder-row-3 + .fusion-fullwidth .fusion-separator-border,
.fusion-builder-row-2 .fusion-separator-border {
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3) !important;
}

/* ==========================================
   Fullwidth container
   ========================================== */
.fullwidth-box {
    width: 100%;
    position: relative;
}

.hundred-percent-fullwidth {
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================
   Sucursales Button Styles
   ========================================== */
.address-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #ffffff;
    border-radius: 30px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
    width: 100%;
}

.address-button:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.5);
}

.address-button i {
    font-size: 16px;
    color: #ffffff;
}

/* Visitanos image border */
.visitanos-image {
    display: block;
    border: 2px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
}

.visitanos-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Trabajemos Juntos Section
   ========================================== */
.fusion-builder-row-12 {
    border: 2px solid #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.3);
}

.button-10 {
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 15px 40px;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
}

.button-10:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.5);
}

/* ==========================================
   Footer Styles
   ========================================== */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s;
}

.social-link:hover {
    color: #ffffff;
    text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff;
}

.go-to-top-section {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

#go-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 10px;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
    opacity: 0.8;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
}

#go-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff, 0 0 90px #ff00ff;
}
