/* ==========================================================================
   CONFIGURACIÓN DE VARIABLES (Identidad Visual)
   ========================================================================== */
:root {
    --amarillo-obra: #f4c430; /* El amarillo del footer */
    --amarillo-hover: #d4a017;
    --blanco-cemento: #F8F9FA;
    --gris-acero: #7A7A7A;
    --negro-carbon: #1A1A1A;
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.contact-page {
    padding: 100px 0;
    background-color: var(--blanco-cemento);
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* COLUMNA IZQUIERDA: ENCABEZADO E INFO */
.contact-header {
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--negro-carbon);
}

.text-highlight {
    color: var(--amarillo-obra);
}

.contact-data {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TARJETAS DE INFORMACIÓN CON MOVIMIENTO */
.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
}

.info-card:hover {
    transform: translateX(15px); /* Movimiento lateral profesional */
    border-color: var(--amarillo-obra);
    box-shadow: 0 8px 25px rgba(244, 196, 48, 0.15);
}

.info-card .icon-circle {
    width: 55px;
    height: 55px;
    background-color: var(--amarillo-obra);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--negro-carbon);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.info-card:hover .icon-circle {
    transform: rotate(360deg); /* Giro al hacer hover */
}

.info-card .info-text strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gris-acero);
    letter-spacing: 1px;
}

.info-card .info-text span {
    font-weight: 600;
    font-size: 12px;
}

/* BOTÓN WHATSAPP DINÁMICO */
.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    width: 100%; /* Ocupa todo el ancho en su contenedor */
}

.btn-wa:hover {
    filter: brightness(1.1);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* MAPA */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #eee;
    height: 350px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* ==========================================================================
   COLUMNA DERECHA: FORMULARIO PROFESIONAL
   ========================================================================== */
.form-wrapper {
    background: #fff;
    padding: clamp(30px, 5vw, 50px);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.07);
    border: 1px solid #eee;
    transition: transform 0.4s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
}

.form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    color: var(--negro-carbon);
}

.input-group {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--amarillo-obra);
    background: #fff;
    box-shadow: 0 0 15px rgba(244, 196, 48, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--negro-carbon);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--amarillo-obra);
    color: var(--negro-carbon);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 196, 48, 0.3);
}

/* ==========================================================================
   RESPONSIVE (CORRECCIÓN DE PANTALLA)
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .contact-page { padding: 60px 0; } 
    .contact-grid { grid-template-columns: 1fr; }
    .contact-header { text-align: center; }
    .info-card:hover { transform: translateX(0) translateY(-5px); }
    .map-container { height: 300px; }
}

@media (max-width: 600px) {
    .contact-header h1 { font-size: 32px; }
    .form-wrapper { padding: 30px 20px; }
    .btn-wa { padding: 15px 20px; font-size: 14px; }
}
/* ==========================================================
   PARCHE RESPONSIVE – SIN CAMBIAR DISEÑO ORIGINAL
   ========================================================== */

/* 🔹 Evita que correos/textos largos rompan el layout */
.info-card .info-text span {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 🔹 En móviles no existe hover → desactivamos efectos */
@media (max-width: 900px) {
    .info-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #eee !important;
    }
}

/* 🔹 Ajustes finos en móvil pequeño */
@media (max-width: 600px) {

    .contact-header h1 {
        font-size: 30px;
    }

    .btn-wa {
        padding: 15px 20px;
        font-size: 14px;
    }

    .info-card {
        padding: 15px;
        gap: 15px;
    }

    .map-container {
        height: 250px;
    }
}
