/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --bg-dark: #0D0D0D;
    --bg-black: #000000;
    --text-light: #F2F2F2;
    --gold-accent: #C5A059;
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-dark); 
    font-family: var(--font-main); 
    color: var(--text-light); 
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVEGACIÓN (NAVBAR)
   ========================================================================== */
#mainNav {
    transition: all 0.5s ease;
    padding: 25px 0;
    background-color: transparent;
}

/* Estado al hacer scroll */
#mainNav.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    padding: 15px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(10px); /* Efecto Glassmorphism */
}

.nav-link { 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover { 
    color: var(--gold-accent) !important; 
}

.btn-contacto-nav { 
    border: 1px solid var(--text-light); 
    color: white !important; 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    padding: 8px 20px !important; 
    transition: 0.3s;
}

.btn-contacto-nav:hover {
    background-color: var(--gold-accent);
    border-color: var(--gold-accent);
    color: black !important;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero { 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
    display: flex;
    align-items: center;
}

.hero-video { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    min-width: 100%; 
    min-height: 100%; 
    transform: translate(-50%, -50%); 
    filter: brightness(0.4); 
    z-index: 0;
}

.overlay { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle, transparent 0%, var(--bg-dark) 100%); 
    z-index: 1; 
}

.hero .container {
    position: relative;
    z-index: 2; /* Por encima del video y overlay */
}

.main-logo { 
    max-width: 400px; 
    width: 85%; 
    animation: fadeIn 2s ease-in; 
}

/* ==========================================================================
   4. COMPONENTES Y TARJETAS
   ========================================================================== */
section { scroll-margin-top: 80px; }

.section-title { 
    font-weight: 300; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
}

.accent-text { 
    font-family: var(--font-serif); 
    font-style: italic; 
    color: var(--gold-accent); 
}

.title-underline { 
    width: 50px; 
    height: 1px; 
    background: var(--gold-accent); 
    margin: 20px auto; 
}

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

/* Service Cards */
.service-card { 
    transition: 0.3s ease-in-out; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover { 
    border-color: var(--gold-accent) !important; 
    background: rgba(255, 255, 255, 0.05); 
    transform: translateY(-5px);
}

/* Package Cards */
.package-card { 
    transition: 0.4s; 
    background: var(--bg-black); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-package { 
    border-color: var(--gold-accent) !important; 
    transform: scale(1.05); 
    z-index: 2; 
}

.price { 
    font-weight: 600; 
    color: var(--gold-accent); 
    font-size: 3rem; 
    margin: 20px 0; 
}

/* Portfolio Items */
.portfolio-item { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 16/9; 
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item img {
    opacity: 0.8;
    filter: saturate(0.8);
    transition: 0.5s;
}

.portfolio-item:hover img {
    opacity: 1;
    filter: saturate(1.1);
}

.portfolio-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: 0.5s; 
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ==========================================================================
   5. FORMULARIOS (MEJORADO)
   ========================================================================== */
.form-control, .form-select {
    background-color: transparent !important;
    color: white !important;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
}

/* Solución para la visibilidad de los Placeholders */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem;
}
/* Prefijos para otros navegadores */
.form-control::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.5); }
.form-control::-moz-placeholder { color: rgba(255, 255, 255, 0.5); }
.form-control:-ms-input-placeholder { color: rgba(255, 255, 255, 0.5); }

.form-control:focus, .form-select:focus { 
    background-color: rgba(255, 255, 255, 0.05) !important; 
    color: white; 
    border-color: var(--gold-accent); 
    box-shadow: none; 
}

.btn-gold { 
    background-color: var(--gold-accent); 
    color: white; 
    border-radius: 0; 
    letter-spacing: 3px; 
    transition: 0.3s;
}

.btn-gold:hover { 
    background-color: #a3854a; 
    color: white; 
}

/* ==========================================================================
   6. UTILIDADES Y ANIMACIONES
   ========================================================================== */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--gold-accent);
    color: black;
    padding: 15px 25px;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.8rem;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.5);
}

.border-gold-glow {
    border: 1px solid var(--gold-accent);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.1);
}

.bg-black { background-color: #000 !important; }

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* ==========================================================================
   7. RESPONSIVO Y CORRECCIÓN DE TÍTULOS
   ========================================================================== */
.responsive-title {
    font-size: clamp(1.4rem, 9vw, 3.8rem); 
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .main-logo { max-width: 300px; }
    .price { font-size: 2.2rem; }
    .featured-package { transform: scale(1); }
    body { padding-top: 0; }
    .hero { height: auto; min-height: 100vh; padding: 100px 0; }
}