/* Variables de color y fuentes del estilo principal */
:root {
    --primary-bg-color: #F1F5F9;
    --secondary-bg-color-transparent: rgba(255, 255, 255, 0.85);
    --header-bg-color: rgba(255, 255, 255, 0.9);
    --footer-bg-color: rgba(15, 23, 42, 0.95);
    --text-color-primary: #0F172A;
    --text-color-secondary: #A30000;
    --text-color-light: #F1F5F9;
    --cta-color: #F97316;

    /* Fuentes del sitio principal */
    --font-primary: 'Source Sans 3', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-logo: 'Tilt Warp', cursive;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Base para rem */
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text-color-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* Fondo de imagen del estilo principal */
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Pseudo-elemento para el desenfoque del fondo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Estilos de tipografía */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-color-primary);
    margin-bottom: 10px;
    font-weight: 800;
    background-color: transparent !important;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color-primary);
}

p {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color-primary);
    background-color: transparent !important;
}

/* HEADER Y NAVEGACIÓN - Aplicado del estilo principal */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--header-bg-color) !important;
    position: relative;
    z-index: 10;
}

.logo .placeholder {
    font-family: var(--font-logo);
    font-size: 22px;
    color: var(--text-color-primary);
    letter-spacing: 0.1px;
}

.header-title {
    font-family: var(--font-logo);
    font-size: 22px;
    color: var(--text-color-primary);
    letter-spacing: 0.1px;
    margin: 0;
    animation: none; /* Desactivar la animación del título original */
}

.header-subtitle {
    display: none; /* Ocultar el subtítulo para mantener el diseño del header principal */
}

/* Estilos para el menú desplegable (móvil) */
.link-bar-3 {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 9;
}

.link-bar-3.active {
    display: flex;
}

.link-bar-3 a {
    text-decoration: none;
    color: var(--text-color-primary);
    white-space: nowrap;
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.link-bar-3 a:last-child {
    border-bottom: none;
}

.link-bar-3 a:hover {
    background-color: #f0f0f0;
}

.mobile-only-menu-items {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-only-menu-items .menu-item {
    font-weight: 600;
    color: var(--text-color-secondary);
}

/* Estilos para los botones de acción del header */
.header-actions {
    display: flex;
    gap: 10px;
}

.button-2, .button-3 {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.button-2 {
    background: var(--text-color-secondary);
    color: var(--text-color-light);
    border: 2px solid var(--cta-color);
}

.button-3 {
    background: transparent;
    color: var(--text-color-primary);
    border: 2px solid var(--text-color-primary);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color-primary);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.horizontal-line-2 {
    width: 100%;
    height: 1px;
    border-top: 1px solid var(--primary-bg-color);
    margin: 0;
}

/* MAIN CONTENT */
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: transparent !important;
}

.map-container {
    background-color: var(--secondary-bg-color-transparent) !important;
    padding: 40px;
    border-radius: 33px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 800px;
    position: relative;
    border: none; /* Eliminar el borde neón */
}

.section-title {
    margin-bottom: 20px;
    font-weight: 800;
}

/* Botón - Adaptado del estilo principal */
.neon-button {
    padding: 12px 25px;
    background-color: var(--cta-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: none; /* Eliminar el brillo neón */
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: normal;
}

.neon-button:hover {
    background-color: #E0640A;
    color: var(--text-color-light);
    box-shadow: none;
    transform: translateY(-2px);
}

.neon-button:active {
    transform: translateY(0);
}

/* Mapa */
.map-canvas {
    width: 100%;
    height: 450px;
    background-color: var(--primary-bg-color);
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Mensajes de error */
.error-message {
    color: var(--text-color-secondary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    margin-top: 20px;
    text-shadow: none;
    position: static;
    transform: none;
    width: 100%;
}

/* FOOTER - Copiado del estilo principal */
.footer {
    width: 100%;
    padding: 30px 5%;
    box-sizing: border-box;
    background-color: var(--footer-bg-color) !important;
    position: relative;
    z-index: 1;
    margin-top: 40px;
    border-top: none;
    color: var(--text-color-light);
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--text-color-light);
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 15px;
}

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

.footer-col ul li {
    color: var(--text-color-light);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.4;
    margin-bottom: 5px;
}

.footer-col .button-13 {
    width: 143px;
    height: 40px;
    background: transparent;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
    border-radius: 5px;
}

.footer-col .location-1 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-col .location-1 .icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    mask-size: cover;
    -webkit-mask-size: cover;
    background-color: var(--text-color-light);
    margin-right: 8px;
    vertical-align: middle;
}

.arrow-drop-down-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    color: var(--text-color-light);
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--text-color-light);
    mask-size: cover;
    -webkit-mask-size: cover;
}

/* SVG icons (cargados como data URLs) */
.x-twitter-brands-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.49-1.75.83-2.73 1.02-2.03-2.07-5.3-.92-5.3.92V9c-4.31-.22-8.15-2.28-10.74-5.46-.45.77-.7 1.66-.7 2.6 0 1.8.94 3.39 2.37 4.34-1.2-.04-2.32-.37-3.3-1.02v.03c0 2.27 1.62 4.16 3.76 4.59-1.92.52-2.37.16-3.23-.29.6 2.01 2.34 3.47 4.41 3.51-3.17 2.4-7.14 3.8-11.45 3.8-1.57 0-3.1-.09-4.59-.27 4.07 2.62 8.91 4.15 14.1 4.15 16.88 0 26.04-14 26.04-26.04 0-.4-.01-.79-.02-1.18.91-.66 1.7-1.47 2.32-2.4z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.49-1.75.83-2.73 1.02-2.03-2.07-5.3-.92-5.3.92V9c-4.31-.22-8.15-2.28-10.74-5.46-.45.77-.7 1.66-.7 2.6 0 1.8.94 3.39 2.37 4.34-1.2-.04-2.32-.37-3.3-1.02v.03c0 2.27 1.62 4.16 3.76 4.59-1.92.52-2.37.16-3.23-.29.6 2.01 2.34 3.47 4.41 3.51-3.17 2.4-7.14 3.8-11.45 3.8-1.57 0-3.1-.09-4.59-.27 4.07 2.62 8.91 4.15 14.1 4.15 16.88 0 26.04-14 26.04-26.04 0-.4-.01-.79-.02-1.18.91-.66 1.7-1.47 2.32-2.4z"/></svg>');
}

