/* --- VARIABLES Y RESET --- */
:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --gold: #C5A059;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Navbar compensación */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold { color: var(--gold); }

.btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    background: rgba(197, 160, 89, 0.05);
    transition: var(--transition);
    margin-top: 20px;
}

.btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.3);
}

.btn-gold {
    background: var(--gold);
    color: #000;
}
.btn-gold:hover {
    background: transparent;
    color: var(--gold);
}

/* --- NAVBAR SUPERIOR --- */
#navbar {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-logo svg {
    height: 40px;
    width: auto;
}

.nav-menu { display: flex; gap: 30px; }

.nav-menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 80%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(197, 160, 89, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content { z-index: 2; max-width: 900px; }

.main-logo-hero {
    width: 180px;
    margin: 0 auto 2rem auto;
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero .slogan {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero .slogan span {
    color: var(--text-main);
    font-weight: 400;
    border-bottom: 1px solid var(--gold);
}

/* --- INTRO --- */
.intro {
    padding: 80px 0;
    background: #0a0a0a;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.intro p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    color: #ddd;
    line-height: 1.8;
}

/* --- CARRUSEL --- */
.gallery {
    padding: 80px 0;
    background: #080808;
    position: relative;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    aspect-ratio: 16/9;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.carousel-slide:hover img { filter: brightness(1); }

.slide-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--gold);
    font-weight: 300;
    letter-spacing: 1px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--gold);
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover { background: var(--gold); color: #000; }
.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-dot.active { background: var(--gold); }

/* --- PORTAFOLIO / SERVICIOS --- */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.section-title { text-align: center; margin-bottom: 60px; }

.section-title h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: var(--gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.1);
    height: 450px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item:hover .portfolio-image { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

.portfolio-overlay h3 { font-size: 1.4rem; color: var(--gold); margin-bottom: 5px; }
.portfolio-overlay p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }

.hidden-data { display: none; }

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show { display: flex; opacity: 1; }

.modal-content {
    background: #111;
    border: 1px solid var(--gold);
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.15);
    position: relative;
    animation: modalSlide 0.4s ease;
}

.modal-image-container { flex: 1 1 400px; height: 400px; }
.modal-image-container img { width: 100%; height: 100%; object-fit: cover; }

.modal-text {
    flex: 1 1 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-text p { color: #ccc; margin-bottom: 30px; font-weight: 300; }

.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover { color: var(--gold); }

@keyframes modalSlide {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- FOOTER --- */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #050505;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .slogan { font-size: 1.1rem; }
    .intro p { font-size: 1.1rem; padding: 0 15px; }
    .carousel-btn { font-size: 1.5rem; padding: 5px 10px; }
    .nav-menu { display: none; }
    .nav-logo { margin: 0 auto; }
    .portfolio-item { height: 350px; }
    .modal-image-container { height: 250px; }
    .modal-text h3 { font-size: 1.5rem; }
}