/* ============================================================
   STAIR & GLASS DESIGN — style.css v7.0 LIMPIO
   Estructura:
   1. VARIABLES & ROOT
   2. TIPOGRAFÍA (fuentes y jerarquía)
   3. RESET & BASE
   4. COMPONENTES GLOBALES (botones, section-header, iconos)
   5. HEADER & NAVEGACIÓN
   6. HERO
   7. PORTFOLIO / BIBLIOTECA
   8. SERVICIOS
   9. ESTADÍSTICAS
   10. ÁREAS DE SERVICIO
   11. CONTACTO
   12. FOOTER
   13. FLOTANTES (WhatsApp, btn-top, btn-presupuesto)
   14. MODALES
   15. CONTROL DE IDIOMAS
   ──────────────────────────────────────────────────────────
   RESPONSIVE (al final de cada sección o en bloque final):
   16. TABLET  (max-width: 1024px)
   17. MÓVIL   (max-width: 767px)
   18. MÓVIL PEQUEÑO (max-width: 480px)
   ============================================================ */


/* ============================================================
   1. VARIABLES & ROOT
   ============================================================ */
:root {
    /* Paleta oro */
    --oro:          #a69177;
    --oro-oscuro:   #8e7955;

    /* Fondos oscuros */
    --fondo:        #050505;
    --fondo-claro:  #0a0a0a;

    /* Grises */
    --gris:         #0d0d0d;
    --gris-claro:   #141414;

    /* Textos */
    --blanco:       #e0e0e0;
    --texto-gris:   #8c8c8c;

    /* Borde */
    --borde:        rgba(166, 145, 119, 0.15);

    /* Transición global */
    --transition:   all 1000ms cubic-bezier(0.25, 1, 0.5, 1);

    /* Fuente base */
    --fuente:       -apple-system, 'SF Pro Text', 'SF Pro Display',
                    'Helvetica Neue', Helvetica, Arial, sans-serif;
}


/* ============================================================
   2. TIPOGRAFÍA
   ============================================================ */

/* Cuerpo y textos corrientes */
body, p, li, span,
button, input, textarea, select,
.hero-subtitle, .review-text,
.footer-col ul li a,
.service-detailed-content p,
.service-detailed-content ul li,
.process-item p {
    font-family: var(--fuente);
    font-weight: 400;
    line-height: 1.6;
    font-style: normal;
}

/* Títulos */
h1, h2, h3, h4,
.hero-title,
.section-header h2,
.service-detailed-content h2,
.cta-content h2,
.modal-content h2,
.service-title,
.service-number,
.process-number {
    font-family: var(--fuente);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Subtítulos, etiquetas, navegación */
.hero-subtitle, .section-tag,
.btn-primary, .btn-cotizacion-nav,
nav a, .dropbtn, .lang-btn,
.process-item h3 {
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Número de servicio */
.service-number {
    font-weight: 700;
    opacity: 0.3;
}

/* Símbolo estadísticas */
.stat-number  { display: inline-block; }
.stat-symbol {
    display: inline-block;
    font-size: 2rem;
    margin-left: 2.6rem;
    vertical-align: super;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--oro);
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--fondo-claro);
    color: var(--blanco);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   4. COMPONENTES GLOBALES
   ============================================================ */

/* ── Botones ── */
.btn-primary {
    display: inline-block;
    background: var(--oro);
    color: var(--fondo);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 1px;
}
.btn-primary:hover {
    background: var(--oro-oscuro);
    transform: translateY(-3px);
}

.btn-cotizacion-nav {
    background: transparent;
    border: 1px solid var(--oro);
    color: var(--oro);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
    display: inline-block;
    line-height: 1;
    border-radius: 1px;
}
.btn-cotizacion-nav:hover {
    background: var(--oro);
    color: #000;
}

/* Bordes cuadrados globales — excepciones al final */
button,
.btn-primary,
.btn-cotizacion-nav,
.btn-presupuesto,
.btn-submit,
.btn-submit-simple,
.btn-antes-despues,
.lang-btn,
.btn-next,
.btn-prev,
.submit-btn,
.swiper-button-next,
.swiper-button-prev {
    border-radius: 1px !important;
}
/* WhatsApp y btn-top conservan forma circular */
.whatsapp, .btn-top { border-radius: 50% !important; }


/* ── Section header ── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: -50px;
}
.section-tag {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--oro);
    display: inline-block;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.section-header h2 .highlight { color: var(--oro); }
.section-header p {
    color: var(--texto-gris);
    max-width: 600px;
    margin: 0 auto;
}


/* ── Iconos (Unicode / SVG) ── */
.icon-unicode,
.icon-svg {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    margin-right: 1rem;
    color: var(--oro);
}
.icon-svg svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
}

