/* ====== Sky AutoWorks · Sorteo "Regreso Seguro" ====== */
/* Diseño limpio por defecto. Colores y logo marcados como placeholders;
   ajusta las variables de marca abajo cuando tengas el branding final.   */

:root {
  /* --- Identidad oficial Sky AutoWorks (brand guide) --- */
  --navy:    #1B1B1B;   /* Negro Carbón — fondos oscuros / texto */
  --navy-2:  #005A94;   /* Azul Oscuro — degradado hero */
  --marine:  #005A94;   /* Azul Oscuro */
  --sky:     #1698D0;   /* Sky Blue — primario */
  --sky-dk:  #005A94;   /* Azul Oscuro — hover / enlaces */
  --azure:   #3D99D5;   /* Azul Claro — acentos */
  --accent:  #1698D0;   /* CTA */
  --accent-dk:#0E7AAD;  /* CTA hover */

  --ink:     #1B1B1B;   /* texto principal (Negro Carbón) */
  --muted:   #5F6368;   /* Gris Titanio — texto secundario */
  --line:    #E2E6EA;   /* bordes */
  --bg:      #FFFFFF;
  --bg-alt:  #F1F5F8;   /* gris muy claro — secciones alternas */
  --white:   #FFFFFF;

  --radius:  16px;
  --radius-sm: 10px;
  --shadow:  0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, .14);

  --maxw: 1080px;
  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Montserrat', var(--font);
  --font-tech: 'Rajdhani', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
a { color: var(--sky-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ====== Botones ====== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-head);
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 8px 20px rgba(22, 152, 208, .32);
}
.btn:hover { background: var(--accent-dk); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn--full { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.brand__name { font-family: var(--font-head); font-size: 1.1rem; }
.brand__logo { height: 46px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__links .btn { color: var(--white); }

/* ====== Hero ====== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(22,152,208,.32), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 92px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.hero__inner { max-width: 820px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700;
  color: var(--azure); margin: 0 0 14px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 18px; font-weight: 800; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin: 0 0 14px; color: #Eaf2fb; }
.hero__lead strong { color: #fff; }
.hero__sub { font-size: 1.05rem; color: #B9C9DD; margin: 0 0 30px; max-width: 640px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin: 22px 0 0; font-size: .9rem; color: #9fb2c9; }

/* ====== Secciones ====== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 12px; text-align: center; }
.section__intro { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* ====== Pasos ====== */
.steps {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--sky-dk));
  color: #fff; font-family: var(--font-tech); font-weight: 700; font-size: 1.35rem;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--ink); }

/* ====== Premios ====== */
.prizes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 44px; align-items: stretch;
}
.prize {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.prize--1 {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  position: relative;
}
.prize--1::before {
  content: "Gran premio"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white); font-weight: 700; font-family: var(--font-head);
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.prize__rank { font-family: var(--font-head); font-weight: 800; color: var(--sky-dk); font-size: 1.15rem; }
.prize--1 .prize__rank { color: var(--marine); }
.prize__amount { font-family: var(--font-tech); font-size: 2.4rem; font-weight: 700; margin: 6px 0 4px; letter-spacing: .01em; }
.prize__amount span { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); font-family: var(--font); }
.prize__list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.prize__list li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); }
.prize__list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--sky); font-weight: 800;
}
.prizes__note { text-align: center; color: var(--muted); font-size: .92rem; margin: 34px auto 0; max-width: 620px; }

/* ====== Fechas ====== */
.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.date {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.date__label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--muted); }
.date__value { font-family: var(--font-tech); font-weight: 700; font-size: 1.35rem; margin-top: 8px; color: var(--sky-dk); }

/* ====== Formulario ====== */
.form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); margin-top: 8px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
.req { color: #d33; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(22,152,208,.20);
}
.field textarea { resize: vertical; }
.hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; margin: 0 0 20px; }
.fieldset legend { font-family: var(--font-head); font-weight: 700; padding: 0 8px; color: var(--navy); }
.field--check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--sky); }
.check span { font-size: .95rem; color: var(--ink); }
.form__status { margin: 16px 0 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form__status.ok { color: #1a7f44; }
.form__status.err { color: #c0392b; }
.form__legal { margin: 18px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.field.invalid input, .field.invalid textarea { border-color: #e07; box-shadow: 0 0 0 4px rgba(238,0,119,.12); }

/* ====== Reglas ====== */
.reglas .section__title { margin-bottom: 26px; }
.legal-notice {
  background: #FFF7E6; border: 1px solid #F4D58D; color: #6b4e00;
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 24px; font-size: .92rem;
}
.tag {
  display: inline-block; background: var(--sky); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 6px; vertical-align: middle; margin-right: 4px;
}
.rule { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.rule summary {
  cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 700;
  color: var(--navy); list-style: none; position: relative;
}
.rule summary::-webkit-details-marker { display: none; }
.rule summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.3rem; color: var(--sky); }
.rule[open] summary::after { content: "–"; }
.rule[open] summary { border-bottom: 1px solid var(--line); }
.rule ul, .rule p { padding: 0 20px; }
.rule ul { margin: 14px 0; padding-left: 40px; }
.rule li { margin-bottom: 8px; }
.rule p { margin: 14px 0; }
.rule__warn { background: #FDECEC; border-left: 3px solid #e74c3c; color: #7b241c; padding: 12px 16px !important; margin: 14px 20px !important; border-radius: 6px; }
.reglas__foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 26px; font-style: italic; }

/* ====== Footer ====== */
.footer { background: var(--navy); color: #cdd9e8; padding: 50px 0 36px; }
.footer__inner { display: grid; gap: 26px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__logo { height: 64px; width: auto; }
.footer__name { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.2rem; }
.footer__tag { color: var(--sky); font-size: .9rem; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__contact a, .footer__contact span { color: #aebfd4; font-size: .92rem; }
.footer__contact a:hover { color: #fff; }
[data-placeholder] { border-bottom: 1px dotted #5a7194; }
.footer__disclaimer { font-size: .8rem; color: #7e93ad; margin: 8px 0 0; max-width: 720px; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prizes { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .prize--1 { transform: none; }
  .dates { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 66px 0 70px; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
