/* ============================================================
   BASE — Variables, reset, tipografía
   White Club · Mora Pavic Odontología
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* Colores institucionales Mora Pavic */
  --mp-cyan:       #2DCCD3;
  --mp-navy:       #005479;
  --mp-blue:       #3B7FC2;
  --mp-teal:       #00A098;
  --mp-teal-dark:  #007A80;

  /* Escala de azules */
  --ink:       #003D52;
  --navy:      #005479;
  --royal:     #3B7FC2;
  --azure:     #2DCCD3;
  --sky:       #7DD8DC;
  --mist:      #C5EEEF;
  --frost:     #EBF9FA;

  /* Teals */
  --deep-teal: #005479;
  --teal:      #00A098;
  --vivid-teal:#2DCCD3;
  --light-teal:#A8E8E6;
  --pale-teal: #E4F8F7;

  /* Neutros clínicos */
  --white:       #FFFFFF;
  --fog:         #F0FAFB;
  --silver:      #A8C4C6;
  --slate:       #4A7A82;
  --dim:         #1E4A55;
  --warm-card:   rgba(255,255,255,0.85);
  --warm-border: rgba(45,204,211,0.15);

  /* Acento */
  --orange:    #FF6B35;

  /* Sombras */
  --glass-shadow: 0 8px 40px rgba(0,84,121,0.10), 0 2px 8px rgba(0,84,121,0.06);
  --card-shadow:  0 24px 64px rgba(5,14,58,0.40), 0 8px 24px rgba(5,14,58,0.25);

  /* Tipografía */
  --sans:  'DM Sans', sans-serif;
  --serif: 'DM Serif Display', serif;
  --sora:  'Sora', sans-serif;

  /* Radios */
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  24px;
  --r-2xl: 28px;

  /* Breakpoints */
  --bp-tablet:  768px;
  --bp-desktop: 1024px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 100dvh;
  background: #F0FAFB;
  overflow-x: hidden;
  position: relative;
}

/* Fondo institucional */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 0% 0%,    rgba(45,204,211,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(0,84,121,0.10)  0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%,  rgba(59,127,194,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 90%,  rgba(0,190,184,0.10)  0%, transparent 40%);
  z-index: 0;
  animation: bgShift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(45,204,211,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

@keyframes bgShift {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.85; transform: scale(1.04); }
}

/* Scrollbar institucional */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--frost); }
::-webkit-scrollbar-thumb { background: var(--mp-cyan); border-radius: 10px; }

/* Utilidades */
.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* Panel vidrio */
.panel {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(45,204,211,0.20);
  border-radius: var(--r-xl);
  box-shadow: var(--glass-shadow);
}

/* Animaciones base */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,204,211,0.50); }
  60%  { box-shadow: 0 0 0 8px rgba(45,204,211,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,204,211,0); }
}

@keyframes sheetSlide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: perspective(800px) rotateY(-8deg) translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: perspective(800px) rotateY(0deg) translateY(0) scale(1); }
}

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