/* ============================================
   SOLUTION EMPRESAS
   Tema: Verde Esmeralda + Ambar
   Estructura: Cards con borde + Steps + FAQ
   ============================================ */

:root {
  --slate: #0f172a;
  --slate-light: #1e293b;
  --slate-card: #1e293b;
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-dim: rgba(5, 150, 105, 0.1);
  --amber: #d97706;
  --amber-light: #f59e0b;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(5, 150, 105, 0.2);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--slate);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--amber-light); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; }

.logo-icon {
  width: 40px; height: 40px;
  background: var(--emerald);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.35);
}

.nav { display: flex; align-items: center; gap: 34px; }

.nav a { font-size: 0.88rem; font-weight: 500; color: var(--text-dim); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--emerald-light); transition: width 0.3s ease; }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav-cta { background: var(--emerald); color: #fff !important; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.82rem; box-shadow: 0 0 15px rgba(5, 150, 105, 0.3); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--emerald-light); color: #fff !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background: linear-gradient(135deg, #0f172a 0%, #111f3d 50%, #0f172a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12), transparent 70%);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08), transparent 70%);
  border-radius: 50%;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero .container { position: relative; z-index: 2; }

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--emerald-dim); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; color: var(--emerald-light);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
}

.hero-badge .pulse { width: 8px; height: 8px; background: var(--emerald); border-radius: 50%; box-shadow: 0 0 10px var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -2px; margin-bottom: 20px; }
.hero h1 span { color: var(--emerald-light); }
.hero-desc { font-size: 1.1rem; color: var(--text-dim); max-width: 500px; margin-bottom: 32px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: var(--transition); border: none; }
.btn-emerald { background: var(--emerald); color: #fff; box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3); }
.btn-emerald:hover { background: var(--emerald-light); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(5, 150, 105, 0.4); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald-light); background: var(--emerald-dim); }

/* Hero visual - 3 stat cards */
.hero-stats { display: flex; flex-direction: column; gap: 16px; }

.stat-card {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--emerald); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.stat-card .sc-num { font-size: 2rem; font-weight: 900; color: var(--emerald-light); line-height: 1; }
.stat-card .sc-label { font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; }
.stat-card .sc-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ========== SECTIONS ========== */
.section { position: relative; padding: 90px 0; z-index: 2; }
.section-alt { background: var(--slate-light); }

.sheader { text-align: center; max-width: 620px; margin: 0 auto 55px; }

.stag {
  display: inline-block; background: var(--emerald-dim);
  color: var(--emerald-light); padding: 6px 18px;
  border-radius: 50px; font-size: 0.72rem;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 16px;
}

.sheader h2 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 14px; letter-spacing: -1px; }
.sheader p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.7; }

/* ========== TOOLS GRID ========== */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tool-card {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}

.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--emerald);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.tool-card:hover { border-color: var(--emerald); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 56px; height: 56px;
  background: var(--emerald);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.tool-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.tool-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 14px; }

.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag { background: var(--emerald-dim); color: var(--emerald-light); padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; }

/* ========== STEPS HORIZONTAL ========== */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.step-card {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  text-align: center; transition: var(--transition);
  position: relative;
}

.step-card::after {
  content: '>'; position: absolute;
  right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--emerald); font-size: 1.2rem; font-weight: 700;
}

.step-card:last-child::after { display: none; }

.step-card:hover { border-color: var(--emerald); transform: translateY(-6px); }

.step-num {
  width: 44px; height: 44px;
  background: var(--emerald);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
}

.step-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.55; }

/* ========== FAQ ========== */
.faq-wrap { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
  overflow: hidden; transition: var(--transition);
}

.faq-item:hover { border-color: rgba(5, 150, 105, 0.3); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; background: none;
  border: none; width: 100%; color: #fff;
  font-size: 1rem; font-weight: 600; text-align: left;
  font-family: inherit;
}

.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--emerald); transition: transform 0.3s ease; min-width: 24px; text-align: center; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.active .faq-a { max-height: 300px; padding: 0 24px 20px; }
.faq-a p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

/* ========== RESPONSABLE ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.about-content h2 { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.about-content > p { font-size: 1rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; }

.r-card {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
}

.r-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--emerald-light); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.ri { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ri:last-child { margin-bottom: 0; }
.ri-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--emerald);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; margin-top: 2px;
}
.ri-lbl { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.ri-val { font-size: 0.88rem; color: var(--text); font-weight: 500; }

.warn-box {
  margin-top: 18px;
  background: rgba(255, 193, 7, 0.05); border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.warn-box span { font-size: 1.1rem; margin-top: 2px; }
.warn-box p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }

/* ========== CTA ========== */
.cta-section { background: var(--slate-light); padding: 90px 0; position: relative; overflow: hidden; z-index: 2; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(5, 150, 105, 0.06), transparent 70%); pointer-events: none; }

