/* --- Variables de Color --- */
:root {
    --primary-color: #0d6efd; 
    --secondary-color: #0b5ed7;
    --background-color: #f8f9fa; 
    --text-color: #333; 
    --white-color: #ffffff;
    --dark-section-bg: #212529;
}

/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

section {
    padding: 80px 0;
    overflow-x: hidden;
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--white-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Sección Hero (Banner) --- */
.hero {
    /* IMAGEN DE DINERO ACTUALIZADA */
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.pexels.com/photos/259027/pexels-photo-259027.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.cta-button .fa-whatsapp {
    font-size: 1.5rem;
}

/* --- Secciones de Contenido --- */
.services {
    background-color: var(--background-color);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ESTILOS DE TARJETAS ACTUALIZADOS */
.service-item {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Organiza el contenido en columna */
    justify-content: space-between; /* Empuja el botón hacia abajo */
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item p {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Permite que el texto crezca */
}

/* NUEVO ESTILO PARA BOTONES EN TARJETAS */
.service-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
    transition: background-color 0.3s ease;
}

.service-cta:hover {
    background-color: var(--secondary-color);
}

.process {
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    max-width: 300px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.requirements {
    background-color: var(--background-color);
}

.requirements ul {
    list-style: none;
    font-size: 1.1rem;
    padding-left: 20px;
}

.requirements li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.requirements .fa-check-circle {
    color: #28a745;
    margin-right: 15px;
    font-size: 1.4rem;
    margin-top: 5px;
}

.contact {
    background-color: var(--dark-section-bg);
    color: var(--white-color);
    text-align: center;
}

.contact h2 {
    color: var(--white-color);
}

.footer {
    background-color: #343a40;
    color: var(--white-color);
    text-align: center;
    padding: 1.5rem 0;
}

/* --- ESTILOS PARA MÓVIL (Responsive) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        top: 80px; /* Altura del header */
        background-color: var(--white-color);
        height: calc(100vh - 80px);
        width: 70%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links li {
        opacity: 0;
    }

    .burger-menu {
        display: block; /* Muestra el icono de hamburguesa */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }
}

/* Clase que se activa con JS para mostrar el menú */
.nav-active {
    transform: translateX(0%);
}

/* Animación de la hamburguesa a una 'X' */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Animación para que los links del menú aparezcan */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}