/* =============================================
   RALTIA — Landing Page Styles
   Paleta: Azul oscuro + Slate + Verde eléctrico
   ============================================= */

/* ---------- RESET & BASE ---------- */
/* Neutralise Astra / theme overrides on this template */
.raltia-landing *,
.raltia-landing *::before,
.raltia-landing *::after { box-sizing: border-box; margin: 0; padding: 0; }
.raltia-landing section,
.raltia-landing div:not([class*="wp-"]):not([id*="wp-"]) {
  background-color: transparent;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0f1a;
  --bg-2:        #111827;
  --bg-3:        #1a2235;
  --border:      rgba(255,255,255,0.08);
  --text:        #e2e8f0;
  --text-muted:  #8896b3;
  --blue:        #1e40af;
  --blue-light:  #3b82f6;
  --accent:      #00e5a0;       /* verde eléctrico */
  --accent-dark: #00b37a;
  --slate:       #334155;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
  --transition:  0.2s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body,
body.raltia-landing {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section + .section { padding-top: 0; }

.accent { color: var(--accent); }
.accent-text { color: var(--accent); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none !important; }

/* ---------- SECTION HEADERS ---------- */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0b0f1a;
  box-shadow: 0 0 20px rgba(0,229,160,0.25);
}
.btn--primary:hover {
  background: #00f7ae;
  box-shadow: 0 0 32px rgba(0,229,160,0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,229,160,0.06) 0%, rgba(30,64,175,0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.proof__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof__item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.proof__item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proof__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---------- PROBLEMA ---------- */
.problema { background: var(--bg-2); }

.problema__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problema__card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.problema__card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.problema__card--accent {
  border-color: rgba(0,229,160,0.2);
  background: linear-gradient(135deg, rgba(0,229,160,0.04), var(--bg-3));
}

.problema__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.problema__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.problema__card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- CALCULADOR ---------- */
.calculador { background: var(--bg); }

.calc__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc__inputs {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc__field {}

.calc__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calc__label-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.calc__value-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 2px 10px;
  border-radius: 100px;
}

/* Slider */
.calc__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--slate);
  outline: none;
  cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,229,160,0.5);
  transition: box-shadow var(--transition);
}
.calc__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.calc__slider:hover::-webkit-slider-thumb { box-shadow: 0 0 14px rgba(0,229,160,0.7); }

.calc__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc__field--number label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.calc__input-num {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.calc__input-num:focus { border-color: var(--accent); }

/* Results */
.calc__results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc__result-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.calc__result-card--main {
  background: linear-gradient(135deg, rgba(0,229,160,0.06), var(--bg-2));
  border-color: rgba(0,229,160,0.2);
}

.result__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.result__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.result__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc__cta-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.calc__cta-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--bg-2); }

.servicios__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.servicio__card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.servicio__card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.servicio__card--featured {
  border-color: rgba(0,229,160,0.3);
  background: linear-gradient(160deg, rgba(0,229,160,0.05), var(--bg-3));
  box-shadow: 0 0 40px rgba(0,229,160,0.08);
}

.servicio__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b0f1a;
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
}

.servicio__icon { font-size: 2rem; }

.servicio__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.servicio__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.servicio__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.servicio__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.servicio__list li::first-letter { color: var(--accent); }

/* ---------- PROCESO ---------- */
.proceso { background: var(--bg); }

.proceso__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proceso__step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step__number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0,229,160,0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: right;
}

.step__content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  flex: 1;
  transition: border-color var(--transition);
}
.step__content:hover { border-color: rgba(0,229,160,0.2); }

.step__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.step__content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.step__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.15);
  padding: 3px 10px;
  border-radius: 100px;
}

.proceso__connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0,229,160,0.3), rgba(0,229,160,0.1));
  margin-left: 79px; /* align with center of step__number */
}

/* ---------- CONTACTO ---------- */
.contacto {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto__copy .section__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.contacto__copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contacto__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contacto__bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contacto__bullets li::first-letter { color: var(--accent); }

/* Form */
.form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form__field input,
.form__field select,
.form__field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-muted); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: var(--accent); }
.form__field select { appearance: none; cursor: pointer; }
.form__field select option { background: var(--bg-2); }

.form__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Success state */
.form__success {
  background: var(--bg-3);
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,229,160,0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form__success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.form__success p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer__brand .nav__logo { font-size: 1.2rem; margin-bottom: 8px; display: block; }
.footer__brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 420px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.78rem;
  color: rgba(136,150,179,0.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__toggle { display: flex; }

  /* Mobile nav open */
  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11,15,26,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 90;
  }
  .nav.nav--open .nav__links a { font-size: 1.3rem; }
  .nav.nav--open .nav__cta {
    display: flex;
    position: fixed;
    bottom: 32px;
    left: 24px; right: 24px;
    z-index: 91;
  }

  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .calc__wrapper {
    grid-template-columns: 1fr;
  }

  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 64px; }
  .hero__proof { gap: 20px; }
  .proof__divider { display: none; }

  .proceso__step {
    flex-direction: column;
    gap: 16px;
  }
  .step__number {
    text-align: left;
    font-size: 2rem;
    width: auto;
  }
  .proceso__connector { margin-left: 24px; }
}


/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-left: 4px;
}

.lang-switcher__item {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}

.lang-switcher__item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.lang-switcher__item.is-active {
  color: var(--accent);
  background: rgba(0,229,160,0.12);
}

/* Mobile: lang switcher visible en menu abierto */
@media (max-width: 900px) {
  .lang-switcher {
    order: 10; /* después del toggle */
    margin-left: 0;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav--open .lang-switcher {
    opacity: 1;
    pointer-events: all;
  }
  .lang-switcher__item {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}
