:root {
    --bg-light: #f5f6f8;
    --red-fage: #e50914;
    --red-glow: rgba(229, 9, 20, 0.4);
    --text-dark: #111111;
    --text-muted: #666666;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(220, 225, 230, 0.95);
    --font-main: 'Montserrat', sans-serif;
}

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

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

#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(245, 246, 248, 0.94) 0%, rgba(245, 246, 248, 0.98) 100%);
}

/* ENCABEZADO SUPERIOR CLARO */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    background: rgba(245, 246, 248, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 225, 230, 0.6);
}

.brand-logo {
    display: flex;
    align-items: center;
    z-index: 600;
}

.logo-img {
    height: clamp(34px, 4.5vw, 48px);
    width: auto;
    object-fit: contain;
}

/* NAV ESCRITORIO */
.top-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark) !important;
    font-weight: 800;
}

.btn-glow {
    background-color: var(--red-fage);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 18px var(--red-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(229, 9, 20, 0.7);
}

/* BOTÓN HAMBURGUESA MÓVIL */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    z-index: 600;
    outline: none;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--red-fage);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--red-fage);
}

/* MENÚ DESPLEGABLE MÓVIL FULLSCREEN */
.nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(245, 246, 248, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 550;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 10% 40px 10%;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s ease;
}

.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 0;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--red-fage);
    padding-left: 10px;
}

.mobile-nav-link .nav-num {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.3);
}

.mobile-nav-link:hover .nav-num,
.mobile-nav-link.active .nav-num {
    color: var(--red-fage);
}

/* CONTENEDOR PRINCIPAL */
.contacto-container {
    padding-top: 130px;
    padding-left: 4%;
    padding-right: 4%;
    padding-bottom: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.page-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.red-highlight {
    color: var(--red-fage);
}

.subtitle-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* GRID DE FORMULARIO Y VISTA PREVIA */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 35px;
}

.contact-card, .preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red-fage);
}

/* VISTA PREVIA CHAT */
.preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.whatsapp-icon {
    font-size: 2.2rem;
    color: #25D366;
}

.preview-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
}

.preview-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-bubble {
    background-color: #e7f7ed;
    border: 1px solid #c2ebd0;
    border-radius: 14px;
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1a3c27;
    white-space: pre-wrap;
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 180px;
}

.btn-whatsapp-submit {
    width: 100%;
    padding: 15px;
    font-size: 0.85rem;
}

/* SECCIÓN EXTRA DE UBICACIÓN Y HORARIOS */
.extra-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.info-card, .map-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.info-card h3, .map-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.red-icon {
    color: var(--red-fage);
}

.info-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.info-card p strong {
    color: var(--text-dark);
}

/* FRANJA ROJA DE CONTACTO */
.red-contact-banner {
    background-color: var(--red-fage);
    color: #ffffff;
    border-radius: 12px;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.35);
    flex-wrap: wrap;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    font-size: 2rem;
    color: #ffffff;
}

.banner-icon.circle-icon {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: var(--red-fage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.banner-text {
    font-size: 0.95rem;
    font-weight: 800;
}

.banner-text span {
    max-width: 320px;
    display: block;
    line-height: 1.35;
    font-size: 0.88rem;
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.banner-text a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.banner-text a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ==========================================
   REGLAS RESPONSIVAS
   ========================================== */

@media (max-width: 950px) {
    .top-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-header-cta {
        display: none;
    }

    .contact-grid, .extra-info-grid {
        grid-template-columns: 1fr;
    }

    .red-contact-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .contacto-container {
        padding-top: 100px;
    }

    .contact-card, .preview-card {
        padding: 20px;
    }

    .red-contact-banner {
        padding: 20px;
    }
}