/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --navy-dark: #050c1a;
    --navy-medium: #0a192f;
    --accent-blue: #007bff;
    --ice-white: #f8fafc;
    --gold-premium: #d4af37;
    --glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--navy-dark);
    color: var(--ice-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   NAVEGACIÓN Y LOGO
   ========================================= */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 12, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-logo-img {
    height: 45px;
    width: auto;
}

.logo-text .main-title {
    display: block;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.logo-text .slogan {
    font-size: 0.6rem;
    color: var(--gold-premium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* MENÚ ESCRITORIO */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--ice-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link.highlight {
    background: var(--gold-premium);
    color: var(--navy-dark) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 4000;
}

/* =========================================
   ESTRUCTURA DE SECCIONES (TABS)
   ========================================= */
.tab-pane {
    display: none;
    min-height: 100vh;
    padding-top: 100px;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: flex; /* Cambiado a flex para centrar contenido */
    flex-direction: column;
}

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

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 5%;
}

/* =========================================
   HERO / INICIO (BOTONES CORREGIDOS)
   ========================================= */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Para que no se encimen en móviles */
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary { background: var(--accent-blue); color: white; }
.btn-secondary { background: transparent; border: 1px solid white; color: white; }

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,123,255,0.3); }

/* =========================================
   CONTACTO (FORMULARIO CORREGIDO)
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 5px;
    color: white;
    font-family: inherit;
}

/* =========================================
   MOBILE DRAWER (CORREGIDO)
   ========================================= */
@media (max-width: 968px) {
    .mobile-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #081226;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 20px;
        transition: var(--transition);
        border-left: 1px solid var(--gold-premium);
        z-index: 3500;
    }

    .nav-menu.mobile-active { right: 0; }

    .contact-layout { grid-template-columns: 1fr; }
    
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .btn-secondary { margin-left: 0; margin-top: 10px; }
}

/* COMPLEMENTOS */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}