/* ======== GENERAL & VARIABLES ======== */
:root {
    --primary-color: #3F51B5; /* Indigo de tu app */
    --secondary-color: #E8EAF6; /* Indigo claro */
    --dark-color: #1A1A1A;
    --light-color: #F8F9FA;
    --text-color: #333;
    --gray-color: #6c757d;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; color: var(--dark-color); text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul { list-style: none; }

section { padding: 80px 0; }

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #303F9F;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-full-width {
    width: 100%;
    margin-top: 1rem;
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* ======== HERO SECTION ======== */
.hero {
    /* CORRECCIÓN AQUÍ: Usando la imagen local */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* ======== PROBLEM SECTION ======== */
.problem-section {
    background-color: var(--light-color);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.problem-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.problem-card .icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.problem-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
}


/* ======== SOLUTION SECTION ======== */
.solution-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.solution-text { flex: 1; }
.solution-text h2 { text-align: left; }

.solution-image { 
    flex: 1; 
    max-width: 450px;
}
.solution-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefits-list {
    margin-top: 2rem;
    padding-left: 0;
}
.benefits-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ======== HOW IT WORKS SECTION ======== */
.how-it-works-section {
    background-color: var(--light-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.step-card {
    padding: 20px;
}

.step-card span {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
}

/* ======== PROFESSIONALS SECTION ======== */
.professionals-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.professionals-text { flex: 1; }
.professionals-text h2 { text-align: left; }
.professionals-image { flex: 1; max-width: 500px; }
.professionals-image img {
    width: 100%;
    border-radius: 12px;
}
.professionals-text .btn { margin-top: 1.5rem; }


/* ======== FINAL CTA SECTION ======== */
.final-cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.final-cta-section h2 {
    color: #fff;
}

.signup-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.signup-form input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.signup-form button {
    flex-shrink: 0;
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: #fff;
}

.signup-form button:hover {
    background-color: #333;
}


/* ======== FOOTER ======== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col .logo { color: #fff; margin-bottom: 1rem; }
.footer-col p { color: var(--gray-color); }
.footer-col h3 { font-size: 1.2rem; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-color); transition: color 0.3s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ======== NUEVOS ESTILOS PARA FORMULARIO Y PÁGINA DE GRACIAS ======== */
.form-page-section {
    background-color: var(--light-color);
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.form-container h2 {
    font-size: 2rem;
}

.form-container p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.form-notice {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 1rem;
    margin-bottom: 0;
}

.thank-you-section {
    text-align: center;
    padding: 100px 0;
}
.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}
.thank-you-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    
    .solution-content, .professionals-content {
        flex-direction: column;
        text-align: center;
    }
    .solution-text h2, .professionals-text h2 { text-align: center; }
    .professionals-content { flex-direction: column-reverse; }
}

@media (max-width: 768px) {
    .main-nav { display: none; } /* Simple hiding for now, can be replaced with a burger menu */
    .problem-grid, .steps-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero { height: 70vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .signup-form { flex-direction: column; }
    .form-container { padding: 25px; }
}
