/**
 * ESTILOS HERO + MENÚ INTEGRADO - PIXEL PERFECT
 * Logo izquierda, menú centro, 1 botón derecha
 */

/* ============================================
   VARIABLES
============================================ */
:root {
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'DM Sans', sans-serif;
    --color-dark: #2a2a2a;
    --color-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #333;
}

/* ============================================
   HERO SECTION CON MENÚ INTEGRADO
============================================ */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: white;
    padding: 40px;
}

/* CONTENEDOR DEL HEADER (Logo + Menú + Botón) */
.hero-header-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    margin-bottom: 60px;
}

/* LOGO A LA IZQUIERDA */
.hero-logo {
    flex-shrink: 0;
}

.hero-logo img {
    height: 80px;
    width: auto;
}

/* MENÚ AL CENTRO */
.hero-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.hero-nav ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-nav li {
    position: relative;
    list-style: none !important;
}

.hero-nav > ul > li > a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.8px;
    font-weight: 400;
    transition: all 0.3s;
    padding: 10px 15px;
    display: inline-block;
}

.hero-nav > ul > li > a:hover {
    opacity: 0.7;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* DROPDOWN MENÚ */
.hero-nav .has-submenu {
    position: relative;
}

.hero-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    margin-top: 5px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none !important;
}

.hero-nav .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-nav .submenu li {
    list-style: none !important;
}

.hero-nav .submenu a {
    display: block;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero-nav .submenu a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 25px;
}

/* Icono dropdown */
.hero-nav .ti-angle-down {
    margin-left: 5px;
    font-size: 12px;
}

/* BOTÓN CONTACTO A LA DERECHA (SOLO 1) */
.hero-cta {
    flex-shrink: 0;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 38px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-contacto:hover {
    background: white;
    color: var(--color-dark);
}

/* TÍTULO Y SUBTÍTULO AL CENTRO */
.hero-text {
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    letter-spacing: 2.5px;
    font-weight: 300;
    opacity: 0.95;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--color-light);
}

.footer-newsletter {
    text-align: center;
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid #d5d5d5;
}

.footer-newsletter h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.newsletter-form {
    max-width: 550px;
    margin: 0 auto 1.5rem;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 0.95rem;
    background: white;
}

.newsletter-form button {
    padding: 15px 35px;
    background: var(--color-dark);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.privacy-checkbox {
    font-size: 0.9rem;
    color: #666;
}

.footer-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4rem;
}

.footer-logo img {
    max-width: 140px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom {
    border-top: 1px solid #d5d5d5;
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: var(--color-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .hero-header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-nav .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.7);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .hero-nav .has-submenu.open > .submenu {
        max-height: 500px;
    }
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
}

/* Footer: logo del mismo tamaño que el del menú */
.site-footer .footer-logo img {
    height: 80px;
    width: auto;
    display: inline-block;
}

@media (max-width: 980px) {
    .site-footer .footer-logo img {
        height: 60px;
    }
}

/* ============================================
   HERO HOME (título/subtítulo como la captura)
============================================ */
body.home-no-placeholder .hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
}

body.home-no-placeholder .hero-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

body.home-no-placeholder .hero-content {
    /* Colocar el texto ligeramente hacia la izquierda y algo bajo */
    max-width: 960px;
    margin-left: 2vw;
    margin-top: 40vh;
    color: #fff;
}

body.home-no-placeholder .hero-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: 84px;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

@media (min-width: 1600px) {
    body.home-no-placeholder .hero-title { font-size: 96px; }
}

@media (max-width: 1200px) {
    body.home-no-placeholder .hero-title { font-size: 64px; }
}

@media (max-width: 768px) {
    body.home-no-placeholder .hero-title { font-size: 44px; }
}

body.home-no-placeholder .hero-subtitle {
    margin-top: 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
/* ===== Global header priority fix (safe) ===== */
/* Ensure site header is always clickable and above content/overlays */
header.site-header, .site-header, header#site-header, header[role="banner"] {
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}
.site-header *, header.site-header * { pointer-events: auto; }

/* Typical content overlays must not eclipse the header */
.hero-overlay, .image-overlay, .qt-overlay {
  position: absolute;
  z-index: 0; /* header sits above with z-index:10000 */
}

/* Sections stay below header by default */
section, .section, [class$='-block'] { position: relative; z-index: 1; }

/* In case dropdowns need a bit more stacking than the header container */
.main-nav, .nav, .menu { position: relative; z-index: 10001; }
