/* ================================================
   CAPS NUEVA ESPERANZA - Landing Page
   Centro de Salud Municipal Nueva Esperanza
   Santa Elena, Entre Ríos
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --pink: #e91e8c;
  --pink-dark: #c4176f;
  --pink-light: #f472b6;
  --pink-pale: #fce7f3;
  --gray: #9e9e9e;
  --gray-dark: #4a4a4a;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --text: #2d2d2d;
  --shadow: 0 8px 32px rgba(233, 30, 140, 0.15);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 180px;
  height: 180px;
  animation: pulse-logo 1.2s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader-bar-wrap {
  margin-top: 28px;
  width: 180px;
  height: 4px;
  background: #f0e0ec;
  border-radius: 4px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 4px;
  animation: load-bar 1.8s ease forwards;
}

.preloader-text {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in-up 0.5s 0.4s forwards;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes load-bar {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== NAVBAR ===== */
#navbar {
  position: relative;
  top: auto; left: auto; right: auto;
  z-index: 1000;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 2px solid var(--pink-pale);
}

/* ya no necesita estado scrolled para cambiar fondo, pero lo mantenemos por si acaso */
#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  padding: 12px 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-logo-text {
  line-height: 1.1;
}

.nav-logo-text .line1 {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-logo-text .line2 {
  display: block;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--pink);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

#navbar.scrolled .nav-links a {
  color: var(--gray-dark);
  text-shadow: none;
}

.nav-links a:hover { color: var(--pink) !important; }

.nav-cta {
  background: var(--pink) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  text-shadow: none !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--pink-dark) !important;
  transform: translateY(-1px);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

#navbar.scrolled .hamburger span { background: var(--gray-dark); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--pink); }

.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: var(--gray-dark);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ===== HERO / SLIDER ===== */
#hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  margin: 0;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(180, 0, 100, 0.55) 0%,
    rgba(40,40,60,0.45) 60%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8% 60px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  opacity: 0;
  animation: hero-enter 0.7s 0.3s forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--pink-light);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 18px;
  opacity: 0;
  animation: hero-enter 0.7s 0.5s forwards;
}

.hero-title span { color: var(--pink-light); }

.hero-sub {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0;
  animation: hero-enter 0.7s 0.7s forwards;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-enter 0.7s 0.9s forwards;
}

.btn-primary {
  background: var(--pink);
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(233,30,140,0.4);
}

.btn-primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233,30,140,0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* slider controls */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.slider-arrow:hover {
  background: rgba(233,30,140,0.6);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== SECTIONS BASE ===== */
section { padding: 80px 6%; }

#inicio {
  padding: 0;
  margin: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-pale);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title span { color: var(--pink); }

.section-sub {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  max-width: 560px;
}

/* ===== HISTORIA ===== */
#historia {
  background: linear-gradient(135deg, #fff 0%, var(--pink-pale) 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.historia-text { }

.historia-img-wrap {
  position: relative;
}

.historia-img-wrap img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.historia-img-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  background: var(--pink);
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(233,30,140,0.35);
  white-space: nowrap;
}

.historia-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pink);
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== SERVICIOS ===== */
#servicios {
  background: white;
  text-align: center;
}

#servicios .section-header {
  max-width: 600px;
  margin: 0 auto 50px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.servicio-card {
  background: var(--gray-light);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink-pale), #fff);
  opacity: 0;
  transition: opacity 0.3s;
}

.servicio-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink-light);
  box-shadow: var(--shadow);
}

.servicio-card:hover::before { opacity: 1; }

.servicio-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.servicio-card:hover .servicio-icon {
  background: var(--pink);
  box-shadow: 0 6px 18px rgba(233,30,140,0.3);
}

.servicio-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.servicio-prof {
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ===== HORARIOS ===== */
#horarios {
  background: var(--text);
  color: white;
}

#horarios .section-tag {
  background: rgba(233,30,140,0.2);
  color: var(--pink-light);
}

#horarios .section-title { color: white; }

#horarios .section-sub { color: rgba(255,255,255,0.65); }

.horarios-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.schedule-table th {
  background: var(--pink);
  color: white;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}

.schedule-table th:first-child {
  background: var(--pink-dark);
  width: 110px;
}

.schedule-table td {
  background: #2a2a2a;
  color: rgba(255,255,255,0.85);
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  line-height: 1.45;
}

.schedule-table tr:hover td { background: #333; }

.schedule-table td.turno-header {
  background: rgba(233,30,140,0.12);
  color: var(--pink-light);
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  font-size: 0.78rem;
}

.hs-highlight {
  color: var(--pink-light);
  font-weight: 800;
  display: block;
}

.hs-prof {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

/* ===== GALERÍA / EQUIPO ===== */
#galeria {
  background: var(--pink-pale);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.galeria-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.galeria-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(233,30,140,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.galeria-item:hover img { transform: scale(1.06); }
.galeria-item:hover::after { opacity: 1; }

.galeria-item.big { grid-row: span 2; aspect-ratio: auto; }

/* ===== CONTACTO ===== */
#contacto {
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-info { }

.contact-items { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.25s;
}

.contact-item:hover .contact-icon {
  background: var(--pink);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--pink); }

.contacto-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 340px;
  background: #eee;
}

.contacto-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 36px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  width: 36px;
  filter: brightness(0) invert(1) opacity(0.7);
}

.footer-logo-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 0.72rem;
  text-align: center;
}

