:root {
    --navy-deep: #0d1220;
    --navy-dark: #131929;
    --navy-mid: #1a2340;
    --navy-light: #1f2d50;
    --navy-card: #162035;
    --gold: #c9a84c;
    --gold-light: #e2c278;
    --gold-dim: #8a6d2f;
    --cream: #f5f0e8;
    --cream-dim: #d4cfc5;
    --white: #ffffff;
    --text-muted: #8899bb;
    --border: rgba(201, 168, 76, 0.18);
    --border-light: rgba(201, 168, 76, 0.08);
    --red: #c0392b;
    --green: #2ecc71;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Raleway", sans-serif;
    background-color: var(--navy-deep);
    color: var(--cream);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: "Cinzel", serif;
    letter-spacing: 1.5px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

/* ─── NAV ─── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 18, 32, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
}

.logo-text {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-sub {
    font-family: "Raleway", sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--cream-dim);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

/* ========== BOTÓN DE LOGIN ========== */
.nav-link-login {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem !important;
    background: var(--gold);
    color: var(--navy-deep) !important;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-link-login:hover {
    background: var(--gold-light);
    color: var(--navy-deep) !important;
    transform: translateY(-2px);
}

/* ========== MENÚ DE USUARIO AUTENTICADO ========== */
.user-menu-container {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cream-dim);
    transition: var(--transition);
}

.user-btn:hover {
    background: rgba(201, 168, 76, 0.25);
    color: var(--gold);
    border-color: var(--gold-dim);
}

.user-btn i {
    font-size: 0.8rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--navy-dark);
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown .logout-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.user-dropdown i {
    width: 20px;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(13, 18, 32, 0.35) 0%,
            rgba(13, 18, 32, 0.7) 60%,
            var(--navy-deep) 100%
        ),
        url("https://images.unsplash.com/photo-1604537529428-15bcbeecfe4d?auto=format&fit=crop&w=2069&q=80")
            center/cover no-repeat;
}

/* gold particles overlay */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 30% 50%,
            rgba(201, 168, 76, 0.07) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 70% 30%,
            rgba(201, 168, 76, 0.05) 0%,
            transparent 50%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--border);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--gold);
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
    margin: 1.5rem auto;
}

.hero p {
    font-size: 1.05rem;
    color: var(--cream-dim);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

/* ─── STAT BAR ─── */
.stat-bar {
    background: var(--navy-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--border-light);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: "Cinzel", serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ─── SECTIONS ─── */
section {
    padding: 90px 0;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    font-size: 0.68rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.section-tag::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--white);
    font-weight: 700;
}

.section-header h2 span {
    color: var(--gold);
}

.section-desc {
    color: var(--text-muted);
    max-width: 560px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ─── ABOUT ─── */
#sobre-nosotros {
    background: var(--navy-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--cream-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.values-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2.5rem;
}

.value-card {
    background: var(--navy-mid);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.3s;
}

.value-card:hover {
    background: var(--navy-light);
}

.value-card i {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(0.75) sepia(0.15);
}

.about-image::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: -1;
}

.about-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(13, 18, 32, 0.6), transparent);
    border-radius: 0 0 6px 6px;
}

/* ─── SERVICES ─── */
#servicios {
    background: var(--navy-deep);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.service-card {
    background: var(--navy-card);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    background: var(--navy-mid);
}

.service-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
}

.service-card h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── SPACES ─── */
#espacios {
    background: var(--navy-dark);
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.space-card {
    position: relative;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.space-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) sepia(0.2);
    transition:
        transform 0.5s,
        filter 0.4s;
}

.space-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.4) sepia(0.3);
}

.space-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(
        to top,
        rgba(13, 18, 32, 0.95) 0%,
        transparent 100%
    );
}

.space-info h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.space-info p {
    font-size: 0.82rem;
    color: var(--cream-dim);
}

.space-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--border);
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* ─── BENEFITS ─── */
#beneficios {
    background: var(--navy-deep);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--navy-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.benefit-card i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.benefit-card h3 {
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 0.7rem;
}

.benefit-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── GALLERY ─── */
#galeria {
    background: var(--navy-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) sepia(0.1);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.5) sepia(0.2);
}

.gallery-item::after {
    content: "\f065";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--gold);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ─── FAQ ─── */
#faq {
    background: var(--navy-deep);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-card {
    background: var(--navy-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 2rem;
    transition: border-color 0.3s;
}

.faq-card:hover {
    border-color: var(--gold-dim);
}

.faq-card h3 {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.faq-card h3 span {
    color: var(--gold-dim);
    font-size: 0.8rem;
    margin-top: 1px;
}

.faq-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── CONTACT ─── */
#contacto {
    background: var(--navy-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
}

.contact-item-text strong {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item-text p {
    font-size: 0.88rem;
    color: var(--cream-dim);
}

.contact-form {
    background: var(--navy-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--navy-mid);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    color: var(--cream);
    font-family: "Raleway", sans-serif;
    font-size: 0.88rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--navy-dark);
}

.map-wrap {
    margin-top: 2rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    height: 250px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.5) invert(0.9) contrast(0.85) hue-rotate(180deg)
        brightness(0.7);
}

/* ─── FOOTER ─── */
footer {
    background: var(--navy-dark);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-row {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.83rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--cream);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stat-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .spaces-grid,
    .faq-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .values-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a,
    .nav-link-login,
    .user-btn {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .stat-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Dropdown móvil */
    .user-menu-container {
        width: 100%;
    }

    .user-dropdown {
        position: static;
        margin-top: 0.5rem;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .user-dropdown.show {
        display: block;
    }
}
