/* ==========================================================================
   LIC. FACUNDO PERUZZI | KINESIOLOGÍA & PERSONAL TRAINING CÓRDOBA
   Propuesta HD Bento Grid Pro (Boceto 03) - Design System & Styling
   ========================================================================== */

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

:root {
  /* Dark Obsidian Theme with Cinematic Glows */
  --bg-dark: #06070a;
  --bg-surface: #0b0e16;
  --bg-card: rgba(15, 19, 29, 0.75);
  --bg-card-hover: rgba(22, 28, 43, 0.85);
  --bg-glass: rgba(11, 14, 22, 0.82);
  
  /* Brand Crimson & Accents */
  --primary: #e61935;
  --primary-hover: #ff2e4d;
  --primary-glow: rgba(230, 25, 53, 0.35);
  --secondary: #10b981;
  --secondary-glow: rgba(16, 185, 129, 0.25);
  --accent-gold: #f59e0b;
  --whatsapp-green: #25D366;
  
  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(230, 25, 53, 0.45);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-green: rgba(16, 185, 129, 0.35);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px var(--primary-glow);
}

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

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

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

/* Ambient Radial Glow Overlays */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 25, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* SVG Vector Icon Styling */
.svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.svg-icon-lg {
  width: 36px;
  height: 36px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  background: rgba(230, 25, 53, 0.12);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bg-badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.bg-badge-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--border-green);
  color: var(--secondary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #800010 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 { font-size: 1.2rem; font-weight: 800; }
.brand-text p { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--text-main); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, #a80a1d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  box-shadow: 0 8px 30px rgba(230, 25, 53, 0.55);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 10.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 3.6rem;
  font-weight: 900;
  margin: 1.2rem 0;
  letter-spacing: -0.03em;
}

.hero-content p.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-hover);
  font-family: var(--font-heading);
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.profile-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(9, 11, 16, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-img-container {
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem;
  position: relative;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, #990014 100%);
  box-shadow: 0 0 35px var(--primary-glow);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

.profile-card h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.profile-card .tagline { color: var(--primary-hover); font-weight: 600; font-size: 0.95rem; margin-bottom: 1.25rem; }

.profile-locations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}

/* Bento Grid Architecture (P2) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);

  /* Ambient Inner Lighting Glow */
  background-image: radial-gradient(circle at 100% 0%, rgba(230, 25, 53, 0.08) 0%, transparent 60%);
}

.bento-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

.bento-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(230, 25, 53, 0.12);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  margin-bottom: 1.25rem;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Services & Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
  transform: scale(1.04);
}

.pricing-card:hover { transform: translateY(-6px); }

.pricing-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-header p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-tag { font-size: 1.8rem; font-weight: 900; color: var(--primary-hover); margin-bottom: 1.5rem; font-family: var(--font-heading); }

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Lead Magnet PDF Section */
.lead-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(230,25,53,0.12) 0%, rgba(15,19,29,0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

.lead-content h3 { font-size: 2.4rem; margin-bottom: 1rem; }
.lead-content p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.75rem; }

/* WhatsApp Floating Button with Official Vector SVG */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 64px;
  height: 64px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.65);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp-green);
  opacity: 0.6;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active { opacity: 1; pointer-events: all; }

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus { outline: none; border-color: var(--primary); }

footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #040507;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .hero-grid, .pricing-grid, .footer-grid, .lead-box { grid-template-columns: 1fr; }
  .col-12, .col-8, .col-6, .col-4 { grid-column: span 12; }
  .hero-content h2 { font-size: 2.75rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}
