:root {
  /* Dark premium theme — mirrors the app's src/constants/theme.js */
  --bg: #06101F;         /* app background */
  --navy: #071525;
  --navy-2: #0d2438;
  --panel: #0D1B2E;      /* app surface (cards) */
  --soft: #0A1626;       /* app surfaceMuted */
  --soft-2: #0E2A35;
  --ink: #E8EDF4;        /* app text (near-white) */
  --muted: #6B80A0;      /* app textMuted */
  --line: #1C2C44;       /* app border */
  --blue: #06B6D4;       /* app primary (cyan) */
  --blue-dark: #0891B2;  /* app primaryDark */
  --aqua: #22D3EE;       /* app aqua */
  --water: #22D3EE;
  --water-dark: #0891B2;
  --water-soft: #0E2A35;
  --silver: #8FA3BF;     /* app silver */
  --silver-dark: #6B80A0;
  --gold: #F5B841;       /* app gold accent */
  --accent: #FB923C;     /* warm orange accent (breaks the blue) */
  --accent-2: #F97316;   /* deeper orange for gradients/hover */
  --teal: #2DD4BF;       /* verde agua / turquesa */
  --teal-2: #14B8A6;     /* teal más profundo */
  --on-primary: #04121B; /* app textOnPrimary (dark text on cyan) */
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(34, 211, 238, 0.06), transparent 24%),
    linear-gradient(180deg, #06101F 0%, #081426 55%, #06101F 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 86px);
  background: linear-gradient(90deg, rgba(7,21,37,0.98), rgba(13,36,56,0.96));
  border-bottom: 1px solid rgba(37, 189, 169, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(7, 21, 37, 0.16);
}
.brand {
  width: 300px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(16, 174, 232, 0.26));
}
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,0.72); font-weight: 700; font-size: 14px; }
.desktop-nav a { transition: color 180ms ease; }
.desktop-nav a:hover { color: #8ce8dc; }
.login-link {
  border: 1px solid rgba(34, 211, 238, 0.45);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.28);
}
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; background: rgba(255,255,255,0.08); }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; }
.mobile-nav { display: none; padding: 0 18px 18px; border-bottom: 1px solid rgba(202,166,74,0.22); background: var(--navy); }
.mobile-nav.open { display: grid; gap: 10px; }
.mobile-nav a { padding: 12px 10px; border-radius: 12px; background: rgba(255,255,255,0.08); color: #fff; font-weight: 700; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  padding: clamp(44px, 6vw, 72px) clamp(22px, 6vw, 96px);
  background:
    radial-gradient(circle at 82% 78%, rgba(251,146,60,0.14), transparent 30%),
    radial-gradient(circle at 78% 26%, rgba(34,211,238,0.12), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(6,182,212,0.08), transparent 32%),
    linear-gradient(135deg, #0A1626 0%, #06101F 60%, #0C1A2C 100%);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.15vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: 0; margin-bottom: 18px; }
h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 8px; letter-spacing: 0; }
.hero-text { max-width: 585px; color: var(--muted); font-size: 18px; line-height: 1.65; margin-bottom: 28px; }
.hero-actions, .contact-actions, .download-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.trust-row li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  flex: 0 0 auto;
}
.primary-button, .secondary-button, .contact-actions a, .service-card a, .download-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.primary-button:hover, .service-card a:hover, .contact-actions a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.40);
}
.secondary-button:hover, .contact-actions a:hover, .download-row button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--water);
  background: #12263B;
}
.primary-button:active, .secondary-button:active, .service-card a:active { transform: translateY(0); }
a:focus-visible, button:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible {
  outline: 3px solid rgba(16, 174, 232, 0.55);
  outline-offset: 2px;
}
.primary-button, .service-card a, .contact-actions a:first-child {
  background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
  color: var(--on-primary);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.30);
}
.secondary-button, .contact-actions a, .download-row button {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.download-row button:disabled { opacity: 0.72; cursor: not-allowed; }

.hero-panel { display: grid; place-items: center; }
.hero-photo {
  position: relative;
  width: min(100%, 560px);
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(7, 21, 37, 0.28);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: rgba(7, 21, 37, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 12px 30px rgba(7, 21, 37, 0.3);
}
.hero-badge span { font-size: 13px; font-weight: 600; opacity: 0.85; }
.hero-badge strong { font-size: 30px; line-height: 1; color: var(--accent); }

.gallery-section { padding: clamp(56px, 7vw, 92px) clamp(18px, 6vw, 88px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(16, 32, 51, 0.08);
  transition: transform var(--ease), box-shadow var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45); border-color: rgba(45, 212, 191, 0.55); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(180deg, transparent, rgba(7, 21, 37, 0.82));
}

.intro-band, .work-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: start;
  margin: 0 clamp(18px, 6vw, 88px);
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, #0D1B2E, #0A1626);
}
.intro-band {
  border-color: rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 88% 20%, rgba(6,182,212,0.16), transparent 40%),
    linear-gradient(135deg, #0C2036, #081426 70%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}
.intro-band .eyebrow { color: var(--accent); }
.intro-band h2 { color: #fff; }
.intro-band p { color: rgba(255,255,255,0.72); }
.intro-band p, .work-section p, .section-heading p, .app-card p, .service-card p, .contact-section p, .download-note { color: var(--muted); line-height: 1.7; }
.intro-band p { color: rgba(255,255,255,0.72); }

.services-section, .app-section, .contact-section {
  padding: clamp(68px, 8vw, 110px) clamp(18px, 6vw, 88px);
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  border-color: rgba(34, 211, 238, 0.5);
}
.service-card.featured {
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(180deg, #241A12, #0C1D30 55%);
  box-shadow: 0 12px 38px rgba(251, 146, 60, 0.16);
}
.service-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0e04;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.popular { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 999px; background: var(--water-dark); color: #fff; font-size: 12px; font-weight: 800; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.service-top span { color: var(--accent); font-size: 34px; font-weight: 800; }
.service-card ul { display: grid; gap: 9px; padding: 0; margin: 10px 0 24px; list-style: none; color: var(--silver); }
.service-card li { position: relative; padding-left: 24px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--blue)); }
.service-card a { margin-top: auto; }

.app-section { background: linear-gradient(180deg, #081426, #0A1B2E 72%, #06101F); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.app-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3); transition: transform var(--ease), box-shadow var(--ease); overflow: hidden; }
.app-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.app-card h3 { color: var(--teal); }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45); }
.download-note { margin: 12px 0 0; font-size: 14px; }
.work-section {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 50%, rgba(45, 212, 191, 0.18), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(251, 146, 60, 0.10), transparent 34%),
    linear-gradient(135deg, #0D1B2E, #0A1626);
}
.work-copy { max-width: 720px; }
.work-copy h2 { margin-bottom: 12px; }
.work-copy p:last-child { margin-bottom: 0; }
.detailer-open-button {
  min-width: 220px;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.detailer-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}
.detailer-dialog::backdrop {
  background: rgba(7, 21, 37, 0.72);
  backdrop-filter: blur(6px);
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 0;
}
.dialog-header h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 38px); }
.dialog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font: 400 30px/1 Inter, sans-serif;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--water); color: var(--water-dark); }
.dialog-intro { margin: 12px 26px 20px; color: var(--muted); line-height: 1.6; }
.detailer-form {
  display: grid;
  gap: 16px;
  margin: 0 26px 26px;
  padding: 24px;
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detailer-form label {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 800;
}
.detailer-form input,
.detailer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}
.detailer-form input::placeholder,
.detailer-form textarea::placeholder { color: var(--silver-dark); }
.detailer-form input { min-height: 48px; padding: 0 14px; }
.detailer-form textarea { resize: vertical; min-height: 92px; padding: 13px 14px; }
.detailer-form input:focus,
.detailer-form textarea:focus {
  border-color: rgba(34,211,238,0.72);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15);
}
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--soft);
}
.choice-row input { width: 18px; min-height: 18px; accent-color: var(--water-dark); }
.form-status { min-height: 22px; margin: -4px 0 0; color: var(--blue); font-weight: 800; }
.form-status.error { color: #F87171; }
.contact-section { text-align: center; background: var(--soft); }
.contact-section p { max-width: 560px; margin-left: auto; margin-right: auto; }
.contact-actions { justify-content: center; margin: 28px 0 20px; }
.contact-section strong { color: var(--blue); font-size: 22px; }

.policy-page {
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 6vw, 88px);
}
.policy-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(6,182,212,0.16), transparent 36%),
    linear-gradient(135deg, #0D1B2E, #081426 72%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}
.policy-panel h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 62px);
}
.policy-panel > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.policy-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.policy-grid h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.policy-grid p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 34px 18px;
  color: rgba(255,255,255,0.66);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--teal) 50%, var(--accent)) 1;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.site-footer img {
  width: 220px;
  height: 58px;
  object-fit: contain;
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 12px rgba(16, 174, 232, 0.18));
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 720px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--teal); }

@media (max-width: 980px) {
  .desktop-nav, .login-link { display: none; }
  .menu-button { display: block; }
  .hero, .intro-band, .work-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .services-grid, .app-grid, .gallery-grid, .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { height: 70px; padding-inline: 14px; }
  .brand { width: 220px; height: 46px; }
  .hero { padding-top: 34px; }
  .hero-photo { width: 100%; }
  .services-grid, .app-grid, .gallery-grid, .policy-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .intro-band, .work-section { margin-inline: 14px; padding: 24px; border-radius: 24px; }
  .detailer-open-button { width: 100%; }
  .detailer-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .dialog-header { padding: 20px 18px 0; }
  .dialog-intro { margin-inline: 18px; }
  .detailer-form { margin: 0 18px 18px; padding: 18px; }
  .primary-button, .secondary-button, .contact-actions a, .download-row button { width: 100%; }
  .policy-actions .primary-button, .policy-actions .secondary-button { width: 100%; }
}
