
/* VARIABLES GLOBALES */
:root {
    --brand-dark: #0A192F;
    --brand-blue: #004B87;
    --brand-teal: #00B4A0;
    --brand-teal-glow: rgba(0, 180, 160, 0.4);
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --code-bg: #1E293B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg-main); color: var(--text-main); -webkit-font-smoothing: antialiased; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.mb-5 { margin-bottom: 50px; }
.text-white { color: var(--white); }
.text-teal { color: var(--brand-teal); margin-top: 5px; }

/* NAVBAR & BOTONES */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; position: fixed; width: 100%; top: 0; z-index: 1000; }
.glass { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.3); }
.logo { height: 75px; width: auto; max-width: 250px; object-fit: contain; }
a { text-decoration: none; font-weight: 700; border-radius: 8px; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--brand-teal); color: var(--white); padding: 12px 24px; border: none; cursor: pointer; }
.btn-primary:hover { background: #009688; transform: translateY(-2px); }
.glow { box-shadow: 0 10px 20px var(--brand-teal-glow); }
.btn-ghost { color: var(--brand-blue); padding: 12px 24px; }
.btn-ghost:hover { background: rgba(0, 75, 135, 0.05); }
.large { padding: 16px 32px; font-size: 1.1rem; }
.w-100 { width: 100%; justify-content: center; }

/* HERO */
.dark-gradient { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-blue) 100%); color: var(--white); }
.hero { padding: 180px 0 100px; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; font-size: 0.85rem; margin-bottom: 24px; backdrop-filter: blur(4px); }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; }
.text-gradient { background: linear-gradient(to right, #00B4A0, #4ADE80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-text { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.hero-visual { position: relative; display: flex; justify-content: center; width: 100%; }
.blob-bg { position: absolute; width: 500px; height: 500px; background: var(--brand-teal); border-radius: 50%; filter: blur(90px); opacity: 0.2; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }
.floating-mockup { position: relative; z-index: 2; width: 100%; max-width: 600px; animation: float 6s ease-in-out infinite; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); object-fit: contain; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* MÉTRICAS & SECCIONES */
.metrics-bar { background: var(--brand-dark); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.metrics-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.metric-item h3 { font-size: 3rem; font-weight: 800; margin-bottom: 5px; }
.metric-item p { color: rgba(255,255,255,0.7); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.section { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-main); }
.section-title { font-size: 2.5rem; color: var(--brand-dark); margin-bottom: 20px; font-weight: 800; }
.subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }
.text-light { color: rgba(255,255,255,0.7); }

/* TARJETAS */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px; border-radius: 16px; border: 1px solid #E2E8F0; transition: all 0.3s; }
.hover-up:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--brand-teal); }
.card-icon { width: 60px; height: 60px; background: rgba(0, 180, 160, 0.1); color: var(--brand-teal); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; transition: all 0.3s; }
.hover-up:hover .card-icon { background: var(--brand-teal); color: var(--white); }
.card h3 { font-size: 1.3rem; color: var(--brand-dark); margin-bottom: 15px; }

/* API SECTION */
.api-section { padding: 120px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.api-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.api-info { display: flex; flex-direction: column; gap: 15px; }
.api-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1); padding: 25px; border-radius: 12px; backdrop-filter: blur(10px); }
.api-card h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.api-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 10px; }
.api-card code { background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--brand-teal); }
.method { padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 800; }
.method.get { background: #3B82F6; color: var(--white); }
.method.post { background: #10B981; color: var(--white); }
.api-code { background: var(--code-bg); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.code-header { background: rgba(0,0,0,0.3); padding: 15px 20px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }
.code-title { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-left: 15px; font-family: 'Fira Code', monospace; }
.api-code pre { margin: 0; padding: 25px; overflow-x: auto; flex: 1; }
.api-code code { font-family: 'Fira Code', monospace; color: #E2E8F0; font-size: 0.9rem; line-height: 1.6; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; text-align: left; }
.faq-item { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid #E2E8F0; }
.faq-item h4 { color: var(--brand-blue); font-size: 1.2rem; margin-bottom: 15px; }

/* FORMULARIO PREMIUM SÚPER DESTACADO */
.form-section { padding: 100px 0; }
.form-wrapper { display: flex; background: var(--white); border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); overflow: hidden; max-width: 950px; margin: 0 auto; border: 1px solid #E2E8F0; }

/* Panel Izquierdo Azul */
.form-info-side { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-blue) 100%); color: var(--white); padding: 50px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.form-info-side h3 { font-size: 1.8rem; margin-bottom: 25px; font-weight: 700; }
.demo-features { list-style: none; }
.demo-features li { margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.85); }
.trust-badge-form { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.95rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 10px;}

/* Formulario Derecho Blanco */
.form-input-side { flex: 1.2; padding: 50px 40px; background: var(--white); }
.form-group-modern { margin-bottom: 22px; text-align: left; }
.form-group-modern label { display: block; font-weight: 600; color: var(--brand-dark); margin-bottom: 8px; font-size: 0.95rem; }
.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper > i:first-child { position: absolute; left: 16px; color: var(--text-muted); font-size: 1rem; }

.form-group-modern input, 
.form-group-modern select { width: 100%; padding: 14px 16px 14px 45px; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 1rem; color: var(--text-main); font-family: inherit; transition: all 0.3s ease; background: var(--bg-light); box-sizing: border-box; }
.select-wrapper select { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; }
.select-arrow { position: absolute; right: 16px; color: var(--text-muted); pointer-events: none; }
.form-group-modern input:focus, 
.form-group-modern select:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 4px rgba(0, 180, 160, 0.15); background: var(--white); }

/* FOOTER */
.footer { background: #050D1A; color: rgba(255,255,255,0.5); padding: 40px 0; }

/* MEDIA QUERIES (Siempre al final) */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero-actions { justify-content: center; }
    .hide-mobile { display: none; }
    .api-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .form-wrapper { flex-direction: column; }
    .form-info-side, .form-input-side { padding: 30px 25px; }
}
