/* --- VARIABLES GLOBALES --- */
:root {
    --primary-color: #2D5A27;
    --primary-hover: #1f401b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- SECCIÓN HERO (PRINCIPAL) --- */
.hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background-color: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 90, 39, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    fill: currentColor;
}

/* --- MOCKUP DE LA APP --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background-color: #1e293b;
    border-radius: 40px;
    border: 12px solid #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Resplandor de fondo detrás del teléfono */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(45,90,39,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- LA TARJETA (MODAL CARD) --- */
.modal-card {
    background-color: var(--white);
    width: 90%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    border-radius: 32px; /* Super redondeado tipo burbuja */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    
    /* Animación: Aparece desde abajo */
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cuando el overlay se activa, la tarjeta sube */
.modal-overlay.active .modal-card {
    transform: translateY(0);
}

/* Ajustes para el botón de cerrar dentro de la tarjeta */
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-light);
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Títulos y textos */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
}

.modal-title span {
    color: var(--primary-color);
}