/* =========================================================================
   DISEÑO EXCLUSIVO PREMIUM - PÁGINA DE CONTACTO
   ========================================================================= */

.contacto-page {
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* ==========================================
   HERO / CABECERA DE CONTACTO
   ========================================== */
.contacto-hero {
    position: relative;
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #1a1c22 0%, #0b0c10 100%);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('banner/banner1.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.contacto-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contacto-hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contacto-hero-title span {
    color: var(--primary);
}

.contacto-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* ==========================================
   SECCIÓN PRINCIPAL: INFO + FORMULARIO
   ========================================== */
.contacto-main {
    max-width: 1400px;
    margin: -50px auto 100px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .contacto-main {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }
}

/* --- TARJETAS DE INFORMACIÓN (IZQUIERDA) --- */
.info-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    opacity: 0;
    transform: translateX(-30px);
}

.info-card.in-view {
    opacity: 1;
    transform: translateX(0);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(230, 57, 70, 0.1);
    border-bottom-color: var(--primary);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--primary-dark);
}

/* --- FORMULARIO GLASSMORPHISM (DERECHA) --- */
.form-col {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
}

.form-col.in-view {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.form-col::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

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

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* HONEYPOT - Oculto a los humanos, visible para los bots */
.campo-oculto-bot {
    display: none !important;
}

.input-grp {
    position: relative;
}

.input-grp input,
.input-grp textarea {
    width: 100%;
    padding: 18px 25px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.input-grp input:focus,
.input-grp textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(230,57,70,0.1);
    transform: translateY(-2px);
}

.input-grp textarea {
    height: 160px;
    resize: vertical;
}

/* Indicador de campo obligatorio */
.input-grp input:required + label::after {
    content: " *";
    color: var(--primary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Mensajes de Status (Alertas Formulario) */
.form-msg {
    display: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}
.form-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   SECCIÓN DE MAPA FULL WIDTH
   ========================================== */
.mapa-seccion {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.mapa-seccion iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.5s ease;
}

.mapa-seccion:hover iframe {
    filter: grayscale(0%) contrast(100%);
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-light) 0%, transparent 100%);
    pointer-events: none;
}
