/* Variables y Reset */
:root {
    --primary-color: #e63946; /* Rojo vibrante */
    --secondary-color: #1d3557; /* Azul oscuro elegante */
    --light-bg: #f1faee;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Para que la navegación sea fluida */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 1. Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.7)), url('https://images.unsplash.com/photo-1589182373726-e4f658ab50f0?q=80&w=2000&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #c1121f;
}

/* Secciones Generales */
.section {
    padding: 80px 5%;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.bg-dark h2, .bg-dark p {
    color: var(--white);
}

/* Grid y Tarjetas (Cards) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bank-card {
    border-top: 4px solid var(--secondary-color);
}

/* Consejos List */
.tips-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    list-style-type: square;
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 15px;
}

/* Formulario de Contacto */
.contact-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #fff;
}

/* Diseño Responsivo para Móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* En un proyecto real aquí agregaríamos un menú hamburguesa con JS */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}