/* ============================================================
   ABARCA IA — pide_demo.css
   Page-specific styles (inherits design system from inicio_home.css)
   ============================================================ */

/* ============================================================
   HERO — DEMO
   ============================================================ */

.hero-demo {
  position: relative;
  background: var(--grad-hero-bg);
  padding: 56px 24px;
  overflow: hidden;
}

.hero-demo-orb {
  position: absolute;
  top: -100px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 180deg,
    rgba(79,195,247,.4), rgba(244,143,177,.4), rgba(255,241,118,.4));
  filter: blur(48px);
  animation: orb-spin 20s linear infinite;
  pointer-events: none;
}

.hero-demo-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.hero-demo-left {
  padding-top: 12px;
}

.hero-demo-badge {
  display: inline-block;
  background: rgba(255,255,255,.7);
  color: var(--color-dark);
  padding: 5px 14px;
  border-radius: var(--border-radius-md);
  font-size: 12px; font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .05s forwards;
}

.hero-demo-title {
  font-size: 32px; font-weight: 400;
  line-height: 1.2; letter-spacing: -.3px;
  color: var(--color-dark);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .15s forwards;
}

.hero-demo-desc {
  font-size: 14px;
  color: #444441;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .25s forwards;
}

/* ============================================================
   BENEFITS LIST
   ============================================================ */

.demo-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up .5s var(--ease-out) .35s forwards;
}

.demo-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-dark);
  backdrop-filter: blur(4px);
}

.benefit-title {
  font-size: 13px; font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.benefit-desc {
  font-size: 12px;
  color: #5F5E5A;
}

/* ============================================================
   DEMO CARD (right column)
   ============================================================ */

.demo-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: 0.5px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-lg);
}

.demo-card-title {
  font-size: 14px; font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.demo-card-sub {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 18px;
}

/* ============================================================
   GOOGLE CALENDAR EMBED
   ============================================================ */

.demo-gcal {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md, 12px);
  overflow: hidden;
  background: var(--color-surface);
}

.demo-gcal iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

@media (max-width: 720px) {
  .demo-gcal iframe { height: 720px; }
}

/* ============================================================
   CALENDAR
   ============================================================ */

.demo-calendar {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-muted);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font);
  transition: background .15s ease, color .15s ease;
}

.cal-nav:hover {
  background: var(--color-border);
  color: var(--color-dark);
}

.cal-month {
  font-size: 13px; font-weight: 500;
  color: var(--color-dark);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  padding: 6px 4px;
  font-size: 11px;
  font-family: var(--font);
  text-align: center;
  background: none;
  border: none;
  border-radius: var(--border-radius-sm);
  color: var(--color-dark);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s var(--ease-spring);
}

.cal-day:hover:not([disabled]) {
  background: var(--color-border);
  transform: scale(1.1);
}

.cal-day--other,
.cal-day--weekend {
  color: var(--color-muted-light);
}

.cal-day[disabled] {
  cursor: default;
}

.cal-day--selected {
  background: linear-gradient(135deg, #4FC3F7, #F48FB1) !important;
  color: var(--color-surface) !important;
  font-weight: 500;
}

/* ============================================================
   TIME SLOTS
   ============================================================ */

.demo-slots {
  margin-bottom: 16px;
}

.slots-label {
  font-size: 11px; font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.slot {
  text-align: center;
  padding: 8px;
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s var(--ease-spring), box-shadow .2s ease;
}

.slot:hover {
  border-color: var(--color-lav);
  transform: translateY(-1px);
  box-shadow: var(--shadow-color);
}

.slot--selected {
  background: linear-gradient(135deg, #4FC3F7, #B39DDB);
  color: var(--color-surface);
  font-weight: 500;
  border-color: transparent;
}

.slot--selected:hover {
  border-color: transparent;
  transform: translateY(-1px);
}

/* ============================================================
   FORM
   ============================================================ */

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-input {
  padding: 10px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-surface);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.demo-input::placeholder { color: var(--color-muted-light); }

.demo-input:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(79,195,247,.12);
}

.btn-reserva {
  width: 100%;
  padding: 12px;
  background: var(--color-dark);
  color: var(--color-surface);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 14px; font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-spring), box-shadow .2s ease;
}

.btn-reserva:hover:not([disabled]) {
  background: var(--color-dark-deep);
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.btn-reserva[disabled] {
  cursor: default;
  opacity: .85;
}

.demo-legal {
  font-size: 10px;
  color: var(--color-muted);
  text-align: center;
}

.demo-legal a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   CONTACTO ALTERNATIVO
   ============================================================ */

.demo-alt {
  padding: 44px 24px;
  background: var(--color-surface);
  text-align: center;
  border-top: 0.5px solid var(--color-border);
}

.demo-alt-label {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.demo-alt-contacts {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-alt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0.5px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--color-dark);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-spring);
}

.demo-alt-item:hover {
  border-color: var(--color-muted-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero-demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-demo-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero-demo { padding: 40px 16px; }
  .hero-demo-title { font-size: 22px; }

  .slots-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-alt { padding: 32px 16px; }
  .demo-alt-contacts { flex-direction: column; align-items: center; }
}
