/* static/css/contacto.css */

/* =========================================
   1. HERO VIP (Sobrio y Elegante)
   ========================================= */
.contacto-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 35vh;
    min-height: 250px;
    margin-top: -2rem;
    margin-bottom: 5rem;
    /* Fondo con luz radial sutil, sin las líneas del home */
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(192, 8, 18, 0.3);
}

.contacto-hero-content {
    text-align: center;
    animation: fadeUp 0.8s ease-out forwards;
}

.contacto-subtitle {
    color: var(--rojo-rvm);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    display: block;
}

.contacto-title {
    font-size: 4rem;
    font-weight: 300;
    /* Letra más fina para dar aspecto premium */
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    margin: 0;
}

.contacto-title span {
    font-weight: 900;
    /* Contraste tipográfico */
}

/* =========================================
   2. LAYOUT PRINCIPAL
   ========================================= */
.contacto-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

@media (min-width: 992px) {
    .contacto-layout {
        grid-template-columns: 1fr 1.5fr;
        /* El formulario toma un poco más de espacio */
        align-items: start;
    }
}

/* =========================================
   3. TARJETAS DE INFORMACIÓN Y BOTONES
   ========================================= */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Efecto hover brillante para el botón de WhatsApp */
a[href*="whatsapp"]:hover {
    background: rgba(37, 211, 102, 0.15) !important;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   4. FORMULARIO PREMIUM (Líneas minimalistas)
   ========================================= */
.form-container {
    background: transparent;
}

.form-container h2 {
    color: var(--blanco);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Magia: Inputs de línea inferior */
.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--rojo-rvm);
}

.form-control:focus+label,
.form-control:not(:placeholder-shown)+label {
    color: var(--rojo-rvm);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select personalizado para que encaje con las líneas */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1em;
}

select.form-control option {
    background-color: var(--gris-oscuro);
    color: var(--blanco);
}

.btn-submit {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--blanco);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    border: 1px solid var(--rojo-rvm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--rojo-rvm);
    box-shadow: 0 10px 20px rgba(192, 8, 18, 0.3);
}

/* =========================================
   5. MAPA PANORÁMICO ULTRA-DARK
   ========================================= */
.contacto-mapa {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 350px;
    background: #000;
    position: relative;
    margin-bottom: -5rem;
    /* Se pega al footer */
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Filtro ultra oscuro, distinto al del Home */
    filter: grayscale(100%) invert(100%) contrast(1.2) brightness(0.8);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.contacto-mapa iframe:hover {
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CENTRADO PERFECTO EN MÓVILES PARA CONTACTO */
@media (max-width: 992px) {
    .info-container {
        text-align: center;
        align-items: center; 
    }
    .info-container h3 {
        text-align: center;
    }
    
    /* 👇 NUEVO: Centrar el título y el botón del formulario 👇 */
    .form-container h2 {
        text-align: center;
    }
    .btn-submit {
        display: block;
        width: 100%; /* Hace que el botón ocupe todo el ancho en celular */
        text-align: center;
    }
}

/* =========================================
   GRILLA INTELIGENTE PARA EL FORMULARIO
   ========================================= */
.form-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .form-dos-columnas {
        grid-template-columns: 1fr; /* En celular, se pone una debajo de la otra */
        gap: 2.5rem;
    }
}