/* ==========================================================================
   WIDGET FORMULARIO UNIVERSAL
   --------------------------------------------------------------------------
   Formulario reutilizable para páginas dinámicas.
   Hereda colores del tema mediante variables:
   --fc-primary
   --fc-secondary
   --fc-accent
   --fc-text
   ========================================================================== */


/* ==========================================================================
   1. SECCIÓN GENERAL CON IMAGEN DE FONDO
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Altura mínima del bloque.
   - Espaciado vertical.
   - Comportamiento de la imagen de fondo.
   ========================================================================== */

.fc-universal-form-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 680px;
    display: flex;
    align-items: center;

    padding: 70px 24px;

    background-image: var(--fc-universal-form-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: inherit;
}


/* ==========================================================================
   2. CAPA OSCURA SOBRE EL FONDO
   --------------------------------------------------------------------------
   Aquí ajustas la intensidad del overlay.
   Usa el color secundario del tema.
   ========================================================================== */

.fc-universal-form-section__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
          radial-gradient(
        ellipse 42% 58% at 58% 52%,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.12) 3%,
        rgba(255,255,255,0) 58%,
        rgba(9,60,109,.38) 100%
    ),
        linear-gradient(
        90deg,
        rgba(9,60,109,0) 0%,
        rgba(9,60,109,0) 42%,
        color-mix(in srgb, var(--fc-secondary, #0f172a) 38%, transparent) 68%,
        color-mix(in srgb, var(--fc-secondary, #0f172a) 82%, transparent) 100%
    );

        
}

/* ==========================================================================
   3. CONTENEDOR INTERNO
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Ancho máximo del contenido.
   - Posición del formulario: derecha, centro o izquierda.
   ========================================================================== */

.fc-universal-form-section__container {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: flex;
    justify-content: flex-end;
}


/* ==========================================================================
   4. TARJETA DEL FORMULARIO
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Ancho del formulario.
   - Altura mínima.
   - Padding interno.
   - Fondo de la tarjeta.
   - Borde y sombra general.
   ========================================================================== */

.fc-universal-form {
    width: min(520px, 100%);
    min-height: 560px;

    padding: 26px 36px 34px;

    border-radius: 10px;

        background:
        radial-gradient(
            circle at 50% 88%,
            color-mix(in srgb, var(--fc-primary, #2563eb) 58%, #66ccff) 0%,
            color-mix(in srgb, var(--fc-primary, #2563eb) 28%, transparent) 34%,
            transparent 68%
        ),
      linear-gradient(
            145deg,
            color-mix(in srgb, var(--fc-secondary, #0f172a) 65%, transparent),
            color-mix(in srgb, var(--fc-primary, #2563eb) 65%, transparent)
        );

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);

    font-family: inherit;
}


/* ==========================================================================
   5. ENCABEZADO DEL FORMULARIO
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Alineación del título.
   - Tamaño del título.
   - Color destacado.
   - Texto descriptivo.
   ========================================================================== */

.fc-universal-form__header {
    text-align: center;
    margin-bottom: 28px;
}

.fc-universal-form__header h2 {
    margin: 0 0 8px;

    color: white;

    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;

    font-family: inherit;
}

.fc-universal-form__header p {
    max-width: 360px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.92);

    font-size: 1rem;
    line-height: 1.35;
    font-weight: 500;

    font-family: inherit;
}


/* ==========================================================================
   6. GRID DE CAMPOS
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Número de columnas.
   - Separación entre campos.
   ========================================================================== */

.fc-universal-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
}

.fc-universal-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-universal-form__group--full {
    grid-column: 1 / -1;
}


/* ==========================================================================
   7. LABELS
   --------------------------------------------------------------------------
   Aquí ajustas los textos superiores de cada campo:
   Nombre, Contacto, Correo, Solicitud, Mensaje.
   ========================================================================== */

.fc-universal-form__group label {
    color: #ffffff;

    font-size: 1rem;
    line-height: 1;
    font-weight: 700;

    font-family: inherit;
}


/* ==========================================================================
   8. INPUTS Y SELECT
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Alto de campos.
   - Bordes.
   - Transparencia.
   - Color de texto.
   ========================================================================== */

.fc-universal-form__group input,
.fc-universal-form__group select {
    width: 100%;
    min-height: 38px;

    padding: 0 20px;

    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* ==========================================================================
   9. SELECT PERSONALIZADO
   --------------------------------------------------------------------------
   Aquí ajustas la flecha visual del campo Solicitud.
   ========================================================================== */

.fc-universal-form__group select {
    appearance: none;
    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .62) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, .62) 50%, transparent 50%);

    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 16px) 50%;

    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.fc-universal-form__group select option {
    color: var(--fc-text, #0f172a);
}


/* ==========================================================================
   10. TEXTAREA
   --------------------------------------------------------------------------
   Aquí ajustas el campo Mensaje.
   ========================================================================== */

.fc-universal-form__group textarea {
    width: 100%;
    min-height: 138px;

    padding: 16px 20px;

    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;

    background: #ffffff;
    color: var(--fc-text, #0f172a);

    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;

    resize: vertical;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* ==========================================================================
   11. PLACEHOLDERS
   --------------------------------------------------------------------------
   Aquí ajustas el color de los textos ejemplo dentro de los campos.
   ========================================================================== */

.fc-universal-form__group input::placeholder,
.fc-universal-form__group textarea::placeholder {
    color: rgba(148, 163, 184, 0.88);
    font-weight: 500;
}


/* ==========================================================================
   12. ESTADO FOCUS
   --------------------------------------------------------------------------
   Aquí ajustas el color cuando el usuario hace clic en un campo.
   Hereda el color principal/acento del tema.
   ========================================================================== */

.fc-universal-form__group input:focus,
.fc-universal-form__group select:focus,
.fc-universal-form__group textarea:focus {
    border-color: var(--fc-accent, var(--fc-primary, #2563eb));

    box-shadow: 0 0 0 4px color-mix(
        in srgb,
        var(--fc-accent, var(--fc-primary, #2563eb)) 18%,
        transparent
    );

    background: #ffffff;
    color: var(--fc-text, #0f172a);
}

.fc-universal-form__group textarea,
.fc-universal-form__group textarea:focus {
    background: #ffffff;
    color: var(--fc-text, #0f172a);
}

.fc-universal-form__group textarea::placeholder {
    color: rgba(100, 116, 139, 0.75);
}


/* ==========================================================================
   13. CONTENEDOR DEL BOTÓN
   ========================================================================== */

.fc-universal-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}


/* ==========================================================================
   14. BOTÓN DE ENVÍO
   --------------------------------------------------------------------------
   Aquí ajustas:
   - Alto.
   - Color.
   - Borde.
   - Peso tipográfico.
   - Sombra desactivada.
   ========================================================================== */

.fc-universal-form__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 22px 0 26px;

    border: 2px solid transparent;
    border-radius: 999px;

    background: var(--fc-accent, var(--fc-primary, #2563eb));
    color: #ffffff;

    font: inherit;
    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;
    box-shadow: none;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.fc-universal-form__button:hover {
    transform: translateY(-2px);

    background: transparent;
    color: white;
    border-color: var(--fc-accent, var(--fc-primary, #2563eb));

    box-shadow: none;
}

.fc-universal-form__button i {
    font-size: 1.35rem;
    line-height: 1;
}


/* ==========================================================================
   15. MENSAJES DEL FORMULARIO
   --------------------------------------------------------------------------
   Aquí se muestran mensajes de:
   - Enviando solicitud...
   - Solicitud enviada correctamente.
   - Error al enviar.
   ========================================================================== */

.fc-universal-form__message {
    min-height: 22px;
    margin: 14px 0 0;

    text-align: center;
    color: #ffffff;

    font-size: 0.92rem;
    font-weight: 700;
}

.fc-universal-form__message.is-success {
    color: #bbf7d0;
}

.fc-universal-form__message.is-error {
    color: #fecaca;
}


/* ==========================================================================
   16. RESPONSIVE TABLET
   ========================================================================== */

@media (max-width: 900px) {
    .fc-universal-form-section {
        min-height: auto;
        padding: 56px 18px;
    }

    .fc-universal-form-section__container {
        justify-content: center;
    }
}


/* ==========================================================================
   17. RESPONSIVE MÓVIL
   ========================================================================== */

@media (max-width: 620px) {
    .fc-universal-form {
        padding: 28px 22px 30px;
        min-height: auto;
    }

    .fc-universal-form__grid {
        grid-template-columns: 1fr;
    }

    .fc-universal-form__header h2 {
        font-size: 2rem;
    }
}

/* estilo del cuadro de proteccion de datos en formulario */

/* ==========================================================================
   Aceptación de política de datos
   ========================================================================== */

.fc-universal-form__group--acceptance {
    grid-column: 1 / -1;
    margin-top: 14px;
    margin-bottom: 12px;
}

.fc-universal-form__acceptance {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    max-width: 440px;
    margin: 0 auto;

    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    text-decoration: none;
    cursor: pointer;
}

.fc-universal-form__acceptance span {
    display: block;
    flex: 1;
    min-width: 0;

    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
}

/*
 * Mayor especificidad para evitar los estilos
 * globales de .fc-universal-form input
 */
.fc-universal-form .fc-universal-form__acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 18px;

    width: 18px;
    min-width: 18px;
    max-width: 18px;

    height: 18px;
    min-height: 18px;
    max-height: 18px;

    padding: 0;
    margin: 2px 0 0;

    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.12);

    position: relative;
    cursor: pointer;
    box-shadow: none;
}

.fc-universal-form .fc-universal-form__acceptance input[type="checkbox"]:checked {
    background: var(--fc-accent, #ff8500);
    border-color: var(--fc-accent, #ff8500);
}

.fc-universal-form .fc-universal-form__acceptance input[type="checkbox"]:checked::after {
    content: "";

    position: absolute;
    left: 4px;
    top: 1px;

    width: 5px;
    height: 9px;

    border: solid #ffffff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.fc-universal-form .fc-universal-form__acceptance input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(255, 138, 0, 0.28);
    outline-offset: 3px;
}