/* =========================================================
   LANDING BASE — estilos compartidos por los 3 landings
   Todo va namespaceado bajo .lp-page / lp- para no interferir
   con custom.css ni con el resto del sitio.
   ========================================================= */

.lp-page {
    --lp-primary: #017960;
    --lp-primary-dark: #015c4a;
    --lp-primary-soft: rgba(1, 121, 96, 0.08);
    --lp-accent: #f9ad00;
    --lp-accent-dark: #dc9600;
    --lp-text: #26312c;
    --lp-text-light: #6c7a76;
    --lp-white: #ffffff;
    --lp-border: rgba(15, 35, 30, 0.14);
    --lp-danger: #e3342f;
    --lp-radius: 16px;
    --lp-radius-sm: 10px;
    --lp-shadow: 0 20px 45px -15px rgba(1, 60, 47, 0.35);
    --lp-shadow-soft: 0 10px 30px rgba(15, 35, 30, 0.08);
    --lp-font: 'Poppins', sans-serif;
    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-white);
}

.lp-page img {
    max-width: 100%;
}

.lp-page .container {
    max-width: 1140px;
}

/* Nav fondo solido, sin overlap */
.lp-page .main-nav {
    position: relative;
    background: #017960;
    padding-bottom: 15px;
    margin-bottom: 0
}

/**/
main header,
main section{
    z-index: 1;
    position: relative;
}

/* =========================================================
   SECCIONES / ESPACIADO
   ========================================================= */
.lp-section {
    padding: 40px 0 80px;
}

@media (max-width: 767px) {
    .lp-section {
        padding: 36px 0;
    }
}

/* =========================================================
   HERO (2 imagenes: fondo + imagen superpuesta)
   ========================================================= */
.lp-hero {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-hero__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.lp-hero__overlay img {
    display: block;
    height: auto;
    width: auto;
}

/* =========================================================
   TARJETA (reutilizable: descripcion flotante, contenido, etc.)
   ========================================================= */
.lp-card {
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-soft);
}

/* =========================================================
   BLOQUES DE CONTENIDO EDITABLE (contenidos_)
   Ajustes puntuales solo cuando contenidos_ vive dentro de un
   landing, sin tocar la regla global de contenidos_.
   ========================================================= */
.lp-page .contenidos_ {
    padding: 0;
}

.lp-page .contenidos_ p:last-child {
    margin-bottom: 0;
}

/* Tablas basicas, sin clases extra */

/* =========================================================
   BOTON ".abrir"
   ========================================================= */
.lp-page a.abrir.zonarap {
    padding-top: 0;
}

.lp-page .abrir .btncalypso {
    padding: 6px 14px;
}

/* Font-size del span interno */
.lp-page .abrir .btncalypso span {
    font-size: 16px;
}

/* =========================================================
   GRID DE CONTENIDO PRINCIPAL + FORMULARIO
   ========================================================= */
.lp-content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.lp-content-grid__main {
    flex: 1 1 420px;
    min-width: 0;
}

.lp-content-grid__form {
    flex: 1 1 360px;
    min-width: 0;
}

/* =========================================================
   TARJETA DEL FORMULARIO
   ========================================================= */
.lp-form-card {
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    border: 1px solid var(--gris3);
    padding: 50px 50px;
}

@media (max-width: 575px) {
    .lp-form-card {
        padding: 40px;
    }
}

.lp-form__title {
    font-family: var(--lp-font);
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-primary);
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}

.lp-form__note {
    font-size: 12.5px;
    color: var(--lp-text-light);
    margin: 0 0 16px;
}

.lp-form__note span {
    color: var(--lp-danger);
    font-weight: 700;
}

/* =========================================================
   CAMPOS
   ========================================================= */
.lp-field {
    position: relative;
    margin-bottom: 0px;
}

/* Icono y label flotante: absolute, no flex */
.lp-field__control {
    position: relative;
}

.lp-field__control .material-icons-outlined {
    position: absolute;
    left: 12px;
    top: 0;
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: var(--lp-text-light);
    pointer-events: none;
    z-index: 1;
}

.lp-field__control input,
.lp-field__control select {
    display: block;
    width: 100%;
    height: 44px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-sm);
    background: #f7f9f8;
    font-family: var(--lp-font);
    font-size: 13.5px;
    color: var(--lp-text);
    padding: 13px 12px 0 40px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.lp-field__control select {
    padding-right: 26px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236c7a76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.lp-field__control input:focus,
.lp-field__control select:focus {
    outline: none;
    border-color: var(--lp-primary);
    background: var(--lp-white);
    box-shadow: 0 0 0 4px var(--lp-primary-soft);
}

.lp-field.is-invalid .lp-field__control input,
.lp-field.is-invalid .lp-field__control select {
    border-color: var(--lp-danger);
    background: #fdf1f0;
}

/* Error de nuestro validador + label.error del backend */
.lp-field__error,
label.error {
    display: block;
    font-size: 11px;
    line-height: 14px;
    color: var(--lp-danger);
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Label flotante */
.lp-field__label {
    position: absolute;
    left: 39px;
    top: 0;
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--lp-text-light);
    pointer-events: none;
    transition: all .15s ease;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}

.lp-field__control input:focus ~ .lp-field__label,
.lp-field__control input:not(:placeholder-shown) ~ .lp-field__label,
.lp-field__control select:focus ~ .lp-field__label,
.lp-field__control select.is-filled ~ .lp-field__label {
    top: 6px;
    height: auto;
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--lp-primary);
}