/* ── Utilidades responsive ── */
@media (min-width: 768px) { .solo-movil { display: none; } }
@media (max-width: 767px) { .solo-pc    { display: none; } }


/* ============================================================
   5. HEADER & NAVEGACIÓN
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borde);
    transition: var(--transition);
}

/* Logo */
.logo {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.logo span { color: var(--oro); font-weight: 500; }

/* En desktop: logo en una sola línea */
.logo-stair  { color: var(--blanco); }
.logo-glass  { color: var(--oro); font-weight: 500; }

/* Nav links */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
nav a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}
nav a:hover,
nav a.active { color: var(--oro); }

/* Idioma */
.lang-btn {
    background: none;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 1rem;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--transition);
}
.lang-btn:hover { color: var(--oro); opacity: 1; }

/* lang-btn-movil: SOLO visible en móvil — oculto en desktop y tablet */
.lang-btn-movil,
button.lang-btn-movil {
    display: none !important;
}

/* Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}
.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--oro);
    transition: var(--transition);
}

/* Botón cotización móvil */
.btn-cotizacion-movil {
    display: none;
    background: var(--oro);
    border: none;
    color: #fff;
    padding: 0 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    margin-left: auto;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

/* ── Dropdown ── */
.dropdown { position: relative; }

.dropbtn {
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.dropbtn i { font-size: 0.7rem; transition: transform 0.3s ease; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--fondo-claro);
    min-width: 150px;
    border: 1px solid var(--borde);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    flex-direction: column;
}
.dropdown-content.show { display: flex; }

/* Items del dropdown */
.main-item-container { position: relative; }

.main-item {
    display: block;
    padding: 12px 10px;
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    cursor: pointer;
}
.main-item-container a.main-item { margin: 0; }

.main-item.submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.submenu-arrow { font-size: 0.7rem; transition: transform 0.3s ease; }

.main-item:hover {
    background-color: rgba(166, 145, 119, 0.1);
    color: var(--oro);
    border-left-color: var(--oro);
    padding-left: 24px;
}

/* Punto decorativo */
.main-item::before {
    content: "•";
    color: var(--oro);
    display: inline-block;
    width: 1rem;
    opacity: 0.5;
    font-size: 0.8rem;
    margin-right: 8px;
}
.submenu-trigger::before { content: none !important; }

/* Submenú */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--fondo-claro);
    min-width: 140px;
    border: 1px solid var(--borde);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}
.main-item-container.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu a {
    display: block;
    padding: 8px 20px;
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    margin: 0;
}
.submenu a:hover {
    background-color: rgba(166, 145, 119, 0.1);
    color: var(--oro);
    padding-left: 28px;
    border-left-color: var(--oro);
}


/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}
.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-poster-layer,
.hero-video-layer,
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-content-layer {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
}

.hero-text-wrapper {
    width: 90%;
    max-width: 1000px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 0.7;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .hero-poster-layer { width: 100%; left: 0; }
}


/* ============================================================
   7. PORTFOLIO / BIBLIOTECA
   ============================================================ */
