/* --- ESTILOS EXCLUSIVOS DE LA PÁGINA CONTACTO --- */
.contacto-body {
    font-family: system-ui, sans-serif;
}

/* --- 1. FRANJA BLANCA DE SEPARACIÓN Y CONTENEDOR PRINCIPAL --- */
.seccion-contacto-principal {
    position: relative;
    border-top: 40px solid #ffffff;
    /* Imagen de fondo */
    background-image: url('../uploads/contacto/FONDO_CONTACTO.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 60px 20px;
    /* CAMBIO CLAVE PARA PC: Altura automática según el contenido */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Capa oscura semitransparente (Opcional, puedes dejarla comentada si no la usas) */
    .seccion-contacto-principal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background: rgba(22, 38, 67, 0.85);*/
        z-index: 1;
    }

/* --- 2 COLUMNAS (Contenido por encima de la capa oscura) --- */
.contacto-dos-columnas {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* --- COLUMNA IZQUIERDA (CENTRADA) --- */
.col-info {
    flex: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .col-info h2 {
        font-size: 38px;
        font-weight: 700;
        margin-bottom: 50px;
        letter-spacing: 1px;
        color: #ffffff;
    }

/* --- CONTENEDOR DE ICONOS --- */
.info-iconos {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    align-items: flex-start;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 auto;
    max-width: 220px;
}

    .info-item .icono-cuadrado-blanco {
        width: 80px;
        height: 80px;
        background: #fff;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        transition: 0.3s;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

        .info-item .icono-cuadrado-blanco:hover {
            transform: scale(1.05);
        }

        .info-item .icono-cuadrado-blanco img {
            width: 45px;
            height: 45px;
            object-fit: contain;
        }

    .info-item p {
        font-size: 14px;
        line-height: 1.4;
        color: #e0e0e0;
    }

    .info-item a {
        color: #ffffff;
        text-decoration: none;
    }

.texto-atencion {
    font-size: 18px;
    margin-top: 10px;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

/* --- COLUMNA DERECHA (FORMULARIO) --- */
.col-formulario {
    flex: 1.2;
    background: #d14e68; /* Color rojo/rosa */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
}

.form-header {
    background: #ffffff;
    padding: 20px;
    text-align: center;
}

    .form-header h3 {
        color: #1a2b4c; /* Color oscuro del título */
        font-size: 22px;
        font-weight: 700;
        margin: 0;
    }

.form-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .form-body label {
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }

    .form-body input, .form-body textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
        border: 1px solid rgba(255,255,255,0.5);
        border-radius: 4px;
        background: transparent;
        color: #fff;
        font-size: 14px;
        outline: none;
        transition: 0.3s;
        font-family: inherit;
    }

        .form-body input:focus, .form-body textarea:focus {
            border-color: #fff;
            background: rgba(255,255,255,0.1);
        }

        .form-body input::placeholder, .form-body textarea::placeholder {
            color: rgba(255,255,255,0.7);
        }

    .form-body textarea {
        min-height: 150px;
        resize: vertical;
    }

/* --- BOTÓN CENTRADO --- */
.btn-container {
    display: flex;
    justify-content: center; /* Centra el botón horizontalmente */
    margin-top: 10px;
}

.btn-enviar {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
}

    .btn-enviar:hover {
        background: #ffffff;
        color: #d14e68;
    }

.mensaje-exito {
    display: none;
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

/* --- RESPONSIVE (TABLETS) --- */
@media (max-width: 992px) {
    .contacto-dos-columnas {
        flex-direction: column;
        gap: 30px;
    }

    .col-info {
        width: 100%;
    }

    .col-formulario {
        width: 100%;
    }

    .info-iconos {
        justify-content: center;
    }
}

/* --- RESPONSIVE (MÓVILES / IPHONE / ANDROID) --- */
@media (max-width: 600px) {
    .seccion-contacto-principal {
        padding: 20px 15px 40px 15px;
        border-top: 20px solid #ffffff;
        /* CAMBIO CLAVE PARA MÓVILES: Ocupa el 100% de la pantalla */
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .col-info h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .info-iconos {
        gap: 20px;
    }

    .info-item {
        flex: 1 1 100%; /* En celulares, un icono debajo del otro */
        max-width: 100%;
        margin-bottom: 20px;
    }

    .texto-atencion {
        font-size: 16px;
        margin-top: 20px;
    }

    .form-body textarea {
        min-height: 120px;
    }
}
