/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --brand-red: #e40044;
    --item-hover-border: #c4d5df;
    --brand-dark: #1e1e1e;
    --brand-bg: #FFFFFF;
    --brand-light-blue: #B5D8EB;
    --brand-dark-blue: #19184A;
    --brand-hero-bg: #f3f3f3;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-800: #1f2937;
    --Semnticos-Error-fondo: #F8DAD2;
    --button-disabled: #CCCED9;

}

/* =========================================
   2. RESET Y ESTILOS GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'sans-serif';
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, p {
    margin: 0px;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

.section-landing {
    padding: 8rem 0 5rem 0;
    background-color: #EFEFEF;
    width: 100%;
}

.container-landing {
    display: flex;
    justify-content: center;
    gap: 4rem;

    align-items: center;
}

.contenido-landing {
    max-width: 485px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.titulo-landing {
    max-width: 355px;
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
}

.bajada-landing {
    font-size: 24px;
    line-height: 33px;
    font-weight: 700;
}

.texto-landing {
    font-size: 20px;
    line-height: 27px;
    font-weight: 400;
}

.imagen-landing {
    max-width: 485px;
}

.imagen-landing-mobile {
    display: none;
}

.container-form-landing {
    width: clamp(280px, 494px, 100%);
    background-color: var(--bg-web-white);
    padding: 1.5rem;
    border-radius: 16px;
}

.form-landing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label-landing{
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5rem;
}

.input-form-landing {
    padding: 13px 16px;
    border-radius: 16px !important;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    accent-color: #333;
}

input[type="checkbox"] {
    accent-color: #E40044 !important;
}

.checkbox-wrapper label {
    cursor: pointer;
}


.container-post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.icono-exito {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #d9f5d6;
    color: #1e6b2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono-error {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--Semnticos-Error-fondo);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.titulo-post-form {
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
}

.dato-contacto-landing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: #b5d9ea;
    border-radius: 14px;
    color: #1b2a4e;
    font-size: 16px;
}

.descripcion-post-form {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.btn-primary:disabled {
    background-color: var(--button-disabled);
    border-color: var(--button-disabled);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    opacity: 0.9;
}



/* =========================================
   VALIDACIÓN DE CAMPOS
   ========================================= */
.input-form-landing.error {
    border: 1px solid var(--brand-red) !important;
}

.mensaje-error-landing {
    display: none;
    color: var(--brand-red);
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.mensaje-error-landing.visible {
    display: block;
}

@media (max-width: 1024px) {
    .container-landing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contenido-landing {
        align-items: center;
        max-width: 384px;
    }

    .titulo-landing {
        text-align: center;
        font-size: 32px;
        line-height: 40px;
    }

    .bajada-landing {
        text-align: center;
    }

    .texto-landing {
        text-align: center;
    }

    .imagen-landing {
        display: none;
    }

    .imagen-landing-mobile {
        display: revert;
        max-width: 388px;
    }

    .container-form-landing {
        width: clamp(280px, 384px, 100%);
    }

    .container-post-form {
        min-width: 200px;
    }

}