.lp-field.is-invalid .lp-field__control input:not(:placeholder-shown) ~ .lp-field__label,
.lp-field.is-invalid .lp-field__control select.is-filled ~ .lp-field__label {
    color: var(--lp-danger);
}

/* =========================================================
   RECAPTCHA (placeholder no funcional, solo el espacio)
   ========================================================= */
.lp-recaptcha {
    margin: 2px 0 14px;
    display: flex;
    justify-content: center;
}

.lp-recaptcha img {
    display: block;
    width: 100%;
    max-width: 304px;
    border-radius: 4px;
    border: 1px solid var(--lp-border);
    margin: auto;
}

/* =========================================================
   CHECKBOX PERSONALIZADO (terminos / autorizacion)
   ========================================================= */
.lp-check {
    position: relative;
    margin-bottom: 10px;
}

.lp-check__label {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 19px;
    color: var(--lp-text);
}

/* label.error del backend dentro del checkbox: pasa a su propia linea */
.lp-check__label label.error {
    order: 1;
    flex-basis: 100%;
    margin: 4px 0 0 30px;
}

/* Br suelto del backend, no lo usamos */
.lp-check__label br {
    display: none;
}

.lp-check__input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.lp-check__box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--lp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    pointer-events: none;
}

.lp-check__box .material-icons-outlined {
    font-size: 14px;
    color: var(--lp-white);
    opacity: 0;
    transform: scale(.6);
    transition: all .15s ease;
}

.lp-check__input:checked ~ .lp-check__box {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
}

.lp-check__input:checked ~ .lp-check__box .material-icons-outlined {
    opacity: 1;
    transform: scale(1);
}

.lp-check__input:focus-visible ~ .lp-check__box {
    box-shadow: 0 0 0 4px var(--lp-primary-soft);
}

.lp-check.is-invalid .lp-check__box {
    border-color: var(--lp-danger);
}

/* Reset por regla global de custom.css */
.lp-check__link {
    display: inline;
    height: auto;
    width: auto;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
    color: var(--lp-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.lp-check__error {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: var(--lp-danger);
    margin: 4px 0 0 30px;
}

/* =========================================================
   BOTON ENVIAR
   ========================================================= */
.lp-btn-send {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-dark));
    color: var(--lp-white);
    font-family: var(--lp-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 12px 25px -8px rgba(1, 121, 96, 0.55);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lp-btn-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -8px rgba(1, 121, 96, 0.6);
}

.lp-btn-send .material-icons-outlined {
    font-size: 20px;
    transition: transform .2s ease;
}

.lp-btn-send:hover:not(:disabled) .material-icons-outlined {
    transform: translateX(3px);
}

.lp-btn-send:disabled {
    cursor: not-allowed;
    opacity: .85;
}

.lp-btn-send__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--lp-white);
    animation: lp-spin .7s linear infinite;
}

.lp-btn-send.is-loading .material-icons-outlined,
.lp-btn-send.is-loading .lp-btn-send__label {
    display: none;
}

.lp-btn-send.is-loading .lp-btn-send__spinner {
    display: inline-block;
}

.lp-btn-send.is-loading::after {
    content: "Enviando...";
    font-family: var(--lp-font);
    font-size: 16px;
    font-weight: 700;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   MODALES (terminos, politica, exito)
   ========================================================= */
.lp-modal .modal-content {
    border: none;
    border-radius: var(--lp-radius);
    overflow: hidden;
}

.lp-modal .modal-header {
    background: var(--lp-primary);
    color: var(--lp-white);
    border: none;
    padding: 22px 28px;
}

.lp-modal .modal-title {
    font-family: var(--lp-font);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.lp-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: .85;
}

.lp-modal .modal-body {
    padding: 28px;
    max-height: 65vh;
    overflow-y: auto;
}

.lp-modal .modal-body p,
.lp-modal .modal-body li {
    font-size: 14px;
    line-height: 22px;
    color: var(--lp-text);
}

.lp-modal .modal-body h2 {
    font-size: 17px;
    color: var(--lp-primary);
}

/* Modal de exito */
.lp-modal-success .modal-body {
    text-align: center;
    padding: 44px 32px 36px;
}

.lp-modal-success__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--lp-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-modal-success__icon .material-icons-outlined {
    font-size: 40px;
    color: var(--lp-primary);
}

.lp-modal-success__title {
    font-family: var(--lp-font);
    font-size: 21px;
    font-weight: 800;
    color: var(--lp-text);
    margin: 0 0 10px;
}

.lp-modal-success__text {
    font-size: 14px;
    color: var(--lp-text-light);
    margin: 0 0 26px;
}

.lp-modal-success .lp-btn-send {
    max-width: 220px;
    margin: 0 auto;
}

/* Botón secundario, estilo ghost */
.lp-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 10px;
    padding: 11px 20px;
    border: 1.5px solid var(--lp-border);
    border-radius: 50px;
    background: transparent;
    color: var(--lp-text);
    font-family: var(--lp-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease;
}

.lp-btn-download:hover {
    border-color: var(--lp-primary);
    color: var(--lp-primary);
}

.lp-btn-download .material-icons-outlined {
    font-size: 18px;
}

/* =========================================================
   RESPONSIVE GENERAL
   ========================================================= */
@media (max-width: 991px) {
    .lp-content-grid {
        gap: 32px;
    }
}

/* Quiebre a 1 columna en 900px */
@media (max-width: 900px) {
    .lp-content-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-content-grid__main,
    .lp-content-grid__form {
        width: 100%;
    }

    .lp-form-card {
        width: 100%;
    }
}
