/* Variables CSS de la paleta solicitada y otros estilos base */
:root {
    --color-bg: #F8FAF7;
    --color-primary: #4F9D69;
    --color-primary-hover: #3E8054;
    --color-secondary: #4A90A4;
    --color-text-main: #1F2933;
    --color-text-muted: #5B6670;
    --color-white: #FFFFFF;
    --color-error: #E53E3E;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.3s ease;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    /* Para scroll suave al hacer click en enlaces internos */
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--color-text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Tipografía */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilidades */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-light {
    background-color: rgba(79, 157, 105, 0.05);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hidden {
    display: none !important;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    outline: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 1. Header */
.header {
    padding: 1.25rem 0;
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav a:not(.btn):hover {
    color: var(--color-primary);
}

/* 2. Hero */
.hero {
    padding: 6rem 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(0,0,0,0.03);
    /* Inclinación para dar aspecto de mockup dinámico */
    transform: rotate(2deg);
    transition: var(--transition);
}

.mockup-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.mockup-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-list li {
    background-color: var(--color-bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.mockup-note {
    font-style: italic;
    color: var(--color-text-muted);
}

.status-confirmed {
    color: var(--color-primary);
    font-weight: 600;
    margin-left: auto;
}

.status-pending {
    color: #DD6B20;
    font-weight: 600;
    margin-left: auto;
}

.emoji {
    font-size: 1.25rem;
}

/* 3. Sección problema */
.problem-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.explanation {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* 4. Sección solución */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background-color: var(--color-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 5. Sección roles */
.roles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.role-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--color-primary);
}

.role-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* 6. Sección cómo funciona */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-sm);
}

.step p {
    font-weight: 500;
    font-size: 1.1rem;
}

/* 7. Sección beneficios */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefits-list li {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.benefits-list li::before {
    content: '💚';
    font-size: 1.25rem;
}

/* 8. Sección acceso anticipado */
.early-access {
    padding: 6rem 0;
}

.access-box {
    background-color: var(--color-white);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(79, 157, 105, 0.2);
}

.access-box h2 {
    color: var(--color-primary);
}

.access-form {
    max-width: 450px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    text-align: left;
}

input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #CBD5E0;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 157, 105, 0.2);
}

.error-msg {
    display: none;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.form-group.has-error .error-msg {
    display: block;
}

.form-group.has-error input {
    border-color: var(--color-error);
}

.success-msg {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(79, 157, 105, 0.1);
    color: var(--color-primary-hover);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
}

/* 9. Footer */
.footer {
    background-color: #1A202C; /* Azul oscuro elegante */
    color: var(--color-white);
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    color: var(--color-white);
}

.footer-info p {
    color: #A0AEC0;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #A0AEC0;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Media Queries para Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-mockup {
        order: 2;
        width: 100%;
    }
    
    .mockup-card {
        transform: rotate(0);
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
