* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 116vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.15)), url('fondointroardiles.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: absolute;
    top: 40px; 
    left: 0;
    display: flex;
    justify-content: flex-end; 
    align-items: center; 
    background-color: transparent; 
    height: 100px; 
    padding: 0 5%; 
    width: 100%;
    z-index: 10;
}

.nav-right-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px; 
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300; 
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff7826; 
}

/* =========================================================
   ESTILOS DE LOS NUEVOS BOTONES (TOP Y BOTTOM)
   ========================================================= */
.btn-top-contact {
    background-color: #f4b325;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-right: 20px; 
}

.btn-top-contact:hover {
    background-color: #dca120;
    transform: translateY(-2px);
}

.hero-bottom-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-top: 35px;
    width: 100%;
}

.btn-text-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-text-link:hover {
    color: #f4b325;
}

.btn-gold-solid {
    background-color: #f4b325;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-gold-solid:hover {
    background-color: #dca120;
    transform: translateY(-2px);
}

.dropdown-bottom .dropdown-content {
    margin-top: 15px; 
}


/* --- HERO CONTENT --- */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    text-align: center; 
    
    margin-left: 2%; 
    max-width: 900px; 
    width: 100%;
    padding-top: 100px; 
    position: relative; 
}

.hero-main-logo {
    position: absolute;
    top: -70px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 1000px; 
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)); 
}

