/* ==========================================================================
   @import — Google Fonts
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap");

/* ==========================================================================
   CSS Variables — Futuristic Monochrome
   ========================================================================== */
:root {
  /* Neutrals */
  --clr-bg: #0e0e0e;
  --clr-surface: #1b1b1b;
  --clr-surface-alt: #262626;
  --clr-border: #3d3d3d;
  --clr-text: #e5e5e5;
  --clr-text-light: #bdbdbd;

  /* Accent (subtle, mantiene esquema monocromático) */
  --clr-accent: #8f8f8f;

  /* Gradients */
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));

  /* Elevation & radius */
  --radius: 12px;
  --shadow-elevate: 0 2px 10px rgba(0, 0, 0, 0.35);

  /* Typography scale */
  --fs-900: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-800: 2.25rem;
  --fs-700: 1.75rem;
  --fs-600: 1.25rem;
  --fs-500: 1rem;
}

/* ==========================================================================
   Global Reset / Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 1rem;
  color: var(--clr-text);
  text-align: center;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
p  { font-size: var(--fs-500); margin: 0 0 1rem; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--clr-accent); text-decoration: none; }
a:hover, a:focus { color: #fff; text-decoration: underline; }

section { padding: 4rem 1rem; position: relative; }
.parallax {
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* ==========================================================================
   Utility & Layout Classes
   ========================================================================== */
.container { width: min(90%, 1200px); margin-inline: auto; }
.flex { display: flex; align-items: center; }
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.center { text-align: center; }
.text-shadow { text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: var(--clr-surface);
  padding: 0.75rem 1rem;
  z-index: 800;
  box-shadow: var(--shadow-elevate);
}
.logo { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; color: #fff; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { font-size: 0.875rem; color: var(--clr-text-light); }
.nav a:hover { color: #fff; }
.burger { background: none; border: none; cursor: pointer; display: none; flex-direction: column; gap: 4px; margin-left: auto; }
.burger span { width: 22px; height: 2px; background: #fff; transition: transform .3s ease; }

/* Mobile Nav */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; background: var(--clr-surface-alt); padding: 1rem; display: none; }
  .nav.open { display: flex; }
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn, button, input[type="submit"] {
  cursor: pointer;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--clr-accent);
  border: none;
  border-radius: var(--radius);
  transition: transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .25s ease;
}
.btn-primary { background: #fff; color: #000; }
.btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,.4);
}

/* Toggle Switch */
.switch { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.switch input { display: none; }
.slider {
  width: 40px; height: 20px;
  background: var(--clr-border); border-radius: 20px; position: relative; transition: background .3s;
}
.slider::before {
  content: ""; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  position: absolute; top: 1px; left: 1px;
  transition: transform .35s cubic-bezier(.175,.885,.32,1.275);
}
input:checked + .slider { background: var(--clr-accent); }
input:checked + .slider::before { transform: translateX(20px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  color: #fff;
  padding: 8rem 1rem 6rem;
  text-align: center;
}
.hero-text { font-size: var(--fs-600); max-width: 40ch; margin-inline: auto 2rem; }

/* ==========================================================================
   Card Component
   ========================================================================== */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.175,.885,.32,1.275);
}
.card:hover { transform: translateY(-8px); }

.card-image { width: 100%; height: 260px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; margin: 0 auto; }

.card-content { padding: 1rem 1.25rem; }

/* ==========================================================================
   Accordion (details)
   ========================================================================== */
details.accordion {
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
}
details[open] summary::after { transform: rotate(180deg); }
details summary { list-style: none; font-weight: 600; position: relative; padding-right: 1.25rem; }
details summary::after {
  content: "⌄"; position: absolute; right: 0; top: 0;
  transition: transform .35s cubic-bezier(.175,.885,.32,1.275);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.contact-form {
  width: min(100%, 600px);
  margin: 2rem auto 0;
  display: grid;
  gap: 1.5rem;
}
.field-group { display: flex; flex-direction: column; }
input, textarea {
  background: var(--clr-surface-alt);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
input:focus, textarea:focus { outline: 2px solid var(--clr-accent); }

/* ==========================================================================
   Read-More Links
   ========================================================================== */
.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #fff;
  position: relative;
}
.read-more::after {
  content: ""; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: #fff;
  transition: width .3s cubic-bezier(.175,.885,.32,1.275);
}
.read-more:hover::after { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--clr-surface);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
}
.grid-footer { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: var(--clr-text-light); font-size: 0.875rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: 0.8rem; color: var(--clr-text-light); margin-top: 2rem; }

/* ==========================================================================
   Social Links (solo texto)
   ========================================================================== */
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { position: relative; padding-left: 1.25rem; }
.footer ul li a::before {
  content: "•";
  position: absolute; left: 0; top: 0;
  color: var(--clr-accent);
}

/* ==========================================================================
   Success Page
   ========================================================================== */
.page-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

/* ==========================================================================
   Padding for Privacy & Terms
   ========================================================================== */
.page-legal { padding-top: 100px; }

/* ==========================================================================
   Animations (Bounce-In)
   ========================================================================== */
@keyframes bounceIn {
  0%   { transform: scale(0.9); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

[data-sr] { opacity: 0; }
[data-sr].is-revealed { animation: bounceIn 0.8s forwards; }

/* ==========================================================================
   Misc.
   ========================================================================== */
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
}
.parallax > * { position: relative; }