/* =============================================
   CLASES DE GUITARRA – SUMMER EDITION
   Palette: deep navy · solar yellow · sunset orange · sand white
   ============================================= */

:root {
  --navy:    #1A2744;
  --yellow:  #FFD93D;
  --orange:  #FF6B35;
  --sand:    #FFF8F0;
  --white:   #FFFFFF;
  --grey:    #8892A4;
  --light:   #F0F4FA;
  --border:  #DDE3EF;
  --green:   #2ECC71;
  --error:   #E53E3E;
  --shadow:  rgba(26,39,68,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--sand);
  color: var(--navy);
  line-height: 1.6;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 6rem;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-decoration {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
}

.waves-svg {
  width: 100%; height: 80px;
}

.wave { fill: var(--sand); }
.wave-1 { opacity: .5; }
.wave-2 { opacity: 1; }

.hero-content { position: relative; z-index: 2; }

.badge-summer {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 1.2rem;
}

.title-accent {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255,217,61,.4);
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* Guitar strings decoration */
.guitar-strings {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.6rem;
}
.guitar-strings span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  border-radius: 1px;
  opacity: .6;
  animation: stringsVib 2.4s ease-in-out infinite;
}
.guitar-strings span:nth-child(1) { animation-delay: 0s; height: 32px; }
.guitar-strings span:nth-child(2) { animation-delay: .15s; height: 40px; }
.guitar-strings span:nth-child(3) { animation-delay: .3s; height: 46px; }
.guitar-strings span:nth-child(4) { animation-delay: .45s; height: 44px; }
.guitar-strings span:nth-child(5) { animation-delay: .6s; height: 38px; }
.guitar-strings span:nth-child(6) { animation-delay: .75s; height: 30px; }

@keyframes stringsVib {
  0%, 100% { transform: scaleX(1); opacity: .6; }
  50% { transform: scaleX(2.5); opacity: 1; }
}

/* ── INFO STRIP ───────────────────────────── */
.info-strip {
  background: var(--orange);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 1.2rem 2rem;
  text-align: center;
}

.info-item {
  flex: 1 1 160px;
  color: var(--white);
  font-size: .85rem;
  line-height: 1.5;
  padding: .4rem .8rem;
}
.info-item strong { display: block; font-size: .95rem; font-weight: 700; }
.info-sep {
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  padding: 0 .2rem;
}
@media (max-width: 600px) { .info-sep { display: none; } }

/* ── FORM SECTION ────────────────────────── */
.form-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.form-wrapper {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 40px var(--shadow);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--navy) 0%, #243563 100%);
  padding: 2.4rem 2.4rem 2rem;
  color: var(--white);
}
.form-eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .6rem;
}
.form-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: .03em;
  color: var(--white);
  margin-bottom: .5rem;
}
.form-header p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  max-width: 500px;
}

/* ── FIELDSET BLOCKS ─────────────────────── */
#summer-form { padding: 0 2.4rem 2.4rem; }

.form-block {
  border: none;
  padding: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.form-block:first-of-type { border-top: none; margin-top: 1.6rem; }

.block-legend {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
}
.legend-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
}
.legend-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--navy);
  text-transform: uppercase;
}

.block-desc {
  font-size: .875rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

/* ── INPUTS ──────────────────────────────── */
.field-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.field-row.two-col > .field-group { flex: 1 1 220px; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}

label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .01em;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--navy);
  background: var(--sand);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
  background: var(--white);
}
input.has-error, textarea.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

textarea { resize: vertical; min-height: 80px; }

.req { color: var(--orange); }
.field-error {
  font-size: .78rem;
  color: var(--error);
  min-height: 1rem;
  display: block;
}

/* ── DAY CHECKBOXES ──────────────────────── */
.days-grid {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.check-card {
  cursor: pointer;
  user-select: none;
}
.check-card input { display: none; }
.check-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--sand);
  transition: all .2s;
  position: relative;
}
.check-day {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .06em;
}
.check-icon {
  position: absolute;
  top: 4px; right: 6px;
  font-size: .65rem;
  color: transparent;
  transition: color .2s;
}
.check-card input:checked + .check-visual {
  border-color: var(--orange);
  background: var(--orange);
}
.check-card input:checked + .check-visual .check-day { color: var(--white); }
.check-card input:checked + .check-visual .check-icon { color: var(--white); }
.check-card:hover .check-visual {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,.2);
}

/* ── RADIO PILLS (turno) ─────────────────── */
.radio-pill-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.radio-pill { cursor: pointer; user-select: none; }
.radio-pill input { display: none; }
.radio-pill span {
  display: inline-block;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--sand);
  transition: all .2s;
}
.radio-pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--yellow);
}
.radio-pill:hover span {
  border-color: var(--navy);
  background: var(--light);
}

/* ── OPTION CHECKBOXES (días/semana, horas) ── */
.sub-block { margin-bottom: 1.2rem; }
.sub-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
}
.checkbox-option-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.check-option { cursor: pointer; user-select: none; }
.check-option input { display: none; }
.check-option span {
  display: inline-block;
  padding: .5rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--sand);
  transition: all .2s;
}
.check-option input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}
.check-option:hover span {
  border-color: var(--yellow);
  transform: translateY(-1px);
}

/* ── WEEKS GRID ──────────────────────────── */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
}

.week-card { cursor: pointer; user-select: none; }
.week-card input { display: none; }
.week-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: .9rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--sand);
  transition: all .2s;
  position: relative;
  min-height: 72px;
}
.week-label {
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
}
.week-dates {
  font-size: .75rem;
  color: var(--grey);
  margin-top: .2rem;
}
.week-check {
  position: absolute;
  top: .5rem; right: .7rem;
  font-size: .75rem;
  color: transparent;
  background: var(--green);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.week-card input:checked + .week-visual {
  border-color: var(--green);
  background: rgba(46,204,113,.08);
}
.week-card input:checked + .week-visual .week-check { color: var(--white); }
.week-card input:checked + .week-visual .week-label { color: var(--navy); }
.week-card:hover .week-visual {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46,204,113,.18);
}

/* ── SUBMIT AREA ─────────────────────────── */
.form-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-note {
  font-size: .78rem;
  color: var(--grey);
  flex: 1 1 220px;
}

.btn-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  min-width: 200px;
}
.btn-submit:hover {
  background: #e55a27;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.35);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: .6rem 1.6rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  margin-top: .8rem;
}
.btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
}

/* ── SUCCESS MESSAGE ─────────────────────── */
.success-msg {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-msg h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.success-msg p { color: var(--grey); margin-bottom: 1rem; }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .85rem;
}
.site-footer strong { color: var(--yellow); }
.footer-small { margin-top: .3rem; font-size: .78rem; opacity: .6; }

/* ── WHATSAPP FAB ─────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  animation: waPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes waPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
.wa-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.wa-tooltip {
  position: absolute;
  right: 66px;
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .35rem .75rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy);
}
.wa-fab:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 600px) {
  .wa-fab { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
  .wa-tooltip { display: none; }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 600px) {
  #summer-form { padding: 0 1.2rem 1.6rem; }
  .form-header { padding: 1.6rem 1.2rem 1.4rem; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; text-align: center; }
  .check-visual { width: 56px; height: 56px; }
  .weeks-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .guitar-strings span { animation: none; }
  * { transition: none !important; }
}