.hero-title {
    color: #ffffff;
    font-family: 'Playfair Display', serif; 
    font-weight: 100; 
    font-size: 44px; 
    line-height: 1.4;
    margin-top: 220px; 
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.highlight-gold {
    color: #e5be71; 
    font-weight: 700;
}

.hero-subtitle {
    color: #ffffff;
    font-weight: 300; 
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    max-width: 550px; 
}

/* --- ESTILOS DE LA FLECHITA DEL MENÚ --- */
.dropbtn {
    display: flex !important;
    align-items: center;
    gap: 6px; 
}

.dropdown-arrow {
    transition: transform 0.3s ease; 
    margin-top: 2px; 
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #ff7826; 
}

.dropdown-content.show ~ .dropbtn .dropdown-arrow {
    transform: rotate(180deg);
}

/* --- MENÚ DESPLEGABLE (DROPDOWN) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(35, 48, 77, 0.98); 
    min-width: 250px; 
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.5); 
    border-radius: 6px;
    padding: 10px 0;
    list-style: none;
    z-index: 20;
    margin-top: 10px; 
    opacity: 0;
    transition: opacity 0.3s ease; 
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px;
    background-color: transparent; 
}

.dropdown-content li a {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: start;
    font-size: 13px; 
    font-weight: 300;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 120, 38, 0.15); 
    color: #ff7826; 
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #030614; 
    color: #ffffff;
    padding-top: 100px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 30px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.footer-logo-container {
    position: relative;
    height: 100px; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; 
}

.footer-logo {
    position: absolute; 
    height: 320px; 
    width: auto;
    top: 80%;
    left: 10%;
    transform: translate(-50%, -50%); 
}

.footer-phone {
    font-weight: 500; 
    font-size: 24px;
    letter-spacing: 0.5px;
    margin-top: 50px;
    margin-left: -300px;
    line-height: 30px;
}

.col-title {
    font-weight: 300; 
    font-size: 14px;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300; 
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff7826; 
}

.footer-social {
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
    padding-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff;
    border-radius: 50%; 
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff7826;
    border-color: #ff7826;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 20px 0;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 8px; 
    text-align: center;
}

.copyright, .developer {
    font-weight: 300; 
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7); 
    margin: 0;
}

.developer {
    color: rgba(255, 255, 255, 0.4); 
}



/* En PC ocultamos el menú superior (nav-links) porque las opciones están abajo */
@media screen and (min-width: 769px) {
    .nav-links { display: none !important; }
}

/* =========================================================
   OCULTAR ELEMENTOS SEGÚN DISPOSITIVO
   ========================================================= */
.hamburger-menu {
    display: none;
}

/* Oculta los enlaces extra de "Inicio" y "Contacto" en la vista de PC */
.hide-on-desktop {
    display: none !important;
}

/* =========================================================
   RESPONSIVE: TELÉFONOS MÓVILES (Menos de 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
    body.no-scroll { overflow: hidden; }
    
    /* Ocultamos el botón superior derecho de contacto en el celular */
    .hide-on-mobile { display: none !important; }

    .hero-section { 
        height: 110vh; 
        min-height: auto;
        padding-bottom: 0; 
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15)), url('fondointroardilesvertical.webp');
        background-position: center top; 
        background-size: cover;
    }
    
    .navbar { height: 80px; top: 0px; padding: 0 20px; background-color: transparent; }
    .nav-right-container { width: 100%; justify-content: flex-end; }
    
    /* Configuración Hamburguesa */
    .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 38px; height: 38px; cursor: pointer; z-index: 100; border: 1px solid transparent; border-radius: 4px; transition: all 0.3s ease; position: relative; }
    .hamburger-menu span { display: block; height: 2px; width: 22px; background-color: #ffffff; border-radius: 2px; transition: all 0.3s ease; position: absolute; }
    .hamburger-menu span:nth-child(1) { transform: translateY(-7px); }
    .hamburger-menu span:nth-child(2) { transform: translateY(0); }
    .hamburger-menu span:nth-child(3) { transform: translateY(7px); }
    .hamburger-menu.active { border-color: #ffffff; }
    .hamburger-menu.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
    
    /* Configuración Menú Desplegable Lateral */
    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background-color: rgba(25, 28, 33, 0.98); flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; margin: 0; gap: 0; transition: left 0.4s ease; z-index: 99; overflow-y: auto; display: flex !important; }
    .nav-links.active { left: 0; }
    .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
    
    /* En móvil sí mostramos los links que estaban ocultos en PC */
    .hide-on-desktop { display: flex !important; }
    
    .nav-links li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; font-size: 16px; text-align: left; width: 100%; color: #ffffff; }
    .dropdown { position: static; }
    .dropdown-content { display: none; position: static; transform: none; background-color: rgba(0, 0, 0, 0.25); box-shadow: none; min-width: 100%; margin: 0; padding: 0; opacity: 1; }
    .dropdown-content.show { display: block; }
    .dropdown-content li a { padding: 15px 25px 15px 45px; font-size: 15px; color: #d1d1d1; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .dropdown-content li:last-child a { border-bottom: none; }
    .dropbtn.active { color: #ff7826 !important; }
    .dropbtn.active .dropdown-arrow { transform: rotate(180deg); color: #ff7826; }

    /* Contenido Centrado en Móvil */
    .hero-content { 
        margin-left: 0 !important; 
        padding: 60px 20px 0 20px !important; 
        max-width: 100% !important; 
        justify-content: flex-start !important; 
        align-items: center !important; 
    }
    
    /* BLOQUEO DEL ERROR DE DESPLAZAMIENTO EN LOGO */
    .hero-main-logo { 
        position: relative !important; 
        top: 0 !important; 
        left: 0 !important; 
        transform: none !important; 
        width: 100% !important; 
        max-width: 350px !important; 
        margin-bottom: 5px !important; 
        margin-top: 0 !important;
    }

    .hero-title { 
        margin-top: 0 !important; 
        font-size: 20px !important; 
        line-height: 1.2 !important; 
        margin-bottom: 10px !important; 
    }
    
    .hero-subtitle { 
        font-size: 12px !important; 
        line-height: 1.4 !important; 
        padding: 0 10px !important;
        max-width: 320px !important; 
        margin: 0 auto !important; 
    }

    /* 🔥 BOTONES INFERIORES VISIBLES Y ORDENADOS EN MÓVIL 🔥 */
    .hero-bottom-actions {
        display: flex;
        flex-direction: row; 
        justify-content: center;
        align-items: center;
        gap: 15px; 
        margin-top: 20px;
        width: 100%;
    }

    .btn-text-link { font-size: 14px !important; }
    .btn-gold-solid { font-size: 14px !important; padding: 10px 20px !important; }

    /* FOOTER MÓVIL */
    .site-footer { padding-top: 50px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .brand-col { align-items: center; }
    .footer-logo-container { height: auto; margin-bottom: 15px; }
    .footer-logo { position: static; height: auto; max-width: 180px; transform: none; }
    .footer-phone { margin-top: 10px; margin-left: 0 !important; font-size: 20px; }
    .footer-social { justify-content: center; padding-bottom: 20px; }
    .footer-bottom-content { gap: 10px; }
}

/* =========================================================
   RESPONSIVE: TABLETS Y SURFACE PRO VERTICAL (768px a 1024px)
   ========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar { padding: 0 20px; height: 100px; }
    .nav-links { gap: 20px; }
    .nav-links li a { font-size: 13px; }
    
    .btn-top-contact { font-size: 12px; padding: 8px 16px; margin-right: 10px; }
    
    .hero-content { 
        margin-left: 0 !important; 
        max-width: 100% !important; 
        padding-top: 100px !important; 
        justify-content: center !important; 
        align-items: center !important;
    }
    
    /* 🔥 CORRECCIÓN CRÍTICA DE LA SURFACE PRO: Añadido "left: 0" para que no se desborde 🔥 */
    .hero-main-logo { 
        position: relative !important; 
        top: 0 !important; 
        left: 0 !important; 
        transform: none !important; 
        width: 100% !important; 
        max-width: 450px !important; 
        margin-bottom: 15px !important; 
        margin-top: 0 !important;
    }
    
    .hero-title { font-size: 40px !important; margin-top: 0 !important; }
    .hero-subtitle { font-size: 15px !important; max-width: 500px !important; margin: 0 auto !important; }

    .hero-bottom-actions { margin-top: 25px; gap: 20px; display: flex; justify-content: center; width: 100%; }
    .btn-text-link { font-size: 14px; }
    .btn-gold-solid { font-size: 14px; padding: 10px 25px; }

    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { height: 220px; left: 50%; top: 60%; }
    .footer-phone { margin-left: 0; font-size: 20px; text-align: center; width: 100%; }
}

/* =========================================================
   RESPONSIVE: LAPTOPS Y SURFACE PRO HORIZONTAL (1025px a 1600px)
   ========================================================= */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
    .navbar { padding: 0 4%; }
    .nav-links { gap: 30px; }
    
    .btn-top-contact { font-size: 12px; padding: 10px 20px; }
    
    .hero-content { 
        margin-left: 5% !important; 
        max-width: 600px !important; 
        padding-top: 40px !important; 
        justify-content: center !important; 
    }
    
    .hero-main-logo { 
        position: relative !important; 
        top: 0 !important; 
        left: 0 !important; 
        transform: none !important; 
        width: 120% !important; 
        max-width: 650px !important; 
        margin-bottom: 10px !important; 
        margin-top: 0 !important; 
    }
    
    .hero-title { 
        margin-top: 0 !important; 
        font-size: 32px !important; 
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .hero-bottom-actions { margin-top: 25px; gap: 25px; }
    .btn-text-link { font-size: 15px; }
    .btn-gold-solid { font-size: 15px; padding: 10px 30px; }

    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { 
        height: 260px; 
        left: 50%; 
        top: 60%; 
        /* SOLUCIÓN: Evita que la imagen del logo bloquee los clicks de los enlaces en laptops */
        pointer-events: none; 
    }
    .footer-phone { margin-left: 0; font-size: 22px; text-align: center; width: 100%; }
    
    /* Aseguramos que los links estén por encima y reciban el click */
    .footer-links a, .social-icon {
        position: relative;
        z-index: 60;
    }
}

/* =========================================================
   RESPONSIVE: PANTALLAS CHATAS HORIZONTALES (ej. 1280x800)
   ========================================================= */
@media screen and (min-device-width: 1024px) and (max-device-width: 1280px) and (orientation: landscape) {
    .navbar { height: 80px; }
    .hero-content { padding-top: 20px !important; }
    
    .hero-main-logo { 
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        max-width: 400px !important; 
        margin-bottom: 5px !important; 
    }
    .hero-title { font-size: 36px !important; margin-bottom: 10px !important; }
    .hero-subtitle { font-size: 14px !important; }
    
    .hero-bottom-actions { margin-top: 15px; gap: 20px; }
    .btn-gold-solid { padding: 8px 25px; }
    
    .footer-logo { height: 200px; top: 50%; left: 50%; }
    .footer-phone { margin-left: 0 !important; text-align: center; font-size: 18px; margin-top: 20px; }
    .footer-top { gap: 15px; }
}