/* ===========================
   DSN Cloud – Styles
   =========================== */

/* Base & palette */
:root {
  --bg: #020617;
  --bg-soft: #020818;
  --header-bg: #020617f2;
  --card: #020b1f;
  --border: #1f2937;
  --border-soft: #111827;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #f97316;   /* naranja */
  --accent-soft: #fed7aa;
  --accent-dark: #9a3412;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.7);
  --radius-lg: 22px;
  --radius-md: 18px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617, #020617 55%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #020617, #020617 55%, #000);
}

.section-alt .container {
  position: relative;
}

.section-title {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
}

.body-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}

.body-intro {
  max-width: 720px;
  color: var(--text-muted);
}

/* ===========================
   Header
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f97316;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 82%;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.menu a {
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
}

.menu a:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #111827;
  box-shadow: 0 14px 35px rgba(248, 113, 113, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.75);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.7);
}

/* Language toggle */
.lang-toggle {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: var(--text-main);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.lang-toggle .toggle-es {
  display: none;
}

body.is-es .lang-toggle .toggle-en {
  display: none;
}

body.is-es .lang-toggle .toggle-es {
  display: inline-flex;
}

/* Language visibility */
.lang-en {
  display: inline;
}

.lang-es {
  display: none;
}

body.is-es .lang-en {
  display: none;
}

body.is-es .lang-es {
  display: inline;
}

/* ===========================
   Hero
   =========================== */

.hero {
  padding: 38px 0 46px;
  background: radial-gradient(circle at top left, #020617, #020617 55%, #000);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 28px;
  align-items: stretch;
}

.hero-left h1 {
  font-size: 38px;
  margin: 4px 0 16px;
  letter-spacing: -0.035em;
}

.lead {
  font-size: 16px;
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 640px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero right card */
.hero-right {
  display: flex;
  align-items: stretch;
}

.hero-card {
  background: radial-gradient(circle at top left, #020b1f, #020617 60%, #000);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 18px;
  max-width: 420px;
  margin-left: auto;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-main);
}

.hero-card li + li {
  margin-top: 6px;
}

/* ===========================
   About
   =========================== */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.7fr);
  gap: 26px;
}

.bullet-list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-main);
}

.bullet-list li + li {
  margin-top: 4px;
}

.about-card {
  background: radial-gradient(circle at top left, #020b1f, #020617 60%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.about-card h3 {
  margin: 0 0 8px;
}

.about-card .mini-list {
  margin: 8px 0 10px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-block {
  display: block;
  text-align: center;
}

/* ===========================
   Plans
   =========================== */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.plan-card {
  background: radial-gradient(circle at top left, #020b1f, #020617 70%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card-featured {
  border-color: var(--accent);
  box-shadow: 0 26px 70px rgba(248, 113, 113, 0.45);
}

.plan-head h3 {
  margin: 0;
  font-size: 18px;
}

.plan-sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.plan-price {
  margin-top: 4px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 20px;
  font-weight: 700;
}

.price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.price-note {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.plan-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-main);
}

.plan-list li + li {
  margin-top: 4px;
}

.plan-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===========================
   Migration
   =========================== */

.migration-layout {
  max-width: 1120px;
}

.migration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.card {
  background: radial-gradient(circle at top left, #020b1f, #020617 60%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
}

.mini-list {
  margin: 8px 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.mini-list li + li {
  margin-top: 4px;
}

/* ===========================
   Partners
   =========================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.partners-cta {
  margin-top: 22px;
}

/* ===========================
   Tech stack
   =========================== */

.tech-stack {
  text-align: left;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stack-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  font-size: 13px;
  color: var(--text-main);
}

/* ===========================
   Contact
   =========================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 28px;
  align-items: flex-start;
}

.contact-card {
  background: radial-gradient(circle at top left, #020b1f, #020617 70%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.field label {
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text-main);
  font-size: 14px;
  padding: 9px 12px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-msg {
  margin: 10px 0 0;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}

.form-msg.success {
  background: #022c22;
  border: 1px solid #16a34a;
  color: #bbf7d0;
}

.form-msg.error {
  background: #450a0a;
  border: 1px solid #b91c1c;
  color: #fecaca;
}

/* ===========================
   Footer
   =========================== */

.footer {
  padding: 22px 0 24px;
  border-top: 1px solid var(--border);
  background: #020617;
}

.footer .small {
  margin: 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin: 26px auto 0;
    max-width: 100%;
  }

  .about-layout,
  .migration-grid,
  .partners-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu {
    display: none;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}
