/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --bg: #0a0808;
    --bg-soft: #141010;
    --bg-card: #1a1515;
    --text: #f0ece6;
    --text-dim: #a09890;
    --text-muted: #6a625a;
    --gold: #d4a853;
    --gold-light: #e8c97a;
    --gold-dark: #b8923f;
    --border: #2a2420;
    --shadow: rgba(0,0,0,0.6);
    --sans: 'Inter', sans-serif;
    --display: 'Playfair Display', serif;
    --mono: 'Space Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--bg-soft);
}

.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    border: 1px solid rgba(212, 168, 83, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.title-accent {
    color: var(--gold);
    font-style: italic;
}

.section-desc {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 36, 32, 0.5);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 8, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 15px;
    color: var(--text);
}
.logo-symbol { color: var(--gold); font-size: 20px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links .nav-back {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 13px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px 60px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.08), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 168, 83, 0.05), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--display);
    margin-bottom: 20px;
}
.hero-title-main {
    display: block;
    font-size: clamp(56px, 12vw, 100px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}
.hero-title-sub {
    display: block;
    font-size: clamp(28px, 5vw, 44px);
    color: var(--gold);
    font-style: italic;
    font-weight: 700;
}

.hero-desc {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.hero-social a {
    color: var(--text-dim);
    transition: all var(--transition);
}
.hero-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   GALERÍA
   ============================================ */
.section-header {
    margin-bottom: 48px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(10, 8, 8, 0.9));
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 700;
}
.gallery-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: rgba(10, 8, 8, 0.8);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.gallery-cta {
    margin-top: 32px;
    text-align: center;
}

/* ============================================
   ESTILO / FILOSOFÍA
   ============================================ */
.estilo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.estilo-text {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}
.estilo-text strong { color: var(--text); }

.estilo-list {
    list-style: none;
    margin-top: 24px;
}
.estilo-list li {
    font-size: 15px;
    color: var(--text-dim);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.estilo-list li:last-child { border-bottom: none; }
.estilo-list li::before { content: ''; }

.estilo-placeholder {
    aspect-ratio: 1/1;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
}
.estilo-placeholder p {
    font-size: 14px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .estilo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-top: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.contact-card h4 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}
.contact-card a, .contact-card span {
    font-size: 15px;
    color: var(--text);
}
.contact-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}
.form-group input,
.form-group textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo-symbol {
    font-size: 22px;
    color: var(--gold);
    margin-right: 8px;
}
.footer-brand span {
    font-family: var(--mono);
    font-size: 15px;
}
.footer-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 6px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links a {
    color: var(--text-dim);
    font-size: 14px;
}
.footer-links a:hover { color: var(--text); }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-social a {
    color: var(--text-dim);
    font-size: 14px;
}
.footer-social a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================
   RESPONSIVE EXTRA
   ============================================ */
@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-item {
        aspect-ratio: 3/4;
    }
}

/* ============================================
   TOAST / NOTIFICACIONES
   ============================================ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 14px;
    max-width: 500px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-success {
    background: #1a2e1a;
    border: 1px solid #3ddc97;
    color: #3ddc97;
}

.toast-error {
    background: #2e1a1a;
    border: 1px solid #ff7a59;
    color: #ff7a59;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
}
.toast-close:hover { opacity: 1; }