/* ============================================
   SECCIÓN DE CONTACTO
============================================ */
.contacto-section {
    padding: 80px 0;
    background-color: white;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ============================================
   FORMULARIO - COLUMNA IZQUIERDA
============================================ */
.contacto-form-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contacto-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    background-color: #1a237e;
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: #0d1451;
}

/* ============================================
   INFORMACIÓN Y MAPA - COLUMNA DERECHA
============================================ */
.contacto-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 20px;
}

/* Teléfono - arriba izquierda */
.info-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* Email - arriba derecha */
.info-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Localidad - abajo centro (ocupa ambas columnas) */
.info-item:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 450px;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.info-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mapa */
.contacto-mapa {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contacto-mapa iframe {
    display: block;
    width: 100%;
}





/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 968px) {
   .contacto-section {
        padding: 60px 0;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacto-form-wrapper h2 {
        font-size: 2rem;
    }

    .contacto-info {
        grid-template-columns: 1fr;
    }

    .info-item:nth-child(1),
    .info-item:nth-child(2),
    .info-item:nth-child(3) {
        grid-column: 1;
        justify-self: stretch;
        max-width: 100%;
    }

    .info-item:nth-child(1) {
        grid-row: 1;
    }

    .info-item:nth-child(2) {
        grid-row: 2;
    }

    .info-item:nth-child(3) {
        grid-row: 3;
    }
}

@media (max-width: 768px) {
   .contacto-section {
        padding: 50px 0;
    }

    .contacto-form-wrapper h2 {
        font-size: 1.8rem;
    }

    .contacto-subtitle {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-enviar {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .info-item {
        padding: 20px;
        gap: 12px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon img {
        width: 40px;
        height: 40px;
    }

    .info-content h4 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contacto-section {
        padding: 40px 0;
    }

    .contacto-grid {
        gap: 40px;
    }

    .contacto-form-wrapper h2 {
        font-size: 1.5rem;
    }

    .contacto-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .contacto-form {
        gap: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.85rem;
    }

    .btn-enviar {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
    }

    .contacto-info {
        gap: 15px;
    }

    .info-item {
        padding: 20px 15px;
        gap: 10px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon img {
        width: 40px;
        height: 40px;
    }

    .info-content h4 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }
}