.biblioteca {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.card {
    background: var(--fondo-claro);
    border: 1px solid var(--borde);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: border-color 800ms cubic-bezier(0.2, 0, 0, 1),
                transform     800ms cubic-bezier(0.2, 0, 0, 1),
                box-shadow    800ms cubic-bezier(0.2, 0, 0, 1);
    will-change: transform, border-color;
}
.card:hover {
    border-color: rgba(166, 145, 119, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-image { overflow: hidden; position: relative; }
.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: var(--transition);
}
.card:hover img { transform: scale(1.05); }

.card-body { padding: 1.5rem; }
.card-body h3 { color: var(--oro); margin-bottom: 0.5rem; }
.card-body p { color: var(--texto-gris); font-size: 0.9rem; margin-bottom: 1rem; }

.btn-antes-despues {
    background: transparent;
    border: 1px solid rgba(166, 145, 119, 0.3);
    color: var(--oro);
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.6s ease;
    margin-top: 15px;
}
.btn-antes-despues:hover {
    background: var(--oro);
    color: #000;
    border-color: var(--oro);
}


/* ============================================================
   8. SERVICIOS
   ============================================================ */
.servicios-sec {
    padding: 30px 5% 80px;
    background: var(--fondo-claro);
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    background: transparent;
    border: 1px solid rgba(166, 145, 119, 0.15);
    transition: border-color 1000ms cubic-bezier(0.25, 1, 0.5, 1),
                transform     1000ms cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow    1000ms cubic-bezier(0.25, 1, 0.5, 1);
}
.service-item:hover {
    border-color: rgba(166, 145, 119, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.service-item i   { font-size: 2.5rem; color: var(--oro); margin-bottom: 1rem; }
.service-item h3  { font-size: 1.3rem; margin-bottom: 0.8rem; }
.service-item p   { color: var(--texto-gris); font-size: 0.9rem; }

/* Íconos por posición */
.service-item h3 {
    position: relative;
    display: inline-block;
}
.service-item h3::before {
    content: "★";
    display: block;
    font-size: 2.5rem;
    color: var(--oro);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: normal;
}
.servicios-grid .service-item:nth-child(1) h3::before { content: "⌂"; }
.servicios-grid .service-item:nth-child(2) h3::before { content: "⊞"; }
.servicios-grid .service-item:nth-child(3) h3::before { content: "🍷︎"; }
.servicios-grid .service-item:nth-child(4) h3::before { content: "☂"; }

/* ── Carrusel de servicios destacados ── */
.services-showcase-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.services-swiper { padding: 20px 40px; overflow: hidden; }
.services-swiper .swiper-slide { height: auto; }

.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev {
    color: #00aaff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.services-swiper .swiper-button-next::after,
.services-swiper .swiper-button-prev::after { font-size: 1.2rem; }

.service-card {
    background: var(--gris);
    border: 1px solid var(--borde);
    border-radius: 1px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}
.service-card:hover {
    border-color: rgba(166, 145, 119, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.service-image { aspect-ratio: 1 / 1; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }

.service-info { padding: 1.5rem; }

.service-title {
    font-size: 1.1rem;
    color: var(--oro);
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 1000ms ease;
}

.service-stars i { color: var(--oro); font-size: 0.9rem; margin-right: 2px; }
.service-review-count  { color: var(--blanco); opacity: 0.7; font-size: 0.85rem; margin-left: 5px; }
.service-review-text   { font-style: italic; font-size: 0.9rem; color: var(--blanco); line-height: 1.5; margin: 1rem 0; }
.service-review-author { font-size: 0.8rem; color: var(--oro); margin-bottom: 1rem; display: block; }
.service-price         { font-weight: 700; font-size: 1.1rem; color: var(--blanco); margin-bottom: 1rem; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--oro);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}
.service-link:hover { letter-spacing: 2px; color: var(--blanco); }


/* ============================================================
   9. ESTADÍSTICAS
   ============================================================ */
.stats-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--gris) 0%, var(--fondo) 100%);
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.stat-item   { position: relative; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--oro); }
.stat-label  {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-gris);
}
.stat-symbol { position: absolute; top: 0; }


/* ============================================================
   10. ÁREAS DE SERVICIO
   ============================================================ */
.service-areas { padding: 80px 5%; }
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.area-item {
    padding: 0.8rem 1.8rem;
    background: var(--gris);
    border: 1px solid var(--borde);
    font-size: 0.9rem;
    transition: var(--transition);
}
.area-item:hover { border-color: var(--oro); transform: translateY(-3px); }


/* ============================================================
   11. CONTACTO
   ============================================================ */
.contacto-sec {
    padding: 100px 5%;
    background: var(--fondo-claro);
}
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.info-item i    { font-size: 1.8rem; color: var(--oro); }
.info-item h4   { font-size: 1rem; margin-bottom: 0.3rem; }
.info-item a,
.info-item p    { color: var(--texto-gris); text-decoration: none; transition: var(--transition); }
.info-item a:hover { color: var(--oro); }

/* Formulario */
.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--gris);
    border: 1px solid var(--borde);
    color: var(--blanco);
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    border-radius: 0;
    transition: var(--transition);
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--oro);
}
.contacto-form .form-field-full { width: 100%; }

