/* Header & Navbar */
/* Header & Navbar (Sombreado oscuro eliminado) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar .logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Control del tamaño del logo */
.logo img {
    max-height: 80px; /* Limita el tamaño del logo */
    width: auto;
    border-radius: 50%; /* Opcional: redondea el fondo blanco cuadrado de la imagen */
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navbar al hacer scroll (se mantiene igual para el fondo blanco) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 10px 8%;
}

.navbar.scrolled .logo img {
    max-height: 60px; /* Se reduce un poco más al hacer scroll para mayor elegancia */
}

.navbar.scrolled .logo {
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled .logo-fallback {
    color: var(--dark-color);
}

.navbar.scrolled .nav-links a {
    color: var(--dark-color);
    text-shadow: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #ffffff;
    font-weight: 600; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navegación - Estilo Index */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.logo img, .logo-fallback {
    max-height: 70px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 15px 8%;
}

.navbar.scrolled .logo img {
    max-height: 60px;
}

.navbar.scrolled .logo-fallback {
    color: var(--dark-color, #1a1a1a);
}

.navbar.scrolled .nav-links a {
    color: var(--dark-color, #333333);
    text-shadow: none;
}

/* Hero Contacto */
.contacto-hero {
    position: relative;
    height: 100vh !important;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: url('../assets/img/fondo/image6.png') center/cover no-repeat;
    color: #ffffff;
    margin-top: 0 !important;
}


.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contacto-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.contacto-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9); /* Sombra oscura y amplia */
}

.contacto-hero p {
    font-size: 1.15rem;
    font-weight: 500; /* Darle un poco más de peso a la fuente ayuda */
    opacity: 1; /* Subir opacidad al 100% */
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

/* Contenido Principal */
.contacto-main {
    padding: 80px 0;
    background-color: var(--light-bg, #fdf7f0);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.contacto-info h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contacto-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.social-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.social-links-lg {
    display: flex;
    gap: 15px;
}

.social-links-lg a {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links-lg a:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

/* Formulario */
.contacto-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contacto-form-container h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
    background-color: #f9f9f9;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 110, 30, 0.15);
}

.w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Mapa */
.mapa-section {
    background-color: var(--light-bg, #fdf7f0);
    padding-bottom: 80px;
}

.map-container-large iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FONDO VERTICAL (9:16) SOLO PARA CONTACTO MÓVIL
========================================= */
@media (max-width: 768px) {
    /* Asegúrate de que .contacto-hero sea la clase que envuelve la cabecera de contacto */
    .contacto-hero {
        /* Cambia 'contacto-movil.png' por el nombre real de tu imagen recortada */
        background-image: url('../assets/img/fondo/image6-1.png') !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    /* Opcional: Si quieres reducir el desenfoque en la capa negra de contacto igual que en el index */
    .contacto-hero .hero-overlay {
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        background: rgba(0, 0, 0, 0.4) !important; 
    }
}

/* =========================================
   CONTROL DE DESENFOQUE EN CELULARES
========================================= */
@media (max-width: 768px) {
    .hero-overlay {
        /* Cambia el "2px" por "0px" si quieres quitarlo por completo */
        backdrop-filter: blur(1px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        
        /* Opcional: Si también quieres que la capa negra sea más transparente */
        background: rgba(0, 0, 0, 0.4) !important; 
    }
}