/* iTechDev Cal.com Branding v5 — Matching staging2 design */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ===== GLOBAL ===== */
*, body, html, .font-cal, h1, h2, h3, h4, p, span, a, button, input, textarea, select, label, div {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Page background with subtle grid pattern like staging2 */
body {
  background-color: #F8FAFC !important;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0,102,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,102,255,0.02) 0%, transparent 40%),
    linear-gradient(rgba(0,102,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.015) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px !important;
  min-height: 100vh !important;
}

/* ===== BRANDED TOP BAR (injected via ::before on body) ===== */
body::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0066FF 0%, #0052CC 50%, #0066FF 100%) !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Push content down for top bar */
body > div:first-child {
  padding-top: 4px !important;
}

/* ===== PROFILE HEADER CARD ===== */
.bg-default.mb-8 {
  background: linear-gradient(135deg, #0A0F1A 0%, #0F172A 60%, #111827 100%) !important;
  border: 1px solid rgba(0, 102, 255, 0.15) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 4px 32px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(0, 102, 255, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Grid pattern overlay on header */
.bg-default.mb-8::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    linear-gradient(rgba(0,102,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.06) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%) !important;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Glow orb effect */
.bg-default.mb-8::after {
  content: "" !important;
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 200px !important;
  height: 200px !important;
  background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Header inner content above overlays */
.bg-default.mb-8 > div {
  position: relative !important;
  z-index: 1 !important;
  padding: 28px 24px !important;
}

/* Name - white, bold, bigger */
[data-testid="name-title"] {
  color: #FFFFFF !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
}

/* Avatar styling */
.bg-default.mb-8 img.rounded-full,
.bg-default.mb-8 .rounded-full {
  border: 2px solid rgba(0, 102, 255, 0.5) !important;
  box-shadow: 0 0 24px rgba(0, 102, 255, 0.3), 0 0 48px rgba(0, 102, 255, 0.1) !important;
  transition: box-shadow 0.3s ease !important;
}

/* ===== EVENT TYPE CARDS ===== */
[data-testid="event-types"] {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
  background: white !important;
}

[data-testid="event-type-link"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-left: 4px solid transparent !important;
  padding: 4px 0 !important;
}

[data-testid="event-type-link"]:hover {
  background: linear-gradient(90deg, #EFF6FF 0%, #FFFFFF 100%) !important;
  border-left-color: #0066FF !important;
  transform: translateX(2px) !important;
}

/* Event title */
[data-testid="event-type-link"] h2 {
  color: #0F172A !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em !important;
}

/* Event description */
[data-testid="event-type-link"] .text-subtle {
  color: #64748B !important;
}

/* Duration badge */
[data-testid="event-type-link"] .bg-emphasis {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  color: #0066FF !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
}

/* Arrow icon on hover */
[data-testid="event-type-link"] svg {
  color: #0066FF !important;
}

/* ===== CALENDAR STYLES ===== */
button[data-testid*="day"][aria-pressed="true"] {
  background: #0066FF !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,102,255,0.3) !important;
}

button[data-testid*="day"]:hover:not([aria-pressed="true"]) {
  background: #EFF6FF !important;
  border-radius: 10px !important;
}

/* ===== TIME SLOTS ===== */
button[data-testid*="time"] {
  border: 1.5px solid #0066FF !important;
  color: #0066FF !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button[data-testid*="time"]:hover {
  background: #0066FF !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,102,255,0.35) !important;
  transform: translateY(-1px) !important;
}

/* ===== FORM INPUTS ===== */
input:focus, textarea:focus, select:focus {
  border-color: #0066FF !important;
  box-shadow: 0 0 0 4px rgba(0,102,255,0.1) !important;
  outline: none !important;
}

/* ===== CTA BUTTONS ===== */
button[type="submit"],
button[data-testid="confirm-book-button"],
.bg-brand-default {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 12px rgba(0,102,255,0.3) !important;
  transition: all 0.2s ease !important;
  letter-spacing: -0.01em !important;
}

button[type="submit"]:hover,
button[data-testid="confirm-book-button"]:hover {
  background: linear-gradient(135deg, #0052CC 0%, #003D99 100%) !important;
  box-shadow: 0 6px 20px rgba(0,102,255,0.4) !important;
  transform: translateY(-1px) !important;
}

/* ===== BRANDED FOOTER ===== */
body::after {
  content: "iTechDev  \B7  Agenda una cita con nuestro equipo";
  display: block;
  text-align: center;
  padding: 40px 0 32px;
  color: #94A3B8;
  font-size: 12px;
  font-family: "Inter", sans-serif !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== HIDE CAL.COM BRANDING ===== */
a[href*="cal.com/signup"],
[class*="text-center"] a[href*="cal.com"],
div:has(> a[href*="cal.com"]) {
  display: none !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 640px) {
  .bg-default.mb-8 > div {
    padding: 20px 16px !important;
  }
  [data-testid="name-title"] {
    font-size: 1.35rem !important;
  }
  .bg-default.mb-8::after {
    width: 120px !important;
    height: 120px !important;
    top: -30px !important;
    right: -30px !important;
  }
}

/* ===== SMOOTH TRANSITIONS ===== */
main, main * {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}
