/* hipotecario/hipotecario-lp.css */

body {
    font-family: 'DM Sans', sans-serif; /* Puedes cambiar esto a 'Inter' si prefieres consistencia con tu principal */
    margin: 0;
    background-color: #f9fafc;
    color: #1c1c1e;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1592595896551-c7d43c30f063?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

.hero .btn-hero { /* Usé una clase diferente para el botón del hero para evitar conflictos con 'btn' general */
    margin-top: 2rem;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    color: #003366;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero .btn-hero:hover {
    background: #e0e0e0;
    color: #002244;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0.5rem;
    color: #003366;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem auto 1rem;
    color: #003366; /* Aseguramos el color del título */
}

.form-section {
    background: white;
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-section input,
.form-section textarea {
    width: calc(100% - 1.6rem); /* Ajuste para el padding */
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem; /* Consistencia en tamaño de fuente */
}

.form-section label {
    margin-bottom: 1rem;
}

.form-section button {
    background: #003366;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Botón al 100% de ancho */
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.form-section button:hover {
    background: #002244;
}

footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem; /* Espacio antes del footer */
}

/* Mensajes del formulario */
.form-message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Oculto por defecto */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para sticky header y float button, si no los hereda de style.css */
/* Asegúrate de que estos estilos estén en style.css o en el CSS de la landing si no funcionan */
/* Si tu style.css principal ya incluye esto, no necesitas duplicarlo aquí */
.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff; /* Ajusta según el color de tu header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.sticky .logo-titulo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sticky .logo {
    height: 40px; /* Ajusta el tamaño de tu logo */
}

.sticky h1 {
    font-size: 1.8rem;
    color: #003366; /* Color del título del header */
    margin: 0;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float i {
    margin-top: 0;
}


/* Media queries para responsividad (ejemplo, ajusta según necesites) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .features {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    .card {
        padding: 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin: 2rem auto 0.5rem;
    }
    .form-section {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
