/* ============================================================
   AppleFix × SimplyBook — v1.3
   - Load Inter font (matches site since SF Pro is Apple-only)
   - Force pill-shape on ALL action buttons
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Force Inter / SF Pro everywhere with maximum specificity ---- */
html, html body, html body *,
.simplybook, .simplybook *,
#content, #content *,
.events-list, .events-list *,
.providers-list, .providers-list *,
.zend_form, .zend_form *,
#eventForm, #eventForm *,
input, button, select, textarea, a, li, span, div, p, h1, h2, h3, h4, h5, label, dt, dd {
  font-family: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4, h5,
.h-display, .h-section, #events h3,
#eventForm h3, .ti-title {
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
}

/* ============================================================
   ALL action buttons → rounded pill, brand gradient
   (covers every variant SimplyBook may render)
   ============================================================ */

/* PRIMARY — "Seleccionar", "Reservar", reserve, save, choose, etc. */
input[type="button"], input[type="submit"], input[type="reset"],
button, button.btn, a.btn,
.btn-primary, .btn-info, .btn-success, .btn-default,
a.choose_event, button.choose_event, input.choose_event,
a.select_event, button.select_event,
a.choose-btn, button.choose-btn, a.select-btn, button.select-btn,
a.reserve_time_btn, input.reserve_time_btn, button.reserve_time_btn,
a.select_another_btn, input.select_another_btn,
#events a, #events button, #events input[type="button"], #events input[type="submit"],
.events-list a:not(.read_more):not([class*="more"]),
.events-list button:not(.read_more):not([class*="more"]),
.events-list input[type="button"]:not(.read_more):not([class*="more"]),
.providers-list a:nth-of-type(1),
.providers-list button:nth-of-type(1),
.providers-list input[type="button"]:nth-of-type(1),
.service-list a:nth-of-type(1),
.service-list button:nth-of-type(1),
.category-list a:nth-of-type(1),
.category-list button:nth-of-type(1),
#save_button, button#save_button, input#save_button,
button[name="save"], input[name="save"],
.zend_form button[type="submit"],
[class*="seleccionar"], [class*="select"][class*="btn"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;          /* PILL */
  -webkit-border-radius: 999px !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 0 !important;
  outline: none !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s !important;
  background: linear-gradient(180deg, #00A3FF 0%, #0094FF 100%) !important;
  background-image: linear-gradient(180deg, #00A3FF 0%, #0094FF 100%) !important;
  background-color: #0094FF !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 20px -6px rgba(0,148,255,0.5),
    0 2px 6px rgba(0,148,255,0.25) !important;
  min-width: 140px;
}

/* PRIMARY hover */
input[type="button"]:hover, input[type="submit"]:hover, button:hover, button.btn:hover, a.btn:hover,
.btn-primary:hover, .btn-info:hover,
a.choose_event:hover, button.choose_event:hover,
.events-list a:not(.read_more):not([class*="more"]):hover,
.providers-list a:nth-of-type(1):hover,
.providers-list button:nth-of-type(1):hover,
.service-list a:nth-of-type(1):hover,
#save_button:hover, input.reserve_time_btn:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 30px -6px rgba(0,148,255,0.6),
    0 4px 10px rgba(0,148,255,0.3) !important;
}

/* SECONDARY — "Leer más" → white with blue text, gray on hover */
a.read_more, a.btn.read_more, button.read_more, input.read_more,
.read_more, .read-more, .readmore,
a.event_more, button.event_more,
a.show_more, button.show_more, a.show-more, button.show-more,
a.more_info, button.more_info, a.more-info, button.more-info,
a.btn.more, button.btn.more, .btn.more, .btn-secondary,
a[class*="read_more"], a[class*="readmore"], a[class*="read-more"],
button[class*="read_more"], button[class*="readmore"], button[class*="read-more"],
a[class*="show_more"], button[class*="show_more"], a[class*="show-more"],
a[class*="more_info"], a[class*="more-info"],
[onclick*="more"], [data-toggle*="collapse"],
.providers-list li a:nth-of-type(2),
.providers-list li button:nth-of-type(2),
.providers-list li input[type="button"]:nth-of-type(2),
.events-list li a:nth-of-type(2),
.events-list li button:nth-of-type(2),
.events-list li input[type="button"]:nth-of-type(2),
.service-list li a:nth-of-type(2),
.service-list li button:nth-of-type(2),
.category-list li a:nth-of-type(2),
.category-list li button:nth-of-type(2) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  -webkit-border-radius: 999px !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background: #FFFFFF !important;
  background-image: none !important;
  background-color: #FFFFFF !important;
  color: #0094FF !important;
  -webkit-text-fill-color: #0094FF !important;
  border: 1.5px solid #0094FF !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px rgba(11,15,20,0.06) !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s, box-shadow .25s !important;
  min-width: 140px;
}

