/*=======CORRECCIÓN GLOBAL (EVITA DESBORDES)=======*/
*, *::before, *::after {
    box-sizing: border-box;
}

/* ================= CONTACTO ================= */

.contacto {
    padding: 80px 20px;
    background-image:
        linear-gradient(
            rgba(247, 247, 247, 0.75),
            rgba(255, 255, 255, 0.75)
        ),
        url("../images/fondos/fondo-servicios.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #5e5b5b;
    max-width: 600px;
    margin: 10px auto 60px;
}

/* ================= LÍNEA PRINCIPAL ================= */

.contacto-linea {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.9fr; /* MÁS ANCHO EL MAPA */
    gap: 80px;
    align-items: stretch;
}


/* ================= INFO ================= */

.contacto-info {
    background: rgba(255,255,255,0.75);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.contacto-info h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #000;
}

.contacto-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* ================= FORMULARIO ================= */

.fancy-form {
    width: 100%;
    padding: 30px 28px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Grupos */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

/* Inputs y textarea */
.input-group input,
.input-group textarea {
    width: 100%;
    height: 40px;
    padding: 6px 36px 6px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    background: #fff;
    display: block;
}

.input-group textarea {
    height: 90px;
    resize: none;
}

/* Label flotante */
.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.75rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group textarea + label {
    top: 18px;
    transform: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:valid + label,
.input-group textarea:valid + label {
    top: -8px;
    left: 10px;
    background: #111;
    padding: 0 6px;
    font-size: 0.65rem;
    color: #fff;
    border-radius: 6px;
}

/* Iconos */
.input-group .icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
}

/* Botón formulario */
.btn-gradient {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00A651, #00ff62);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 166, 81, 0.45);
}

/* ================= WHATSAPP + MAPA ================= */

.contacto-extra {
    background: rgba(255,255,255,0.75);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-whatsapp {
    max-width: 260px;      /* 🔑 no crece demasiado */
    margin: 0 auto;
    padding: 14px;
    font-size: 0.95rem;
    background: #25D366;
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
    .btn-whatsapp {
    max-width: 260px;      /* 🔑 no crece demasiado */
    margin: 0 auto;
    padding: 14px;
    font-size: 0.95rem;
}

}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37,211,102,.6);
}

/* Mapa */
.contacto-mapa {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
}

/* ================= RESPONSIVE ================= */



@media (max-width: 600px) {
    .contacto-linea {
        grid-template-columns: 3fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}