.instagram-brands-icon-7 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7.8 2h8.4C18.17 2 22 5.83 22 10.2v8.4C22 21.17 18.17 25 13.8 25H5.2C.83 25-3 21.17-3 16.8V8.2C-3 3.83.83 0 5.2 0h8.4c4.37 0 8.2 3.83 8.2 8.2zM12 7.78c-2.34 0-4.22 1.88-4.22 4.22s1.88 4.22 4.22 4.22 4.22-1.88 4.22-4.22-1.88-4.22-4.22-4.22zm6.44-4.88c-.96 0-1.74.78-1.74 1.74s.78 1.74 1.74 1.74 1.74-.78 1.74-1.74-.78-1.74-1.74-1.74z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7.8 2h8.4C18.17 2 22 5.83 22 10.2v8.4C22 21.17 18.17 25 13.8 25H5.2C.83 25-3 21.17-3 16.8V8.2C-3 3.83.83 0 5.2 0h8.4c4.37 0 8.2 3.83 8.2 8.2zM12 7.78c-2.34 0-4.22 1.88-4.22 4.22s1.88 4.22 4.22 4.22 4.22-1.88 4.22-4.22-1.88-4.22-4.22-4.22zm6.44-4.88c-.96 0-1.74.78-1.74 1.74s.78 1.74 1.74 1.74 1.74-.78 1.74-1.74-.78-1.74-1.74-1.74z"/></svg>');
}

.facebook-square-brands-icon-7 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>');
}

.youtube-icon-1 {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M21.54 6.54a3.1 3.1 0 0 0-2.19-2.19C17.84 4 12 4 12 4s-5.84 0-7.35.35A3.1 3.1 0 0 0 2.46 6.54C2 8.05 2 12 2 12s0 3.95.46 5.46c.3.82.97 1.49 1.79 1.79C6.16 20 12 20 12 20s5.84 0 7.35-.35a3.1 3.1 0 0 0 2.19-2.19C22 15.95 22 12 22 12s0-3.95-.46-5.46zM10 15.5v-7l6 3.5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M21.54 6.54a3.1 3.1 0 0 0-2.19-2.19C17.84 4 12 4 12 4s-5.84 0-7.35.35A3.1 3.1 0 0 0 2.46 6.54C2 8.05 2 12 2 12s0 3.95.46 5.46c.3.82.97 1.49 1.79 1.79C6.16 20 12 20 12 20s5.84 0 7.35-.35a3.1 3.1 0 0 0 2.19-2.19C22 15.95 22 12 22 12s0-3.95-.46-5.46zM10 15.5v-7l6 3.5z"/></svg>');
}

/* Responsividad (copiado del estilo principal) */
@media (max-width: 767px) {
    .header-actions {
        display: none;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 15px 30px;
    }

    .link-bar-3 {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
        gap: 20px;
    }

    .link-bar-3 a {
        padding: 0;
        border-bottom: none;
    }

    .hamburger-menu {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .mobile-only-menu-items {
        display: none !important;
    }

    .map-container {
        padding: 40px;
    }

    .map-canvas {
        height: 450px;
    }

    .footer-columns {
        flex-direction: row;
        flex-wrap: wrap;
        padding-bottom: 20px;
    }

    .footer-col {
        flex: 1;
        min-width: 180px;
    }

    .footer-col:last-child {
        min-width: 200px;
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 20px 80px;
    }

    .link-bar-3 {
        gap: 30px;
    }

    .map-container {
        padding: 50px;
    }

    .map-canvas {
        height: 500px;
    }

    .footer-columns {
        flex-wrap: nowrap;
    }
}