/* =========================================
   VARIABLES DE ASESORÍA
========================================= */

:root {
    --hf-primary: #102a43;
    --hf-accent: #38bdf8;
    --hf-accent-hover: #0284c7;
    --hf-light-blue: #e0f2fe;
    --hf-bg: #f5f8fb;
    --hf-white: #ffffff;
    --hf-text: #1e293b;
    --hf-muted: #64748b;
    --hf-border: #dbe5ee;
}


/* =========================================
   AJUSTES GENERALES
========================================= */

* {
    box-sizing: border-box;
}

.contenedor {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.etiqueta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: rgba(224, 242, 254, 0.96);
    border-radius: 999px;
    color: #0297d6;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================
   BANNER DE ASESORÍA
========================================= */

.banner-detalle {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 430px;
    padding: 100px 0 75px;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(9, 30, 52, 0.92) 0%,
            rgba(9, 30, 52, 0.76) 48%,
            rgba(9, 30, 52, 0.35) 100%
        ),
        var(--banner-img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-detalle::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 110px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(9, 30, 52, 0.2)
    );
    pointer-events: none;
}

.banner-detalle .contenedor {
    position: relative;
    z-index: 2;
}

.banner-detalle .etiqueta {
    margin-bottom: 22px;
}

.banner-detalle h1 {
    max-width: 720px;
    margin: 0 0 18px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.banner-detalle p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.7;
}


/* =========================================
   INFORMACIÓN PRINCIPAL
========================================= */

.detalle-servicio {
    padding: 85px 0;
    background: var(--hf-white);
}

.detalle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
    gap: 55px;
    align-items: start;
}

.detalle-info {
    min-width: 0;
}

.detalle-info h2 {
    margin: 0 0 20px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    line-height: 1.2;
}

.detalle-info h3 {
    margin: 34px 0 16px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 1.3;
}

.detalle-info p {
    margin: 0 0 17px;
    color: var(--hf-muted);
    font-size: 16px;
    line-height: 1.8;
}

.detalle-info ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detalle-info li {
    position: relative;
    padding-left: 30px;
    color: var(--hf-text);
    font-size: 15px;
    line-height: 1.65;
}

.detalle-info li::before {
    content: "\f058";
    position: absolute;
    top: 2px;
    left: 0;
    color: var(--hf-accent-hover);
    font-family: "Font Awesome 6 Free";
    font-size: 17px;
    font-weight: 900;
}


/* =========================================
   TARJETA LATERAL
========================================= */

.detalle-card {
    position: sticky;
    top: 120px;
    padding: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(224, 242, 254, 0.75),
            rgba(255, 255, 255, 0.98)
        );
    border: 1px solid var(--hf-border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.detalle-card::before {
    content: "\f544";
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    background: var(--hf-primary);
    border-radius: 17px;
    color: #ffffff;
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
    font-weight: 900;
}

.detalle-card h3 {
    margin: 0 0 13px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    line-height: 1.3;
}

.detalle-card p {
    margin: 0;
    color: var(--hf-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   BOTÓN DE WHATSAPP
========================================= */

.btn-whatsapp-asesoria {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
    margin-top: 20px;
    background: #25d366;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-whatsapp-asesoria:hover {
    background: #20bd5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}


/* =========================================
   SECCIÓN DE SOLICITUD
========================================= */

.solicitud-asesoria {
    padding: 75px 0;
    background: var(--hf-bg);
}

.solicitud-encabezado {
    max-width: 720px;
    margin-bottom: 32px;
}

.solicitud-encabezado h2 {
    margin: 14px 0 12px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    line-height: 1.25;
}

.solicitud-encabezado p {
    margin: 0;
    color: var(--hf-muted);
    font-size: 16px;
    line-height: 1.7;
}

.solicitud-contenido {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}


/* =========================================
   TARJETAS INFORMATIVAS
========================================= */

.solicitud-beneficios {
    display: grid;
    gap: 14px;
}

.solicitud-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--hf-white);
    border: 1px solid var(--hf-border);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.solicitud-item > i {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: var(--hf-light-blue);
    border-radius: 14px;
    color: var(--hf-accent-hover);
    font-size: 18px;
}

.solicitud-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--hf-primary);
    font-size: 15px;
}

.solicitud-item span {
    display: block;
    color: var(--hf-muted);
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================
   FORMULARIO DESPLEGABLE
========================================= */

.formulario-desplegable {
    overflow: hidden;
    background: var(--hf-white);
    border: 1px solid var(--hf-border);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.formulario-desplegable summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.25s ease;
}

.formulario-desplegable summary::-webkit-details-marker {
    display: none;
}

.formulario-desplegable summary::marker {
    content: "";
}

.formulario-desplegable summary:hover {
    background: var(--hf-bg);
}

.summary-icono {
    display: grid;
    place-items: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: var(--hf-primary);
    border-radius: 15px;
    color: var(--hf-white);
    font-size: 19px;
}

.summary-texto {
    flex: 1;
}

.summary-texto strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
}

.summary-texto span {
    display: block;
    color: var(--hf-muted);
    font-size: 13px;
}

.summary-flecha {
    color: var(--hf-primary);
    font-size: 15px;
    transition: transform 0.3s ease;
}

.formulario-desplegable[open] .summary-flecha {
    transform: rotate(180deg);
}


/* =========================================
   CONTENIDO INTERNO DEL FORMULARIO
========================================= */

.formulario-desplegable-contenido {
    padding: 0 24px 26px;
    border-top: 1px solid var(--hf-border);
}

.formulario-titulo {
    padding: 24px 0 20px;
}

.formulario-titulo h3 {
    margin: 0 0 7px;
    color: var(--hf-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
}

.formulario-titulo p {
    margin: 0;
    color: var(--hf-muted);
    font-size: 14px;
    line-height: 1.6;
}

.formulario-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.formulario-desplegable .form-group {
    margin-bottom: 17px;
}

.formulario-desplegable .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--hf-primary);
    font-size: 14px;
    font-weight: 700;
}