/* SECONDARY hover → light gray bg */
a.read_more:hover, button.read_more:hover, input.read_more:hover,
.read_more:hover, .read-more:hover, .readmore:hover,
a.event_more:hover, button.event_more:hover,
a.show_more:hover, button.show_more:hover, a.show-more:hover,
a.more_info:hover, button.more_info:hover,
.btn.more:hover, .btn-secondary:hover,
a[class*="read_more"]:hover, a[class*="readmore"]:hover, a[class*="read-more"]:hover,
button[class*="read_more"]:hover, button[class*="readmore"]:hover,
a[class*="show_more"]:hover, a[class*="more_info"]:hover, a[class*="more-info"]:hover,
[onclick*="more"]:hover, [data-toggle*="collapse"]:hover,
.providers-list li a:nth-of-type(2):hover,
.providers-list li button:nth-of-type(2):hover,
.events-list li a:nth-of-type(2):hover,
.service-list li a:nth-of-type(2):hover,
.category-list li a:nth-of-type(2):hover {
  background: #E8EAEE !important;
  background-color: #E8EAEE !important;
  background-image: none !important;
  color: #0077D4 !important;
  -webkit-text-fill-color: #0077D4 !important;
  border-color: #0077D4 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px -4px rgba(11,15,20,0.15) !important;
}

/* Caret/icon inside "Leer más" stays blue */
.read_more svg, .read_more i, .read-more svg, .read-more i,
[class*="read_more"] svg, [class*="read_more"] i,
[class*="show_more"] svg, [class*="show_more"] i,
.providers-list li a:nth-of-type(2) svg,
.providers-list li a:nth-of-type(2) i {
  color: #0094FF !important;
  fill: #0094FF !important;
}

/* ============================================================
   v1.4 — Inputs pill-shaped + fix phone flag dropdown
   ============================================================ */

/* INPUTS single-line → fully rounded pill */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
.zend_form input[type="text"],
.zend_form input[type="email"],
.zend_form input[type="tel"],
.zend_form input[type="number"],
.zend_form select,
#eventForm input[type="text"],
#eventForm input[type="email"],
#eventForm input[type="tel"],
#eventForm input[type="number"],
#eventForm select,
.iti input,
.iti input[type="tel"],
input.form-control,
select.form-control {
  border-radius: 999px !important;
  -webkit-border-radius: 999px !important;
  height: 48px !important;
  padding: 0 20px !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(11,15,20,0.14) !important;
  color: #0B0F14 !important;
  -webkit-text-fill-color: #0B0F14 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s, background .18s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* TEXTAREAS → rounded card (16px, can't be pill since they grow vertically) */
textarea,
.zend_form textarea,
#eventForm textarea,
textarea.form-control {
  border-radius: 16px !important;
  -webkit-border-radius: 16px !important;
  min-height: 120px !important;
  padding: 14px 18px !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(11,15,20,0.14) !important;
  color: #0B0F14 !important;
  -webkit-text-fill-color: #0B0F14 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  resize: vertical !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s !important;
}

/* Focus state — Apple-style halo */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus,
.iti input:focus {
  outline: none !important;
  border-color: #0094FF !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(0,148,255,0.12) !important;
}

/* Hover gives a tiny darker border */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(11,15,20,0.22) !important;
}


/* ============================================================
   v1.7 — Phone field FINAL: hide country-picker button entirely
   AppleFix opera solo en Chile, +56 ya está hardcoded en el placeholder
   ============================================================ */

/* Detect cualquier contenedor que tenga un input[type="tel"] hijo
   y oculta TODOS los hermanos que no sean el input ni el label */
*:has(> input[type="tel"]) > *:not(input):not(label):not(.error):not(.help-block):not(span.required):not(em.required) {
  display: none !important;
}

/* Cualquier elemento que sea hermano-anterior de un input[type="tel"] */
*:has(+ input[type="tel"]),
*:has(~ input[type="tel"]) {
  display: none !important;
}
input[type="tel"] ~ button,
input[type="tel"] ~ select,
input[type="tel"] + button,
input[type="tel"] + select,
input[type="tel"] + .button {
  display: none !important;
}

/* Mata por nombre de clase TODAS las variantes de country picker */
.iti, .iti--allow-dropdown, .intl-tel-input,
.iti__flag-container, .iti__country-container, .iti__selected-flag, .iti__arrow,
.country-flag-selector, .country-flag, .country-selector,
.phone-prefix-button, .phone-country-button, .phone-country-flag,
.phone-country-code, .phone-prefix-display,
button[class*="country"], button[class*="flag"], button[class*="phone-prefix"],
[role="combobox"][class*="country"], [role="combobox"][class*="flag"],
button[id*="country"], button[id*="flag"], button[id*="phone-prefix"],
[data-country], button[aria-label*="country"], button[aria-label*="flag"],
button[aria-label*="País"], button[aria-label*="país"],
.zend_form dd button:first-child:not([type="submit"]):not(#save_button) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Restaurar el input[type="tel"] como cápsula independiente full-width */
input[type="tel"],
.zend_form input[type="tel"],
#eventForm input[type="tel"],
input.phone, input[name*="phone"], input[name*="telefono"], input[name*="tel"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  padding: 0 20px !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  border-radius: 999px !important;
  -webkit-border-radius: 999px !important;
  border: 1px solid rgba(11,15,20,0.14) !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #0B0F14 !important;
  -webkit-text-fill-color: #0B0F14 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  outline: none !important;
  box-shadow: none !important;
  position: static !important;
  visibility: visible !important;
  transition: border-color .18s, box-shadow .18s !important;
}
input[type="tel"]:focus {
  border-color: #0094FF !important;
  box-shadow: 0 0 0 4px rgba(0,148,255,0.12) !important;
}
input[type="tel"]::placeholder {
  color: rgba(110,110,115,0.6) !important;
  -webkit-text-fill-color: rgba(110,110,115,0.6) !important;
}

/* Si SimplyBook deja un wrapper vacío arriba, colapsalo */
dd:has(> input[type="tel"]) {
  display: block !important;
  padding: 0 !important;
}