/* ================================================================
   GLOBAL CSS — SANTIAGO SCORTS | DARK THEME #1B0E2E
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Google Translate toolbar — evita que tape el header fijo */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; border: none; outline: none; }

/* ---- Variables ---- */
:root {
  /* Brand accent */
  --fucsia:       #E6007E;
  --fucsia-dark:  #C4006B;
  --fucsia-light: rgba(230,0,126,0.12);
  --fucsia-mid:   rgba(230,0,126,0.20);
  --blue-btn:     #0A1E5E;   /* solo para fondos de botones */

  /* Backgrounds — dark purple theme */
  --bg:        #1B0E2E;      /* fondo principal */
  --bg-card:   #1E0D38;      /* tarjetas, secciones elevadas */
  --bg-raised: #251248;      /* hover, elementos activos */
  --bg-input:  #1A0B30;      /* tablas, inputs */
  --bg-subtle: #0F0520;      /* secciones más profundas */
  --bg-dark:   #0A031A;      /* footer */
  --bg-white:  #1E0D38;      /* alias para bg-card */

  /* Text — sobre fondo oscuro */
  --text-primary:   #EDE8F5;              /* títulos, texto principal */
  --text-body:      rgba(237,232,245,0.88);
  --text-secondary: rgba(237,232,245,0.62);
  --text-muted:     rgba(237,232,245,0.38);
  --text-light:     rgba(255,255,255,0.65);

  /* Borders */
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.12);
  --border-str: rgba(255,255,255,0.22);

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0,0,0,0.30);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.40), 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.50), 0 2px 8px rgba(0,0,0,0.30);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.60), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.65), 0 16px 40px rgba(0,0,0,0.40);
  --shadow-fucsia: 0 8px 32px rgba(230,0,126,0.40);

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fucsia); }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(22,9,40,0.96);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* Perfil pages header logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
}
.tagline {
  font-size: 8px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Perfil pages nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  padding: 0; margin: 0;
}
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fucsia) 0%, #7B2FBE 60%, transparent 100%);
  opacity: 0.9;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.40);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px; height: 40px;
  background: var(--fucsia);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(230,0,126,0.35);
}

.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 8.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Desktop nav */
.header-nav { display: flex; align-items: center; gap: 2px; }

.header-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-sm  { padding: 9px 18px;  font-size: 12px; border-radius: var(--r-sm); }
.btn-md  { padding: 12px 24px; font-size: 13px; }
.btn-lg  { padding: 15px 32px; font-size: 15px; border-radius: var(--r-lg); }
.btn-xl  { padding: 18px 40px; font-size: 16px; border-radius: var(--r-lg); }

.btn-primary {
  background: var(--fucsia);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,0,126,0.35);
}
.btn-primary:hover {
  background: var(--fucsia-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-fucsia);
}

.btn-blue {
  background: var(--blue-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.40);
}
.btn-blue:hover {
  background: #091a52;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-md);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: var(--border-str);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: #fff; }

/* ================================================================
   MOBILE MENU
================================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.07); }
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(22,9,40,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 499;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: background .2s, color .2s;
}
.mobile-nav-panel a:hover { background: var(--fucsia-light); color: var(--fucsia); }
.mobile-nav-cta { margin-top: 12px; }

/* ================================================================
   WHATSAPP FLOAT
================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
  z-index: 400;
  transition: all .3s var(--ease-spring);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.60); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

.whatsapp-tooltip {
  position: fixed;
  bottom: 36px; right: 94px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 399;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: fadeSlideIn .5s var(--ease) both;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--bg-card);
}
.whatsapp-tooltip svg { color: #25D366; flex-shrink: 0; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--border); }

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
}
.footer-logo-mark {
  width: 40px; height: 40px;
  background: var(--fucsia);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: #fff;
  box-shadow: 0 2px 12px rgba(230,0,126,0.30);
}
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .site-header { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 24px 40px; }
  .footer-bottom { padding: 20px 24px; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; height: 68px; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .mobile-nav-panel { top: 68px; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
  .whatsapp-tooltip { display: none; }
}
