/* Variables - Ultra Modern Dark Theme */
:root {
    --primary-color: #e8364d;
    --primary-gradient: linear-gradient(135deg, #ff4757, #ff7a8a);
    --bg-color: #0a0a0c;
    --surface-color: #14151a;
    --surface-light: #1c1e26;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(10, 10, 12, 0.75);
    --glass-border: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-muted);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Helper */
.text-primary {
    color: var(--primary-color);
}
.mt-3 {
    margin-top: 1.5rem;
}

/* Typography Modernization */
h1, h2, h3, h4 {
    color: var(--text-color);
    font-weight: 600;
}

/* Header & Navbar - Sleek Glassmorphism */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-bottom: 1px solid transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    max-width: 100%;
    margin: auto;
}

.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), rgba(10, 10, 12, 1)), url('https://images.unsplash.com/photo-1543007630-9710e4a00a20?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    margin-top: -50px;
}

.hero-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 7.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    background: var(--surface-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(232, 54, 77, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.scroll-down a:hover {
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Sections */
.section {
    padding: 7rem 5%;
    position: relative;
}

.bg-dark {
    background-color: var(--surface-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Modern Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--surface-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 25px 50px rgba(232, 54, 77, 0.15);
}

.card-img-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.5) 50%, transparent 100%);
    transition: opacity 0.5s ease;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card:hover .card-img-wrapper::after {
    opacity: 0.9;
}

.card-content {
    padding: 2.5rem;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    letter-spacing: 0.5px;
}

.card h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.card p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    opacity: 0.85;
    transition: all 0.4s ease;
}

.card:hover p {
    color: #fff;
    opacity: 1;
}

/* Keep Dark Card specific for backwards compatibility */
.dark-card {
    background: var(--bg-color);
}
.dark-card .card-img-wrapper::after {
    background: linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.7) 60%, transparent 100%);
}

/* Ambiente Section Modern Layout */
.ambiente-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.ambiente-text {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.8;
}

.ambiente-text strong {
    color: var(--text-color);
}

.ambiente-img {
    flex: 1.2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.ambiente-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    filter: brightness(0.9) contrast(1.1);
}

.ambiente-img:hover img {
    transform: scale(1.05);
}

/* Contacto Section */
.contacto-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.contacto-info {
    flex: 1;
}

.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contacto-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.info-list li i {
    width: 45px;
    height: 45px;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-list li:hover i {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(232, 54, 77, 0.4);
}

.contacto-mapa {
    flex: 1.2;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    background: var(--surface-light);
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 5rem 5% 2rem;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    color: var(--text-muted);
}

.footer-address {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--surface-color);
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.footer-address i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    margin: 2.5rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(232, 54, 77, 0.4);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .ambiente-flex, .contacto-flex {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contacto-mapa {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        justify-content: center;
    }
    .nav-item {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.8rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: clamp(5.5rem, 18vw, 7rem);
    }
    
    .section {
        padding: 5rem 5%;
    }
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--glass-border);
}

.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lang-link:hover, .lang-link.active {
    color: var(--primary-color);
}



@media (max-width: 768px) {
    .lang-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 1rem;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .lang-link {
        font-size: 1.2rem;
        padding: 8px 12px;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
    }
    
    .lang-link.active {
        background: var(--primary-gradient);
        color: #fff;
        border-color: transparent;
    }

    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
        background-attachment: scroll;
        background-position: center;
    }
    
    .hero-content {
        margin-top: 2rem;
    }
}


html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}
/* Carousel Gallery */
.galeria-section {
    padding: 3rem 0;
    background: var(--surface-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: slide-carousel 25s linear infinite;
    gap: 20px;
    padding: 0 10px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track img {
    height: 300px;
    width: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

@keyframes slide-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

@media (max-width: 768px) {
    .carousel-track img {
        height: 200px;
        width: 280px;
    }
}

/* Centered Navigation for Desktop */
@media (min-width: 769px) {
    .navbar {
        justify-content: center;
        position: relative;
        min-height: 5.5rem;
    }
    .nav-logo {
        position: absolute;
        left: 4%;
        top: 50%;
        transform: translateY(-50%);
    }
    .lang-selector {
        position: absolute;
        right: 4%;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

/* Logo Icon Styling */
.logo-icon {
    height: 1.2em;
    margin-right: 12px;
}

/* Mobile Menu Logo Injection */
.mobile-logo-item {
    display: none;
}
@media (max-width: 768px) {
    .mobile-logo-item {
        display: block;
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }
}
