/* ============================================================
   LENZ Photostudio — Cotizador de Equipos
   Themed to match photostudio bold & contrastante design
   ============================================================ */

/* --- Variables (matching photostudio) --------------------- */
:root {
  --color-bg-dark:      #0a0a14;
  --color-bg-dark-card: #12121f;
  --color-bg-section:   #0e0e1a;
  --color-accent:       #00afd6;
  --color-accent-light: #33d4f7;
  --color-accent-dark:  #008fad;
  --color-text:         #e8e8ec;
  --color-text-muted:   #8888a0;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-selected-bg:  rgba(0, 175, 214, 0.1);
  --color-selected-border: var(--color-accent);
  --color-success:      #25d366;
  --color-error:        #e74c3c;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-brand:   'Bebas Neue', cursive;

  --radius:     0.75rem;
  --radius-lg:  1.25rem;
  --radius-sm:  0.5rem;
  --shadow:     0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 8px 32px rgba(0, 175, 214, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-dark);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-light); }
p { margin-bottom: 1rem; }
ul, ol { margin-left: 0; padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

/* --- Skip link -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 8px; left: 8px; }

/* --- Focus global ----------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   NAVBAR (matches photostudio)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
}
.brand-lenz {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.site-nav__back {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  transition: all var(--transition);
}
.site-nav__back:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 4rem 16px 3rem;
  text-align: center;
}
.site-header__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--color-accent);
  border-radius: 2rem;
}
.site-header__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.site-header__subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* ============================================================
   STEP SECTIONS
   ============================================================ */
.alquiler-step {
  margin-bottom: 2px;
}

.step-header {
  background: var(--color-bg-dark-card);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 0;
  margin-bottom: 2px;
}
.step-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
}
.step-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-left: calc(32px + 0.75rem); /* align with text after step-num */
}
.step-footer {
  background: #f5f5f7;
  border-top: 1px solid #e0e0e6;
  padding: 0.75rem 0;
}
.step-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  text-align: center;
}

/* --- Container & sections --------------------------------- */
.dnd_container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.dnd_section_content {
  padding: 1.5rem 0;
  background: #f5f5f7;
}

/* --- Card grid -------------------------------------------- */
.grid-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem 0;
}
.dnd_column_dd_span2 {
  flex: 1 1 150px;
  min-width: 130px;
  max-width: 210px;
}
.dnd_column_dd_span6 {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 300px;
}
.dnd_column_dd_span8 { flex: 1 1 300px; }
.dnd_column_dd_span4 { flex: 0 0 auto; min-width: 200px; }

/* ============================================================
   ITEM CARDS (dark themed)
   ============================================================ */
.alquiler_radio_input {
  background: #ffffff;
  border: 2px solid #e0e0e6;
  border-radius: var(--radius);
  padding: 1rem 0.75rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  user-select: none;
  margin-bottom: 0.75rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  touch-action: manipulation;
}
.alquiler_radio_input:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0, 175, 214, 0.15);
  transform: translateY(-3px);
}
.alquiler_radio_input:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.alquiler_radio_input.selected {
  border-color: var(--color-accent);
  background: #eaf9fd;
  box-shadow: 0 0 20px rgba(0, 175, 214, 0.2), inset 0 0 0 1px rgba(0, 175, 214, 0.2);
}
.card-img {
  width: auto;
  max-height: 85px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-sm);
}
.radio_caption {
  font-size: 0.78rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin: 0.25rem 0;
}
.radio_price_caption {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

/* ============================================================
   FLOATING PRICE WIDGET
   ============================================================ */
.precio-flotante {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--color-bg-dark-card);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 140px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.precio-flotante.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.precio-flotante__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.precio-flotante__valor {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.precio-flotante__valor strong {
  color: var(--color-accent);
}
.precio-flotante__cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-accent);
  transition: all var(--transition);
}
.precio-flotante__cta:hover {
  background: transparent;
  color: var(--color-accent);
}

@media (max-width: 639px) {
  .precio-flotante {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    min-width: unset;
  }
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.alquiler_end_summary {
  background: #f5f5f7;
  border-top: 3px solid var(--color-accent);
  padding: 3rem 0;
}
.alquiler_end_summary h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #111;
}
.alquiler_end_summary h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.total_price_div { margin-bottom: 1rem; }
.total-label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #333;
}
#alquiler_total_price {
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-row input {
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #222;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  touch-action: manipulation;
}
.form-row input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 175, 214, 0.15);
}
.form-row input::placeholder { color: #999; }

#resumen_alquiler { margin: 0 0 1rem; color: #333; }
#resumen_alquiler li { margin-bottom: 0.25rem; font-size: 0.9rem; }

/* Submit button */
.btn-separar {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  touch-action: manipulation;
}
.btn-separar:hover {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 24px rgba(0, 175, 214, 0.3);
  transform: translateY(-2px);
}
.btn-separar:active { transform: translateY(0); }

/* Messages */
.msg-success { color: var(--color-success); font-weight: 700; }
.msg-error { color: var(--color-error); font-weight: 700; }

/* Helpers */
.right_aligned { text-align: right; }
.center_aligned { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .site-header { padding: 4rem 1.5rem 3rem; }
  .grid-cards { justify-content: flex-start; }
  .form-row { flex-direction: row; align-items: center; gap: 0.75rem; }
  .form-row label { width: 160px; flex-shrink: 0; margin-bottom: 0; }
  .form-row input { flex: 1; }
}

@media (min-width: 960px) {
  .alquiler_end_summary .dnd_container {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
  }
  .dnd_column_dd_span8 { flex: 1; min-width: 0; }
  .dnd_column_dd_span4 {
    flex: 0 0 260px;
    align-self: flex-start;
    text-align: center;
  }
}

/* --- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0ms;
    animation-duration: 0ms;
  }
}