.formulario-desplegable .form-group input,
.formulario-desplegable .form-group textarea {
    width: 100%;
    padding: 14px 15px;
    background: var(--hf-bg);
    border: 1px solid var(--hf-border);
    border-radius: 14px;
    color: var(--hf-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.formulario-desplegable .form-group input:focus,
.formulario-desplegable .form-group textarea:focus {
    background: var(--hf-white);
    border-color: var(--hf-accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.13);
}


/* =========================================
   BOTÓN DE ENVÍO
========================================= */

.btn-enviar-solicitud {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    background: var(--hf-primary);
    border: none;
    border-radius: 14px;
    color: var(--hf-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-enviar-solicitud:hover {
    background: var(--hf-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .banner-detalle {
        min-height: 380px;
        padding: 85px 0 65px;
        background-position: center;
    }

    .detalle-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .detalle-card {
        position: static;
    }

    .solicitud-contenido {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 600px) {
    .contenedor {
        width: calc(100% - 28px);
    }

    .banner-detalle {
        min-height: 350px;
        padding: 75px 0 55px;
        background-image:
            linear-gradient(
                rgba(9, 30, 52, 0.84),
                rgba(9, 30, 52, 0.84)
            ),
            var(--banner-img);
        background-position: center;
    }

    .banner-detalle .etiqueta {
        margin-bottom: 17px;
        padding: 8px 15px;
        font-size: 13px;
    }

    .banner-detalle h1 {
        margin-bottom: 15px;
        font-size: 38px;
        letter-spacing: -0.7px;
    }

    .banner-detalle p {
        font-size: 16px;
        line-height: 1.6;
    }

    .detalle-servicio {
        padding: 58px 0;
    }

    .detalle-info h2 {
        font-size: 30px;
    }

    .detalle-info h3 {
        margin-top: 29px;
        font-size: 21px;
    }

    .detalle-info p {
        font-size: 15px;
    }

    .detalle-info li {
        padding-left: 27px;
        font-size: 14px;
    }

    .detalle-card {
        padding: 24px;
        border-radius: 20px;
    }

    .solicitud-asesoria {
        padding: 55px 0;
    }

    .solicitud-encabezado h2 {
        font-size: 28px;
    }

    .solicitud-item {
        padding: 16px;
    }

    .formulario-desplegable summary {
        padding: 18px;
    }

    .summary-icono {
        width: 43px;
        min-width: 43px;
        height: 43px;
    }

    .summary-texto strong {
        font-size: 15px;
    }

    .summary-texto span {
        font-size: 12px;
    }

    .formulario-desplegable-contenido {
        padding: 0 18px 22px;
    }

    .formulario-dos-columnas {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .formulario-titulo h3 {
        font-size: 21px;
    }
}
/* =========================================
   MENSAJES DEL FORMULARIO
========================================= */

.mensaje-formulario {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(1180px, calc(100% - 40px));
    padding: 16px 20px;
    margin: 24px auto;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.mensaje-formulario i {
    flex-shrink: 0;
    font-size: 20px;
}

.mensaje-exito {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.mensaje-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

@media (max-width: 600px) {
    .mensaje-formulario {
        width: calc(100% - 28px);
        padding: 14px 16px;
        margin: 18px auto;
        font-size: 14px;
    }
}