.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; position: relative; }
.cta-inner h2 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-inner > p { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 32px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }

.contact-card {
  background: var(--slate-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-align: center; transition: var(--transition);
}

.contact-card:hover { border-color: rgba(5, 150, 105, 0.3); transform: translateY(-4px); }

.contact-card .cc-icon {
  width: 48px; height: 48px;
  background: var(--emerald);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 12px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.contact-card h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.contact-card p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

/* ========== FOOTER ========== */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 50px 0 0; background: var(--slate); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.f-brand .logo { margin-bottom: 14px; }
.f-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.f-col h4 { font-size: 0.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.f-col a { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.f-col a:hover { color: var(--emerald-light); }
.f-contact .fc { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.82rem; color: var(--text-muted); }
.f-contact .fc span { margin-top: 2px; }
.f-bot { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.f-bot p { font-size: 0.75rem; color: var(--text-muted); }

/* ========== ADMIN PANEL ========== */
.admin-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2500; display: none; }
.admin-overlay.active { display: block; }

.admin-panel {
  position: fixed; top: 0; right: -440px;
  width: 420px; height: 100vh;
  background: var(--slate-light);
  border-left: 1px solid var(--border);
  z-index: 3000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.admin-panel.active { right: 0; }

.ap-h { padding: 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.ap-h h2 { font-size: 1.1rem; font-weight: 700; color: #fff; }

.btn-x { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 4px; transition: var(--transition); }
.btn-x:hover { color: #fff; }

.ap-b { padding: 28px; }
.ap-g { margin-bottom: 24px; }
.ap-g label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.ap-g input[type="text"] { width: 100%; padding: 12px 14px; background: var(--slate-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; transition: var(--transition); }
.ap-g input[type="text"]:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 10px rgba(5, 150, 105, 0.1); }

.t-row { display: flex; align-items: center; justify-content: space-between; }
.t-switch { position: relative; width: 50px; height: 26px; cursor: pointer; }
.t-switch input { opacity: 0; width: 0; height: 0; }
.t-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--slate-card); border-radius: 26px; transition: 0.3s; }
.t-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.t-switch input:checked + .t-slider { background: var(--emerald); }
.t-switch input:checked + .t-slider::before { transform: translateX(24px); }

.admin-status { padding: 14px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; text-align: center; margin-bottom: 24px; }
.admin-status.ok { background: rgba(5, 150, 105, 0.12); color: var(--emerald-light); border: 1px solid var(--border); }
.admin-status.off { background: var(--slate-card); color: var(--text-muted); border: 1px solid var(--border); }

.ap-info { background: var(--slate-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 24px; }
.ap-info p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }
.ap-info p:last-child { margin-bottom: 0; }
.ap-info code { background: var(--slate); padding: 2px 8px; border-radius: 4px; font-size: 0.76rem; color: var(--emerald-light); }

.btn-save { width: 100%; padding: 14px; background: var(--emerald); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 800; cursor: pointer; transition: var(--transition); }
.btn-save:hover { background: var(--emerald-light); box-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 140px 0 80px; min-height: 100vh; position: relative; z-index: 2; }
.legal-head { text-align: center; margin-bottom: 50px; }
.legal-head h1 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.legal-head p { font-size: 1rem; color: var(--text-muted); }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-block { margin-bottom: 36px; }
.legal-block h2 { font-size: 1.2rem; font-weight: 700; color: var(--emerald-light); margin-bottom: 12px; }
.legal-block p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 10px; }
.legal-block ul { margin: 12px 0 12px 22px; }
.legal-block li { font-size: 0.95rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 6px; }

.warn-legal { background: rgba(255, 193, 7, 0.05); border: 1px solid rgba(255, 193, 7, 0.15); border-radius: var(--radius); padding: 20px 24px; margin: 30px 0; }
.warn-legal p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin: 0; }

.r-info { background: var(--slate-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 30px; }
.r-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--emerald-light); margin-bottom: 14px; }
.r-info p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 6px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { order: -1; }
  .tools-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .sheader h2 { font-size: 1.9rem; }
  .f-grid { grid-template-columns: 1fr; gap: 30px; }
  .admin-panel { width: 100%; right: -110%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 60px 0; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate); }
::-webkit-scrollbar-thumb { background: var(--slate-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

::selection { background: var(--emerald); color: #fff; }