.footer-dev {
  font-size: 0.7rem;
  text-align: right;
}

.footer-dev a {
  color: var(--pink-light);
  text-decoration: none;
  font-weight: 700;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  animation: wa-bounce 2s ease-in-out infinite;
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.1);
  animation: none;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--text);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--text);
  border-right-width: 0;
}

.wa-float:hover .wa-tooltip { opacity: 1; }

@keyframes wa-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #historia { grid-template-columns: 1fr; gap: 32px; }
  #contacto { grid-template-columns: 1fr; gap: 40px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item.big { grid-row: span 1; aspect-ratio: 4/3; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 60px 5%; }
  #hero { min-height: 60vw; }
  .hero-content { padding: 0 5% 80px; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
  .footer-dev { text-align: center; }
  .slider-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ===== TURNOS ONLINE ===== */
#turnos {
  background: linear-gradient(180deg, #fff 0%, var(--pink-pale) 100%);
  padding-top: 60px;
  padding-bottom: 70px;
}

/* Navbar turnos button */
.nav-turnos-btn {
  background: var(--pink) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(233,30,140,0.35) !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
  white-space: nowrap;
  animation: pulse-nav 2.4s ease-in-out infinite;
}

.nav-turnos-btn:hover {
  background: var(--pink-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(233,30,140,0.5) !important;
  animation: none !important;
}

@keyframes pulse-nav {
  0%,100% { box-shadow: 0 4px 14px rgba(233,30,140,0.35); }
  50% { box-shadow: 0 4px 22px rgba(233,30,140,0.65); }
}

/* Mobile turnos btn */
.mobile-turnos-btn {
  background: var(--pink) !important;
  color: white !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
}

/* Hero turnos button */
.btn-turnos-hero {
  background: white;
  color: var(--pink);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 24px rgba(255,255,255,0.35);
  transition: all 0.25s;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: pulse-hero-btn 2.2s ease-in-out infinite;
}

.btn-turnos-hero:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233,30,140,0.55);
  animation: none;
}

@keyframes pulse-hero-btn {
  0%,100% { transform: scale(1); box-shadow: 0 6px 24px rgba(255,255,255,0.35); }
  50% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(255,255,255,0.55); }
}

/* Banner */
.turnos-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  border-radius: 20px;
  padding: 22px 32px;
  margin-bottom: 56px;
  box-shadow: 0 10px 40px rgba(233,30,140,0.3);
  flex-wrap: wrap;
}

.turnos-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.turnos-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.turnos-banner-text strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: white;
}

.turnos-banner-text span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.turnos-banner-btn {
  background: white;
  color: var(--pink);
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.turnos-banner-btn:hover {
  background: var(--pink-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Header */
.turnos-header {
  text-align: center;
  margin-bottom: 50px;
}

.turnos-header .section-sub {
  margin: 0 auto;
}

/* Pasos */
.turnos-pasos {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 56px;
  position: relative;
}

.paso {
  background: white;
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
  width: 170px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
  flex-shrink: 0;
}

.paso:hover {
  border-color: var(--pink-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.paso-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(233,30,140,0.35);
}

.paso-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.paso-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.paso-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.55;
  font-weight: 600;
}

.paso-conector {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-light), var(--pink));
  margin-top: 70px;
  flex-shrink: 0;
  position: relative;
}

.paso-conector::after {
  content: '▶';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 0.6rem;
}

/* Ayuda */
.turnos-ayuda {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.ayuda-card {
  background: white;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border-left: 4px solid var(--pink);
  transition: transform 0.25s, box-shadow 0.25s;
}

.ayuda-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.ayuda-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ayuda-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.ayuda-card p {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.55;
  font-weight: 600;
}

.ayuda-card a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
}

.ayuda-card a:hover { text-decoration: underline; }

/* CTA grande */
.turnos-cta {
  text-align: center;
}

.btn-turnos-grande {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  color: white;
  padding: 20px 44px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(233,30,140,0.4);
  transition: all 0.3s;
  animation: pulse-cta 2.5s ease-in-out infinite;
}

.btn-turnos-grande:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 50px rgba(233,30,140,0.55);
  animation: none;
}

.btn-turnos-grande-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.btn-turnos-grande strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.btn-turnos-grande small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 600;
  margin-top: 2px;
}

@keyframes pulse-cta {
  0%,100% { box-shadow: 0 10px 40px rgba(233,30,140,0.4); }
  50% { box-shadow: 0 14px 52px rgba(233,30,140,0.65); }
}

/* Aviso registro obligatorio */
.turnos-registro-aviso {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff8e1;
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 44px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.aviso-icono {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.turnos-registro-aviso strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 6px;
}

.turnos-registro-aviso p {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.6;
  font-weight: 600;
}

/* Responsive turnos */
@media (max-width: 900px) {
  .turnos-ayuda { grid-template-columns: 1fr; }
  .turnos-pasos { gap: 16px; justify-content: center; }
  .paso-conector { display: none; }
  .paso { width: calc(50% - 16px); }
}

@media (max-width: 600px) {
  .turnos-banner { flex-direction: column; text-align: center; padding: 20px; }
  .turnos-banner-btn { width: 100%; justify-content: center; }
  .paso { width: 100%; }
  .btn-turnos-grande { padding: 16px 28px; gap: 12px; }
  .btn-turnos-grande strong { font-size: 0.95rem; }
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }
