/* --- RESET BÁSICO Y FUENTES --- */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-green: #22c55e;
    --primary-blue: #3b82f6;
    --primary-purple: #a855f7;
    --gray-light: #d1d5db;
    --gray-dim: #9ca3af;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN (NAVBAR) --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Pequeña línea sutil */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* --- LOGO IGUAL QUE EN INDEX --- */
.logo-img {
    display: block;
    width: auto;
    object-fit: contain;
    
    /* Tamaño Móvil */
    height: 32px; 
    
    transition: height 0.3s ease;
}

/* Breakpoint igual que en index (868px aprox) */
@media (min-width: 868px) {
    .logo-img {
        /* Tamaño Escritorio */
        height: 100px; 
    }
    .main-nav {
        padding: 1.5rem 3rem;
    }
}

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

.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.btn-back:hover {
    color: white;
}

/* --- ESTRUCTURA PRINCIPAL (LAYOUT) --- */
.main-content {
    position: relative;
    
    /* CAMBIO IMPORTANTE: Espacio dinámico para que no se "trague" el contenido */
    padding-top: 100px; /* Móvil: Navbar ~70px -> Espacio 100px */
    
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Ajuste para escritorio cuando crece el logo */
@media (min-width: 868px) {
    .main-content {
        /* Escritorio: Navbar ~150px -> Espacio 200px para que se vea bien */
        padding-top: 200px; 
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* --- ELEMENTOS VISUALES (FONDO) --- */
.background-blob {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.15); /* Verde */
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
@media (min-width: 768px) {
    .background-blob {
        width: 800px;
        height: 800px;
    }
}

/* --- ESTILOS DE TEXTO (COLUMNA IZQUIERDA) --- */
.hero-header {
    margin-bottom: 2rem;
}

.live-badge {
    font-family: "Fira Code", monospace;
    color: #4ade80;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3.5rem;
    }
}

.text-gradient {
    background: linear-gradient(to right, #4ade80, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--gray-dim);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 450px;
    margin: 0;
}

/* --- LISTA DE CARACTERÍSTICAS --- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

.icon-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.icon-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.icon-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.feature-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.feature-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* --- TESTIMONIO --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-testimonial {
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 380px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.testimonial-quote {
    font-size: 0.8rem;
    color: #d1d5db;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.25rem 0 0 0;
}

/* --- FORMULARIO (COLUMNA DERECHA) --- */
.gradient-border-wrapper {
    padding: 1px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(22, 101, 52, 0.25);
}

.form-card {
    background: #0a0a0a;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.form-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #d1d5db;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    margin-top: 1rem;
    padding: 0.9rem;
    background: linear-gradient(to right, #22c55e, #3b82f6);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.privacy-note {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* --- FOOTER --- */
.main-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* --- ANIMACIONES --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-column.fade-in-up {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}