/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --primary-color: #FFD700;
    --primary-dark: #FFC700;
    --secondary-color: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ── RESET CRÍTICO ANTI-DESBORDAMIENTO ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Evita que cualquier elemento rompa el ancho */
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    /* Bloquea scroll horizontal en toda la página */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    background: var(--white);
    line-height: 1.6;
    /* Doble protección contra desbordamiento horizontal */
    overflow-x: hidden;
    width: 100%;
    padding-top: 69px;
    /* Importante: sin position: relative aquí para no crear contexto que confunda fixed */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    /* Evita que títulos largos desborden */
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100% puede desbordar si hay scroll en body — usamos 100vw con overflow hidden */
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.7);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    max-width: 1400px;
    width: 100%;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
    /* Evita que el logo crezca más de lo necesario */
    flex-shrink: 0;
}

.logo:hover { transform: translateX(5px); }

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.logo:hover .logo-img {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transform: rotate(360deg) scale(1.1);
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

/* ── Navegación desktop ── */
.nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav li {
    position: relative;
    animation: fadeInDown 0.5s ease-out;
    animation-fill-mode: both;
}

.nav li:nth-child(1) { animation-delay: 0.1s; }
.nav li:nth-child(2) { animation-delay: 0.15s; }
.nav li:nth-child(3) { animation-delay: 0.2s; }
.nav li:nth-child(4) { animation-delay: 0.25s; }
.nav li:nth-child(5) { animation-delay: 0.3s; }
.nav li:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav a:hover { color: #FFD700; }
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: #FFD700; }

/* ── Botón Regístrate ── */
.btn-register {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #000000 !important;
    padding: 10px 28px !important;
    border-radius: 25px;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-register:hover::before { width: 300px; height: 300px; }

.btn-register:hover {
    background: linear-gradient(135deg, #FFC700 0%, #FFB700 100%);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.btn-register::after { display: none !important; }

/* ── Menú Toggle (hamburguesa) ── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    z-index: 1002;
    position: relative;
    /* Área táctil generosa para móviles */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle:hover {
    color: #FFD700;
    transform: scale(1.1);
}

/* ==========================================
   USER MENU DROPDOWN (desktop)
   ========================================== */
.user-menu {
    position: relative;
    list-style: none;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
    /* Área táctil */
    min-height: 44px;
}

.user-avatar:hover { background: rgba(255, 255, 255, 0.28); }
.user-avatar i.fa-chevron-down { font-size: 0.75rem; }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    min-width: 230px;
    z-index: 2000;
    overflow: hidden;
    animation: fadeDropdown 0.2s ease;
}

@keyframes fadeDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown.active { display: block; }

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.dropdown-header .avatar-icon {
    font-size: 2.2rem;
    color: #aaa;
}

.dropdown-header strong {
    display: block;
    color: #222;
    font-size: 0.92rem;
    font-weight: 600;
}

.dropdown-header small {
    color: #888;
    font-size: 0.78rem;
}

.dropdown-header small.admin-badge {
    color: #b8860b;
    font-weight: 600;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.2s;
    min-height: 44px;
}

.user-dropdown a i { width: 16px; text-align: center; color: #666; }
.user-dropdown a:hover { background: #f5f5f5; }
.dropdown-divider { height: 1px; background: #eee; margin: 0; }

.user-dropdown a.logout-link { color: #dc3545; }
.user-dropdown a.logout-link i { color: #dc3545; }
.user-dropdown a.logout-link:hover { background: #fff5f5; }

.user-dropdown a.admin-link { color: #b8860b; }
.user-dropdown a.admin-link i { color: #b8860b; }
.user-dropdown a.admin-link:hover { background: #fffbf0; }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* overflow hidden dentro del hero evita que elementos absolutos desborden */
    overflow: hidden;
    width: 100%;
}

.hero-background-carousel {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.background-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}

.background-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.particles-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatUp 15s infinite ease-in-out;
    will-change: transform, opacity;
}

.particle-sm { width: 8px;  height: 8px; }
.particle-md { width: 12px; height: 12px; }
.particle-lg { width: 16px; height: 16px; }

@keyframes floatUp {
    0%   { transform: translateY(0) scale(1) rotate(0deg);      opacity: 0.15; }
    25%  { opacity: 0.3; }
    50%  { transform: translateY(-50vh) scale(0.8) rotate(180deg); opacity: 0.25; }
    75%  { opacity: 0.2; }
    100% { transform: translateY(-100vh) scale(0.5) rotate(360deg); opacity: 0; }
}

.hero-wrapper {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-left { animation: fadeInLeft 1s ease-out; }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: var(--transition-bounce);
    animation: slideInRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 0.3s;
    animation-fill-mode: both;
    /* Evita desborde en pantallas pequeñas */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-100px) scale(0.8); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.hero-badge i {
    font-size: 16px;
    animation: rotate 2s linear infinite;
    flex-shrink: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
    word-break: break-word;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    50%       { text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.4); }
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 4px;
    background: var(--primary-color);
    animation: expandWidth 1s ease-out forwards;
    animation-delay: 1s;
}

@keyframes expandWidth { to { width: 100%; } }

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    text-align: justify;
}

.hero-quick-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.quick-feature:nth-child(1) { animation-delay: 0.7s; }
.quick-feature:nth-child(2) { animation-delay: 0.8s; }
.quick-feature:nth-child(3) { animation-delay: 0.9s; }
.quick-feature:nth-child(4) { animation-delay: 1s; }

.feature-icon {
    width: 50px; height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    transition: var(--transition-bounce);
    flex-shrink: 0;
}

.quick-feature:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 25px rgba(255,215,0,0.6);
}

.quick-feature span {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.hero-location-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    margin-bottom: 30px;
    font-size: 15px;
    background: rgba(255,215,0,0.15);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,215,0,0.3);
    font-weight: 500;
    animation: fadeInUp 1s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
    transition: var(--transition);
    max-width: 100%;
}

.hero-location-info:hover {
    background: rgba(255,215,0,0.25);
    border-color: rgba(255,215,0,0.5);
    transform: translateY(-2px);
}

.hero-location-info i {
    color: var(--primary-color);
    font-size: 18px;
    animation: bounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
    animation-delay: 1.1s;
    animation-fill-mode: both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,215,0,0.7);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-outline:hover::before { left: 100%; }
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.hero-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-bounce);
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
    white-space: nowrap;
}

.contact-item:nth-child(1) { animation-delay: 1.3s; }
.contact-item:nth-child(2) { animation-delay: 1.4s; }
.contact-item i { color: var(--primary-color); font-size: 20px; transition: var(--transition); flex-shrink: 0; }
.contact-item:hover { background: rgba(255,215,0,0.2); transform: translateY(-5px) scale(1.05); }
.contact-item:hover i { transform: scale(1.2) rotate(10deg); }
.contact-item.whatsapp:hover { background: rgba(37,211,102,0.2); }
.contact-item.whatsapp:hover i { color: #25D366; }

/* Hero Right */
.hero-right {
    position: relative;
    animation: fadeInRight 1s ease-out;
    /* Evita desborde de elementos decorativos */
    overflow: hidden;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-image-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    width: 100%;
}

.hero-image-main:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.hero-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-main:hover img { transform: scale(1.05); }

.floating-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
    /* Asegura que no salga del contenedor */
    max-width: calc(100% - 40px);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-15px) rotate(2deg); }
}

.floating-badge:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.badge-stars { color: var(--primary-color); font-size: 14px; margin-bottom: 5px; }
.badge-stars i { display: inline-block; animation: starPulse 1.5s ease-in-out infinite; }
.badge-stars i:nth-child(1) { animation-delay: 0s; }
.badge-stars i:nth-child(2) { animation-delay: 0.1s; }
.badge-stars i:nth-child(3) { animation-delay: 0.2s; }
.badge-stars i:nth-child(4) { animation-delay: 0.3s; }
.badge-stars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.2); opacity: 0.8; }
}

