/* ============================================
   CONTACTOS - CSS COMPLETO
   Diseño institucional PortoVial
   Rojo / Negro / Blanco
   ============================================ */

/* =======================
   HERO SECTION
   ======================= */

.contactos-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 60%, #7b1d1d 100%);
    padding: 4.5rem 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #dc2626;
}

.contactos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220, 38, 38, .18) 0%, transparent 70%);
    pointer-events: none;
}

.contactos-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.contactos-hero p {
    font-size: 1.15rem;
    color: #f9fafb;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


/* =======================
   CONTENEDOR GENERAL
   ======================= */

.contactos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* =======================
   GRID PRINCIPAL
   ======================= */

.contactos-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
    align-items: start;
}

/* =======================
   INFORMACIÓN DE CONTACTO
   ======================= */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-card {
    background: #ffffff;
    padding: 2.2rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 60%,
            rgba(220, 38, 38, 0.06));
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    border-color: #dc2626;
}

/* Iconos */
.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

/* Texto tarjetas */
.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.info-content p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0.15rem 0;
}

.info-content a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* =======================
   FORMULARIO DE CONTACTO
   ======================= */

.contacto-form-container {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    border-top: 5px solid #dc2626;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contacto-form-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.contacto-form-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #dc2626;
    display: block;
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* Grid formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Campos */
.form-group {
    margin-bottom: 1.6rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Botón enviar */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.35);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.45);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

/* =======================
   MAPA
   ======================= */

.mapa-section {
    margin-top: 5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 900px) {
    .contactos-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contactos-hero h1 {
        font-size: 2.2rem;
    }

    .contacto-form-container {
        padding: 2.2rem;
    }
}