/* Fila flexible */
.form-row-flex  { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.form-field-flex { flex: 1; min-width: 200px; }

.lang-placeholder {
    width: 100%;
    padding: 0.8rem;
    background: var(--gris);
    border: 1px solid var(--borde);
    color: var(--blanco);
    border-radius: 8px;
    font-family: inherit;
}

.btn-submit {
    background: var(--oro);
    color: var(--fondo);
    padding: 1rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 1px;
}
.btn-submit:hover { background: var(--oro-oscuro); }

/* ── Versión "limpia" del formulario ── */
.contacto-sec.limpia { background: var(--fondo-claro); padding: 80px 5%; }
.contacto-wrapper {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.contacto-form-simple {
    flex: 2;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-fila { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-fila input,
.form-fila select {
    flex: 1;
    min-width: 180px;
    padding: 0.7rem 1rem;
    background: var(--gris);
    border: 1px solid var(--borde);
    color: var(--blanco);
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 0;
}
.form-fila-full { width: 100%; }
.form-fila-full textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--gris);
    border: 1px solid var(--borde);
    color: var(--blanco);
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 0;
    resize: vertical;
}
.btn-submit-simple {
    background: var(--oro);
    color: var(--fondo);
    padding: 0.8rem 1.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    border-radius: 1px;
}
.btn-submit-simple:hover { background: var(--oro-oscuro); }

/* Lista contacto footer */
.contact-info    { margin-top: 1.5rem; }
.contact-info h4 { margin-bottom: 0.75rem; }
.contact-list    { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.contact-list svg     { flex-shrink: 0; opacity: 0.8; }
.contact-list a,
.contact-list span    { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--oro); text-decoration: underline; }


/* ============================================================
   12. FOOTER
   ============================================================ */
footer {
    background: var(--fondo);
    border-top: 1px solid var(--borde);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-logo            { flex: 1; min-width: 250px; }
.footer-logo .logo      { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-logo p          { color: var(--texto-gris); font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    margin-left: auto;
}
.footer-col h4 {
    color: var(--oro);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.footer-col ul          { list-style: none; }
.footer-col ul li       { margin-bottom: 0.5rem; }
.footer-col ul li a {
    color: var(--texto-gris);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--oro); padding-left: 5px; }

/* Estrellas de reseña (sin Font Awesome) */
.footer-review-badge i.fas,
.footer-review-badge i.far,
.footer-review-badge i.fab { display: none; }
.footer-review-badge [class*="star"]::before {
    content: "★★★★★";
    letter-spacing: 2px;
    color: var(--oro);
    font-size: 1rem;
    display: inline-block;
}

/* Redes sociales */
.social-icons       { display: flex; gap: 1rem; }
.social-icons a     { color: var(--texto-gris); font-size: 1.2rem; transition: var(--transition); }
.social-icons a:hover { color: var(--oro); transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--borde);
    color: var(--texto-gris);
    font-size: 0.75rem;
}


/* ============================================================
   13. BOTONES FLOTANTES
   ============================================================ */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: var(--blanco);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}
.whatsapp:hover { transform: scale(1.1); }

.btn-presupuesto {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--oro);
    color: var(--fondo);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: var(--transition);
}
.btn-presupuesto:hover { transform: translateY(-3px); }

.btn-top {
    position: fixed;
    bottom: 20px;
    right: 90px;
    width: 45px;
    height: 45px;
    background: var(--gris);
    color: var(--oro);
    border: 1px solid var(--oro);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-top:hover { background: var(--oro); color: var(--fondo); }


/* ============================================================
   14. MODALES
   ============================================================ */

/* ── Modal formulario cotización ── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}
.modal-content {
    background: var(--gris);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--oro);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--texto-gris);
    transition: var(--transition);
}
.close-btn:hover { color: var(--oro); }

.modal-subtitle { color: var(--texto-gris); font-size: 0.8rem; margin-bottom: 1rem; }

.progress-container { position: relative; margin: 1.5rem 0; }
.progress-bar { width: 33.33%; height: 4px; background: var(--oro); transition: width 0.3s ease; }
.progress-steps { display: flex; justify-content: space-between; margin-top: 0.5rem; }

.step-indicator {
    width: 30px;
    height: 30px;
    background: var(--borde);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--texto-gris);
}
.step-indicator.active { background: var(--oro); color: var(--fondo); }

.step        { display: none; }
.step.active { display: flex; flex-direction: column; gap: 1rem; }

.step input,
.step select,
.step textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--fondo);
    border: 1px solid var(--borde);
    color: var(--blanco);
    border-radius: 8px;
}

.form-buttons { display: flex; gap: 1rem; margin-top: 1rem; }
.btn-prev, .btn-next, .submit-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.btn-prev { background: var(--borde); color: var(--texto-gris); }
.btn-next,
.submit-btn { background: var(--oro); color: var(--fondo); }
.btn-prev:hover,
.btn-next:hover,
.submit-btn:hover { transform: translateY(-2px); }

/* ── Modal Antes / Después ── */
.modal-ba {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.modal-ba-content { width: 90%; max-width: 850px; position: relative; }

.ba-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}
.ba-close:hover { color: var(--oro); }

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--oro);
}