.badge-text { font-size: 12px; font-weight: 600; color: var(--secondary-color); }

.info-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: var(--primary-color);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    animation: slideInUp 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    transition: var(--transition-bounce);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.info-badge:hover { transform: scale(1.08) rotate(-2deg); box-shadow: 0 10px 35px rgba(0,0,0,0.3); }
.info-badge-content h3 { font-size: 28px; color: var(--secondary-color); margin-bottom: 5px; }
.info-badge-content p  { font-size: 14px; color: var(--secondary-color); opacity: 0.8; }

.hero-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.thumbnail {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-bounce);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    min-width: 0; /* Permite que flex-shrink funcione bien */
}

.thumbnail:nth-child(1) { animation-delay: 0.8s; }
.thumbnail:nth-child(2) { animation-delay: 0.9s; }
.thumbnail:nth-child(3) { animation-delay: 1s; }

.thumbnail.active { border-color: var(--primary-color); box-shadow: 0 0 20px rgba(255,215,0,0.5); }
.thumbnail:hover { transform: translateY(-10px) scale(1.05); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.thumbnail img { width: 100%; height: 100px; object-fit: cover; display: block; transition: var(--transition-smooth); }
.thumbnail:hover img { transform: scale(1.1); filter: brightness(1.1); }

.decorative-element {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
    animation: breathe 4s ease-in-out infinite;
    /* Clave: no deja que salga del contenedor */
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% { transform: scale(1);   opacity: 0.1; }
    50%       { transform: scale(1.1); opacity: 0.15; }
}

.element-1 { width: 200px; height: 200px; top: -50px; right: -50px; animation-delay: 0s; }
.element-2 { width: 150px; height: 150px; bottom: -30px; left: -30px; animation-delay: 1s; }

/* Overlay menú móvil */
.menu-overlay {
    position: fixed;
    top: 69px; left: 0;
    width: 100%;
    height: calc(100vh - 69px);
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .header .container { padding: 12px 25px; }
    .nav ul { gap: 30px; }
    .hero-title { font-size: 44px; }
}

/* ==========================================
   RESPONSIVE — MÓVIL GRANDE (≤ 968px)
   Aquí empieza el menú hamburguesa
   ========================================== */
@media (max-width: 968px) {

    /* ── Mostrar hamburguesa ── */
    .menu-toggle {
        display: flex;
    }

    /* ── Header container: logo + hamburguesa ── */
    .header .container {
        padding: 10px 16px;
        /* Sin gap excesivo — logo a la izquierda, toggle a la derecha */
        gap: 12px;
    }

    .logo span { font-size: 20px; }
    .logo-img  { width: 42px; height: 42px; }

    /* ── NAV MÓVIL: Panel full-screen centrado ── */
    .nav {
        position: fixed;
        top: 69px;
        left: 0;
        right: 0;
        width: 100%;        /* Exactamente el viewport */
        height: calc(100vh - 69px);
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden; /* Bloquea scroll horizontal dentro del menú */
        transform: translateY(-110%);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        /* Importante: no añade al ancho del body */
        margin: 0;
    }

    .nav.active {
        transform: translateY(0);
    }

    /* Lista centrada */
    .nav ul {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 0;
    }

    .nav li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.35s ease;
    }

    .nav.active li { opacity: 1; transform: translateY(0); }
    .nav.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav.active li:nth-child(2) { transition-delay: 0.10s; }
    .nav.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav.active li:nth-child(4) { transition-delay: 0.20s; }
    .nav.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav.active li:nth-child(6) { transition-delay: 0.30s; }

    /* Links centrados */
    .nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 17px;
        font-weight: 500;
        border-radius: 12px;
        transition: all 0.25s ease;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav a::after { display: none; }

    .nav a:hover,
    .nav a.active {
        background: rgba(255, 215, 0, 0.12);
        color: #FFD700;
    }

    /* Botón Regístrate en menú móvil */
    .btn-register {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 12px;
        margin-top: 6px;
    }

    /* ── User menu en móvil: sin flotante ── */
    .user-menu { width: 100%; }

    .user-avatar {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        min-height: 48px;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        margin-top: 6px;
        animation: none;
    }

    .user-dropdown.active { display: block; }

    .dropdown-header {
        background: rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-header strong { color: #fff; }
    .dropdown-header small  { color: rgba(255,255,255,0.6); }

    .user-dropdown a {
        color: rgba(255, 255, 255, 0.85);
        padding: 13px 16px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .user-dropdown a i { color: rgba(255,255,255,0.5); }
    .user-dropdown a:hover { background: rgba(255, 215, 0, 0.1); color: #FFD700; }
    .dropdown-divider { background: rgba(255,255,255,0.1); }

    .user-dropdown a.logout-link { color: #ff7b7b; }
    .user-dropdown a.logout-link i { color: #ff7b7b; }
    .user-dropdown a.logout-link:hover { background: rgba(220,53,69,0.15); }
    .user-dropdown a.admin-link { color: #FFD700; }
    .user-dropdown a.admin-link i { color: #FFD700; }
    .user-dropdown a.admin-link:hover { background: rgba(255,215,0,0.1); }

    /* ── Hero: columna única ── */
    .hero {
        padding-top: 69px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 16px;
    }

    .hero-left { text-align: center; }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title { font-size: 32px; }

    .hero-description { font-size: 15px; }

    .hero-quick-features {
        justify-content: center;
        gap: 12px;
    }

    .hero-location-info {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-contact {
        justify-content: center;
        gap: 12px;
    }

    .hero-image-main img { height: 320px; }

    .info-badge {
        padding: 14px 20px;
    }

    .info-badge-content h3 { font-size: 22px; }
    .info-badge-content p  { font-size: 12px; }

    /* Reducir animaciones flotantes en móvil (rendimiento) */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50%       { transform: translateY(-8px); }
    }
}

/* ==========================================
   RESPONSIVE — MÓVIL REDMI 11 (≤ 720px)
   Pantalla: 720 × 1600 px
   ========================================== */
@media (max-width: 720px) {

    body { padding-top: 60px; }

    .header { min-height: 60px; }

    .header .container {
        padding: 8px 14px;
        min-height: 60px;
    }

    .menu-overlay { top: 60px; height: calc(100vh - 60px); }
    .nav { top: 60px; height: calc(100vh - 60px); }

    .logo-img  { width: 38px; height: 38px; border-width: 2px; }
    .logo span { font-size: 18px; }
    .menu-toggle { font-size: 22px; }

    /* Hero */
    .hero { padding-top: 60px; }

    .hero-wrapper {
        gap: 24px;
        padding: 20px 14px 36px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 18px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .hero-quick-features {
        gap: 8px;
        margin-bottom: 20px;
    }

    .quick-feature {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .quick-feature span { font-size: 11px; }

    .hero-location-info {
        font-size: 13px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .hero-actions { gap: 10px; margin-bottom: 20px; }

    .btn-primary,
    .btn-outline {
        padding: 13px 20px;
        font-size: 14px;
        border-radius: 40px;
    }

    .hero-contact { gap: 10px; }

    .contact-item {
        padding: 9px 16px;
        font-size: 13px;
    }

    .contact-item i { font-size: 17px; }

    .hero-image-main img { height: 240px; }

    .floating-badge {
        top: 12px;
        left: 12px;
        padding: 10px 14px;
        border-radius: 10px;
        max-width: calc(100% - 24px);
    }

    .badge-text { font-size: 10px; }
    .badge-stars { font-size: 11px; }

    .info-badge {
        bottom: 12px;
        right: 12px;
        padding: 10px 16px;
        border-radius: 10px;
    }

    .info-badge-content h3 { font-size: 18px; }
    .info-badge-content p  { font-size: 11px; }

    .hero-thumbnails { gap: 8px; margin-top: 12px; }

    .thumbnail img { height: 65px; }

    /* Menú móvil ajustado al Redmi */
    .nav ul { max-width: 300px; }

    .nav a { font-size: 16px; padding: 13px 16px; }

    .btn-register {
        font-size: 15px !important;
        padding: 13px 16px !important;
    }

    .user-avatar {
        font-size: 15px;
        padding: 13px 16px;
    }
}

/* ==========================================
   RESPONSIVE — MÓVIL MUY PEQUEÑO (≤ 380px)
   ========================================== */
@media (max-width: 380px) {

    .logo span { font-size: 16px; }
    .logo-img  { width: 34px; height: 34px; }

    .hero-title { font-size: 22px; }
    .hero-description { font-size: 13px; }

    .hero-image-main img { height: 200px; }

    .thumbnail img { height: 55px; }

    .nav a { font-size: 15px; padding: 12px 14px; }
}

/* ==========================================
   UTILIDADES ANTI-DESBORDAMIENTO GLOBAL
   ========================================== */

/* Cualquier elemento con posición absoluta/fixed dentro de contenedores
   que no tenga overflow:hidden puede desbordar. Esta regla defensiva
   previene el caso más común */
section, main, footer, article, aside {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Evita que tablas rompan el layout */
table {
    width: 100%;
    table-layout: fixed;
    overflow-x: auto;
    display: block;
}

/* Evita que texto muy largo desborde */
p, span, li, td, th {
    overflow-wrap: break-word;
    word-break: break-word;
}