/* ===== Animación fade-in desde abajo ===== */
.consulta-section,
.form-wrapper,
.iconos-teleconsulta a {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado visible al entrar en el viewport */
.consulta-section.visible,
.form-wrapper.visible,
.iconos-teleconsulta a.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================= */
/* RESET Y FUENTE BASE           */
/* ============================= */
body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef5ff;
    color: #222;
    position: relative; /* asegura que los z-index funcionen */
    z-index: 0;
}

/* ============================= */
/* SECCIÓN TELECONSULTA           */
/* ============================= */
.consulta-section {
    background-color: #eef5ff;
    border-radius: 12px;
    margin-top: 60px; /* ajusta según necesites */
    position: relative;
    z-index: 1; /* asegura que no tape los flotantes */
}

/* CONTENEDOR DEL FORMULARIO */
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

/* TITULOS */
.form-wrapper h2 {
    text-align: center;
    color: #004080;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
}

/* GRUPOS DE INPUTS */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #004080;
    box-shadow: 0 0 6px rgba(0,64,128,0.2);
}

/* BOTÓN DE ENVÍO */
.btn-enviar {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-enviar:hover {
    background-color: #0066cc;
}

/* ICONOS TELECONSULTA */
.iconos-teleconsulta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 25px;
}

.iconos-teleconsulta a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.iconos-teleconsulta img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.iconos-teleconsulta a:hover {
    transform: scale(1.1);
}

/* ============================= */
/* RESPONSIVE TELECONSULTA        */
/* ============================= */
@media (max-width: 767px) {
    .form-wrapper {
        padding: 25px 20px;
    }

    .iconos-teleconsulta {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ============================= */
/* BOTONES FLOTANTES REDES        */
/* ============================= */
.redes-flotantes {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999 !important; /* 🔥 siempre por encima */
}

.redes-flotantes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #004080;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.redes-flotantes a:hover {
    transform: scale(1.15);
    background: #0066cc;
}