#ba-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#ba-after-container {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}
#ba-after-img {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    display: block;
}

#ba-divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--oro);
    z-index: 3;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--oro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
    cursor: grab;
}
.ba-handle:active { cursor: grabbing; }
.ba-handle i { color: #000; font-size: 1rem; }

#ba-range {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-leyenda {
    text-align: center;
    margin-top: 20px;
    color: var(--oro);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ============================================================
   15. CONTROL DE IDIOMAS
   ============================================================ */
[data-lang="en"]              { display: none !important; }
[data-lang="es"]              { display: block !important; }
body.lang-en [data-lang="en"] { display: block !important; }
body.lang-en [data-lang="es"] { display: none !important; }


/* ============================================================
   16. TABLET  (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .footer-links { gap: 2rem; }
    .footer-col   { flex: 1 1 40%; min-width: 180px; }
}


/* ============================================================
   17. MÓVIL  (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* ── Hero ── */
    .hero {
        height: 40vh !important;
        min-height: 280px !important;
    }
    .hero-content-layer { padding-top: 90px !important; }
    .hero-title         { font-size: 1.5rem; }
    .hero-subtitle      { font-size: 0.9rem; letter-spacing: 3px; }
    .hero-buttons {
        margin-top: 70px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    .hero-buttons .btn-primary {
        padding: 5px 12px !important;
        font-size: 0.85rem !important;
        min-width: auto !important;
    }

    /* ── Header en móvil ── */

    /* Logo en 2 líneas, compacto */
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        font-size: 1rem;
        line-height: 1.1;
        white-space: nowrap;
    }
    .logo-stair { font-size: 1rem; font-weight: 800; letter-spacing: 2px; }
    .logo-glass { font-size: 0.75rem; font-weight: 400; letter-spacing: 1.5px; }

    /* Menú hamburguesa */
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -6px); }

    /* Nav se convierte en panel lateral */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        overflow-y: auto;
        max-height: 100vh;
        transition: right 0.4s ease;
        z-index: 1050;
    }
    nav.active { right: 0; }
    nav a { font-size: 1rem; text-align: center; padding: 0.5rem 0; width: 100%; }

    /* lang-btn DENTRO del nav: se oculta (no duplicar) */
    nav .lang-btn { display: none; }

    /* Botón cotización desktop: oculto en móvil */
    .btn-cotizacion-nav { display: none; }

    /* Barra derecha del header en móvil: [auto-push] [Cotizar] [ES/EN] [☰] */
    .btn-cotizacion-movil {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0 0.8rem;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 2px;
        margin-left: auto;   /* empuja todo el bloque derecho hacia la derecha */
        margin-right: 0.5rem;
    }

    /* lang-btn que está FUERA del nav (directo en header) — se activa en móvil */
    .lang-btn-movil,
    button.lang-btn-movil {
        display: inline-flex !important;
        align-items: center;
        background: none;
        border: none;
        color: var(--blanco);
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        opacity: 0.8;
        cursor: pointer;
        margin-right: 0.6rem;
        transition: var(--transition);
        white-space: nowrap;
    }
    .lang-btn-movil:hover { color: var(--oro); opacity: 1; }

    /* ── Dropdown en móvil ── */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        width: 100%;
    }
    .dropdown-content.show { display: flex; flex-direction: column; }
    .main-item-container   { width: 100%; }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease-out;
        background: rgba(20, 20, 20, 0.95);
        border: none;
        margin-left: 1.5rem;
        box-shadow: none;
    }
    .submenu.show-submenu { max-height: 500px; overflow-y: auto; }
    .main-item-container.has-submenu.open .submenu-arrow { transform: rotate(90deg); }

    .main-item   { padding: 10px 16px; }
    .submenu a   { padding: 8px 16px; font-size: 0.7rem; }

    /* ── Grids ── */
    .grid,
    .servicios-grid { grid-template-columns: 1fr; }
    .contacto-container { grid-template-columns: 1fr; gap: 2rem; }
    .stats-container    { flex-direction: column; gap: 2rem; }

    /* ── Secciones ── */
    .biblioteca,
    .contacto-sec { padding: 60px 5%; }
    .servicios-sec {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }
    .section-header h2 { font-size: 1.5rem; }
    .card img          { height: 220px; }

    /* ── Footer ── */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-links   { justify-content: center; flex-wrap: wrap; gap: 2rem; }
    .footer-col     { flex: 1 1 40%; min-width: 180px; }
    .social-icons   { justify-content: center; }

    /* ── Carrusel ── */
    .services-swiper { padding: 20px 30px; }
    .services-swiper .swiper-button-next,
    .services-swiper .swiper-button-prev { display: none; }

    /* Paginación Swiper */
    .swiper-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        display: inline-flex !important;
        justify-content: center;
        gap: 0.3rem !important;
        background: rgba(20, 20, 20, 0.8);
        padding: 0.3rem 0.6rem !important;
        border-radius: 30px;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(166, 145, 119, 0.3);
    }

    /* ── Modal antes/después ── */
    .ba-container { aspect-ratio: 4 / 5; }
    .ba-handle    { width: 40px; height: 40px; }

    /* ── Formulario de contacto ── */
    .contacto-wrapper { flex-direction: column; }
    .form-fila        { flex-direction: column; gap: 1rem; }
    .form-fila input,
    .form-fila select { width: 100%; }
    .btn-submit-simple { width: 100%; text-align: center; }

    /* ── Flotantes ── */
    .whatsapp       { width: 48px; height: 48px; font-size: 1.5rem; bottom: 15px; right: 15px; }
    .btn-presupuesto { bottom: 15px; left: 15px; padding: 0.6rem 1.2rem; font-size: 0.75rem; }
    .btn-top        { bottom: 75px; right: 15px; width: 40px; height: 40px; }
}


/* ============================================================
   18. MÓVIL PEQUEÑO  (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .section-header h2 { font-size: 1.8rem; }
    .card img          { height: 250px; }
}
