/* ==========================================================================
   GRUPO DEL SUR - BASE CSS COMPARTIDO
   Variables, Reset, Header, Footer, Botones, Modal, Utilidades
   Colores: #00b3ba (Turquesa) | #c9d646 (Lima)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables Globales ─────────────────────────────────────────────────── */
:root {
  --primary: #00b3ba;
  --primary-dark: #008f95;
  --primary-light: #E6F7F8;
  --primary-gradient: linear-gradient(135deg, #00b3ba 0%, #008f95 100%);

  --secondary: #0F172A;
  --secondary-light: #1E293B;

  --accent: #c9d646;
  --accent-dark: #a2b02e;
  --accent-light: #F7F9E4;

  --warning: #F59E0B;
  --danger: #EF4444;
  --success: #22C55E;

  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-color: #E2E8F0;
  --border-focus: #00b3ba;

  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15,23,42,0.05);
  --shadow-md: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15,23,42,0.12), 0 10px 10px -5px rgba(15,23,42,0.04);
  --shadow-glow-primary: 0 0 25px rgba(0,179,186,0.35);
  --shadow-glow-accent: 0 0 25px rgba(201,214,70,0.45);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Contenedor ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* ── Header & Navegación ────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 8px 30px rgba(0,179,186,0.15);
  background: rgba(255,255,255,0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
}
.logo-img {
  height: 6rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,179,186,0.25));
  transition: var(--transition);
}
.logo:hover .logo-img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 5px 15px rgba(201,214,70,0.5));
}
.logo span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 1.5rem; }

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0.25rem;
  font-size: 0.92rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
  box-shadow: var(--shadow-glow-accent);
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--secondary);
}

/* ── Page Banner ────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1E293B 100%);
  color: white;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}
.page-banner::after {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,179,186,0.3), transparent 70%);
  border-radius: 50%;
  animation: orbFloat 7s infinite alternate ease-in-out;
}
.page-banner-title { font-size: 2.5rem; color: white; margin-bottom: 0.5rem; }
.page-banner-title span { color: var(--accent); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); font-size: 0.9rem; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn:active::after { width: 250px; height: 250px; }

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0,179,186,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,179,186,0.55);
}
.btn-accent {
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201,214,70,0.45);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,214,70,0.6);
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--secondary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Sección genérica ───────────────────────────────────────────────────── */
.section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title { font-size: 2.25rem; color: var(--secondary); margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ── Formularios ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  outline: none;
  transition: var(--transition);
  background: var(--bg-body);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,179,186,0.15);
  background: white;
}

/* ── Modal Booking ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-container {
  background: white;
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-backdrop.active .modal-container { transform: scale(1); }
.modal-header {
  padding: 1.5rem 2rem;
  background: var(--secondary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary);
}
.modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.7; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 2rem; overflow-y: auto; }

.booking-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}
.booking-steps::before {
  content: '';
  position: absolute;
  top: 15px; left: 10%; right: 10%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.step-indicator {
  position: relative; z-index: 2;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--border-color);
}
.step-indicator.active .step-num { background: var(--primary); color: white; border-color: var(--primary); }
.step-indicator.completed .step-num { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.step-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

.time-slots-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.75rem; margin-top: 1rem; }
.time-slot {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.time-slot:hover, .time-slot.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: var(--secondary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--accent);
}

/* ── WhatsApp Float ─────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.6); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--secondary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-light); margin-top: 1rem; font-size: 0.95rem; }
.footer-title { font-size: 1.1rem; margin-bottom: 1.25rem; color: white; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ── Keyframes Globales ─────────────────────────────────────────────────── */
@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(45px,45px) scale(1.15); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0,179,186,0.2); }
  100% { box-shadow: 0 0 0 10px rgba(0,179,186,0); }
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes shimmerSlide {
  0%   { left: -100%; }
  100% { left: 120%; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes spinGlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* ── Responsive Compartido ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    flex-direction: column;
    padding: 2rem;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active { left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .time-slots-grid { grid-template-columns: repeat(2,1fr); }
  .page-banner-title { font-size: 1.8rem; }
}
