/*
Theme Name: Dr. Alejandro Chacón - Pediatría
Theme URI: https://www.mipediatraalejandro.com
Author: Consultorio Pediátrico
Description: Tema Mario Galaxy Premium para el Dr. Alejandro Chacón, Pediatra en Cobán, Alta Verapaz
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: pediatra-alejandro
*/

/* ============================================================
   MARIO GALAXY PREMIUM — VARIABLES
   ============================================================ */
:root {
  /* Galaxy palette */
  --galaxy-deep:   #030314;
  --galaxy-mid:    #08082e;
  --galaxy-purple: #0f0038;

  /* Mario accent colors */
  --mario-red:     #DC2626;
  --mario-green:   #16A34A;

  /* Star colors */
  --star-gold:     #FFD700;
  --star-cyan:     #00D4FF;
  --star-silver:   #C0C8F0;

  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.055);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --glass-hover:   rgba(255, 255, 255, 0.09);

  /* Legacy names — kept for compatibility */
  --primary:       #4158D0;
  --primary-dark:  #030314;
  --secondary:     #C850C0;
  --accent:        #FFD700;
  --accent2:       #00D4FF;
  --light:         rgba(255, 255, 255, 0.06);
  --white:         #FFFFFF;
  --text:          #E2E2F8;
  --text-light:    #8888BB;
  --shadow:        0 8px 32px rgba(65, 88, 208, 0.35);
  --radius:        20px;
  --radius-sm:     12px;
  --font-main:     'Nunito', 'Segoe UI', sans-serif;
}

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

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

/* Galaxy nebula layers behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 35%, rgba(65,88,208,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 68%, rgba(200,80,192,.16) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 8%,  rgba(0,212,255,.09) 0%, transparent 42%),
    linear-gradient(160deg, #030314 0%, #08082e 55%, #0f0038 100%);
  z-index: -2;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--star-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--star-cyan); }
ul  { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADINGS HELPERS
   ============================================================ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: .4rem;
  text-shadow:
    0 0 30px rgba(255,215,0,.55),
    0 0 70px rgba(65,88,208,.30);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  font-family: var(--font-main);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.45); }

.btn-primary {
  background: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(65,88,208,.45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5570E8 0%, #D860D0 100%);
  box-shadow: 0 8px 32px rgba(65,88,208,.65);
  color: #fff;
}
.btn-secondary {
  background: linear-gradient(135deg, #DC2626 0%, #991111 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,.40);
}
.btn-secondary:hover {
  box-shadow: 0 8px 32px rgba(220,38,38,.60);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--star-gold);
  color: var(--star-gold);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: rgba(3,3,20,.95);
  backdrop-filter: blur(12px);
  color: var(--text-light);
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,215,0,.18);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--star-cyan); font-weight: 600; }
.topbar a:hover { color: var(--star-gold); }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--star-gold); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: rgba(3,3,28,.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 30px rgba(65,88,208,.20);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(65,88,208,.55), 0 0 40px rgba(200,80,192,.25);
  animation: iconPulse 3.5s ease-in-out infinite;
  overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@keyframes iconPulse {
  0%,100% { box-shadow: 0 0 20px rgba(65,88,208,.55), 0 0 40px rgba(200,80,192,.25); }
  50%      { box-shadow: 0 0 35px rgba(65,88,208,.80), 0 0 65px rgba(200,80,192,.45); }
}
.logo-text .doctor-name {
  font-size: 1.1rem; font-weight: 800;
  color: var(--white); display: block;
  text-shadow: 0 0 18px rgba(255,215,0,.45);
}
.logo-text .specialty {
  font-size: .78rem; color: var(--star-gold);
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}

/* Custom logo from WP media */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo      { max-height: 52px; width: auto; }

/* Nav links */
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--star-silver);
  font-weight: 600; padding: 8px 14px;
  border-radius: 50px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--glass-hover);
  color: var(--star-gold);
  box-shadow: 0 0 18px rgba(255,215,0,.18);
}
.nav-cta {
  background: linear-gradient(135deg, #DC2626, #991111) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 16px rgba(220,38,38,.35) !important;
}
.nav-cta:hover {
  box-shadow: 0 6px 26px rgba(220,38,38,.55) !important;
  color: #fff !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--star-gold); border-radius: 3px;
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse at 65% 50%, rgba(65,88,208,.28) 0%, transparent 58%),
    radial-gradient(ellipse at 8%  80%, rgba(200,80,192,.18) 0%, transparent 50%),
    linear-gradient(180deg, #030314 0%, #0a0a3e 100%);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Cosmic floating orbs */
.hero::before {
  content: '';
  position: absolute;
  top: 8%; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(65,88,208,.14) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,80,192,.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 14s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes floatOrb {
  0%,100% { transform: translate(0,0)   scale(1);    }
  33%      { transform: translate(28px,-22px) scale(1.05); }
  66%      { transform: translate(-18px, 16px) scale(.95); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,.10);
  border: 1px solid rgba(255,215,0,.30);
  color: var(--star-gold);
  font-size: .85rem; font-weight: 700;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 20px;
  animation: badgePulse 3.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 18px rgba(255,215,0,.15); }
  50%      { box-shadow: 0 0 32px rgba(255,215,0,.35); }
}

.hero h1 {
  font-size: 2.8rem; font-weight: 900;
  color: var(--white); line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(65,88,208,.45);
}
.hero h1 span {
  color: var(--star-gold);
  text-shadow: 0 0 28px rgba(255,215,0,.65), 0 0 60px rgba(255,215,0,.30);
}
.hero p {
  font-size: 1.1rem; color: var(--text-light);
  margin-bottom: 32px; max-width: 460px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Doctor card */
.hero-image {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,215,0,.12);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(65,88,208,.30), 0 0 0 1px rgba(255,215,0,.08);
  text-align: center; max-width: 320px; width: 100%;
  position: relative;
  animation: heroCardFloat 6s ease-in-out infinite;
}
@keyframes heroCardFloat {
  0%,100% { transform: translateY(0);    }
  50%      { transform: translateY(-14px); }
}
.hero-card .doctor-emoji {
  font-size: 5rem; margin-bottom: 16px; display: block;
  filter: drop-shadow(0 0 22px rgba(255,215,0,.45));
}
.hero-card h3 {
  font-size: 1.3rem; font-weight: 800; color: var(--white);
  text-shadow: 0 0 18px rgba(255,215,0,.30);
}
.hero-card p { font-size: .9rem; color: var(--text-light); margin-top: 6px; }

.availability-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(74,222,128,.10);
  border: 1px solid rgba(74,222,128,.28);
  color: #4ade80; font-size: .85rem; font-weight: 700;
  padding: 8px 16px; border-radius: 50px; margin-top: 16px;
}
.pulse-dot {
  width: 10px; height: 10px;
  background: #4ade80; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(74,222,128,.65); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0);   }
}

.floating-badges {
  position: absolute; top: -16px; right: -16px;
  background: linear-gradient(135deg, #DC2626, #991111);
  color: #fff; font-size: .8rem; font-weight: 800;
  padding: 8px 14px; border-radius: 12px;
  box-shadow: 0 4px 22px rgba(220,38,38,.55);
  white-space: nowrap;
  animation: badgeFloat 4.5s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0)   rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate( 2deg); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background:
    linear-gradient(135deg, rgba(65,88,208,.28) 0%, rgba(200,80,192,.18) 100%);
  border-top:    1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px; text-align: center;
}
.stat-item {
  color: #fff; padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
}
.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(255,215,0,.22);
  border-color: rgba(255,215,0,.28);
}
.stat-number {
  font-size: 2.6rem; font-weight: 900;
  display: block; color: var(--star-gold);
  text-shadow: 0 0 22px rgba(255,215,0,.55);
}
.stat-label { font-size: .9rem; color: var(--text-light); margin-top: 8px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(65,88,208,.14) 0%, transparent 50%),
    var(--galaxy-deep);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
/* Coloured top stripe per card */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #4158D0, #C850C0);
  border-radius: 3px 3px 0 0;
}
.service-card:nth-child(2)::before { background: linear-gradient(90deg, #DC2626, #FF6B6B); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #16A34A, #4ade80); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #D97706, var(--star-gold)); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(65,88,208,.32);
  border-color: rgba(255,215,0,.28);
}
.service-card:hover .service-icon {
  animation: coinSpin 1s ease-in-out;
}
@keyframes coinSpin {
  0%   { transform: rotateY(0deg) scale(1);    }
  50%  { transform: rotateY(180deg) scale(1.2); }
  100% { transform: rotateY(360deg) scale(1);   }
}
.service-icon {
  font-size: 2.8rem; margin-bottom: 16px; display: block;
  filter: drop-shadow(0 0 10px rgba(255,215,0,.32));
}
.service-card h3 {
  font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px;
}
.service-card p { color: var(--text-light); font-size: .95rem; line-height: 1.6; }

/* ============================================================
   SOBRE EL DR.
   ============================================================ */
.about {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(200,80,192,.16) 0%, transparent 50%),
    radial-gradient(ellipse at 72% 20%, rgba(65,88,208,.20) 0%, transparent 50%),
    linear-gradient(135deg, #0a0028 0%, #050032 100%);
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-card-visual {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,215,0,.10);
  border-radius: 28px;
  padding: 48px 36px; text-align: center;
  max-width: 300px; width: 100%;
  animation: cardGlow 5s ease-in-out infinite;
}
@keyframes cardGlow {
  0%,100% { box-shadow: 0 20px 60px rgba(65,88,208,.30), 0 0 0 1px rgba(255,215,0,.08); }
  50%      { box-shadow: 0 20px 80px rgba(200,80,192,.30), 0 0 0 1px rgba(255,215,0,.22); }
}
.about-card-visual .emoji {
  font-size: 6rem; margin-bottom: 16px; display: block;
  filter: drop-shadow(0 0 22px rgba(255,215,0,.45));
}
.about-card-visual h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--white);
  text-shadow: 0 0 18px rgba(255,215,0,.30);
}
.about-card-visual p { color: var(--text-light); margin-top: 6px; font-size: .95rem; }

.specialties-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px; justify-content: center;
}
.tag {
  background: rgba(65,88,208,.22);
  color: var(--star-cyan);
  font-size: .8rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid rgba(0,212,255,.28);
  transition: background .2s, box-shadow .2s;
}
.tag:hover {
  background: rgba(65,88,208,.42);
  box-shadow: 0 0 16px rgba(0,212,255,.20);
}

.about-content .section-title    { text-align: left; }
.about-content .section-subtitle { text-align: left; }
.about-content p {
  color: var(--text-light); font-size: 1rem;
  line-height: 1.8; margin-bottom: 24px;
}
.about-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s;
}
.feature-item:hover {
  border-color: rgba(255,215,0,.30);
  box-shadow: 0 4px 22px rgba(255,215,0,.10);
}
.feature-icon {
  font-size: 1.4rem; flex-shrink: 0; margin-top: 2px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.30));
}
.feature-item h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.feature-item p  { margin-bottom: 0; font-size: .9rem; color: var(--text-light); }

/* ============================================================
   EMERGENCIAS BANNER
   ============================================================ */
.emergency-banner {
  background:
    radial-gradient(ellipse at 28% 50%, rgba(220,38,38,.38) 0%, transparent 60%),
    linear-gradient(135deg, #1a0000 0%, #08082e 100%);
  border-top:    1px solid rgba(220,38,38,.28);
  border-bottom: 1px solid rgba(220,38,38,.28);
  padding: 64px 0; position: relative; overflow: hidden;
}
.emergency-banner::before {
  content: '🚨';
  position: absolute; font-size: 14rem; opacity: .04;
  right: 6%; top: 50%; transform: translateY(-50%);
  pointer-events: none;
  animation: emergencyGlow 2.5s ease-in-out infinite;
}
@keyframes emergencyGlow {
  0%,100% { opacity: .04; }
  50%      { opacity: .08; }
}
.emergency-banner .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.emergency-content { color: #fff; }
.emergency-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,.20);
  border: 1px solid rgba(220,38,38,.38);
  color: #FF6B6B; font-size: .85rem; font-weight: 700;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
  animation: emergencyPulse 2.2s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(220,38,38,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(220,38,38,0);   }
}
.emergency-content h2 {
  font-size: 2rem; font-weight: 900; margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(220,38,38,.50);
}
.emergency-content p { font-size: 1.1rem; color: var(--text-light); }
.emergency-phone {
  display: flex; align-items: center; gap: 16px;
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(220,38,38,.28);
  border-radius: 20px; padding: 20px 28px;
  backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.emergency-phone:hover { box-shadow: 0 0 45px rgba(220,38,38,.30); }
.emergency-phone .phone-icon { font-size: 2.4rem; }
.emergency-phone .phone-text { color: #fff; }
.emergency-phone .phone-label { font-size: .85rem; color: var(--text-light); }
.emergency-phone .phone-number {
  font-size: 1.8rem; font-weight: 900; display: block;
  letter-spacing: 1px; color: #FF6B6B;
  text-shadow: 0 0 22px rgba(220,38,38,.55);
}

/* ============================================================
   UBICACIÓN Y HORARIOS
   ============================================================ */
.location {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(65,88,208,.10) 0%, transparent 50%),
    var(--galaxy-deep);
}
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.location-info h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 0 18px rgba(255,215,0,.28);
}
.info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 14px; padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: border-color .25s, box-shadow .25s;
}
.info-item:hover {
  border-color: rgba(255,215,0,.28);
  box-shadow: 0 4px 22px rgba(255,215,0,.10);
}
.info-item .info-icon { font-size: 1.8rem; flex-shrink: 0; }
.info-item h4 {
  font-size: .82rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.info-item p { font-weight: 600; color: var(--white); font-size: 1rem; }
.info-item .highlight {
  color: var(--star-gold); font-weight: 800; font-size: 1.1rem;
  text-shadow: 0 0 12px rgba(255,215,0,.40);
}
.map-container {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(65,88,208,.30), 0 0 0 1px var(--glass-border);
}
.map-container iframe { width: 100%; height: 380px; border: none; display: block; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 18% 40%, rgba(200,80,192,.10) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 60%, rgba(65,88,208,.14) 0%, transparent 50%),
    linear-gradient(135deg, #0a0028 0%, #030314 100%);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info h3 {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(255,215,0,.28);
}
.contact-info p { color: var(--text-light); margin-bottom: 28px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  backdrop-filter: blur(10px);
  transition: border-color .25s, box-shadow .25s;
}
.contact-method:hover {
  border-color: rgba(255,215,0,.28);
  box-shadow: 0 4px 22px rgba(255,215,0,.10);
}
.contact-method .method-icon { font-size: 1.8rem; }
.contact-method h4 { font-size: .85rem; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.contact-method p  { font-weight: 700; color: var(--white); margin-bottom: 0; font-size: 1rem; }

/* Contact form */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: 0 20px 60px rgba(65,88,208,.20);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .9rem; font-weight: 700; color: var(--text-light); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .95rem; color: var(--white);
  background: rgba(255,255,255,.05);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group select option { background: #0a0a3e; color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.28); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--star-gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,.12);
  background: rgba(255,255,255,.08);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #4158D0, #C850C0);
  color: #fff; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-main);
  box-shadow: 0 4px 22px rgba(65,88,208,.42);
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.btn-submit:hover {
  opacity: .9; transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(65,88,208,.62);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(2,2,14,.98);
  color: var(--text-light);
  padding: 56px 0 0;
  border-top: 1px solid rgba(255,215,0,.10);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text .doctor-name { color: var(--white); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--star-gold); font-size: 1rem; font-weight: 700;
  margin-bottom: 16px; text-shadow: 0 0 10px rgba(255,215,0,.28);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--star-gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .9rem; }
.footer-contact-item span:first-child { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .85rem;
}
.footer-bottom p { color: #444; }
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: var(--star-gold); }

/* ============================================================
   GALAXY CANVAS (injected by JS)
   ============================================================ */
#galaxy-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container,
  .about .container,
  .location-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
  .hero h1      { font-size: 2rem; }
  .hero-image   { order: -1; }
  .hero         { min-height: auto; padding: 60px 0 50px; }
  .about-content .section-title,
  .about-content .section-subtitle { text-align: center; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .topbar .container { flex-direction: column; text-align: center; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(3,3,20,.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 36px rgba(0,0,0,.55);
    padding: 16px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.6rem; }
  .emergency-banner .container { flex-direction: column; text-align: center; }
  .emergency-phone { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   ANIMACIONES SCROLL (fade-up)
   ============================================================ */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MARIO WORLD STRIP — escena de plataformas
   ============================================================ */
.mario-world-strip {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  margin-top: 40px;
  /* fondo cielo clásico Mario con degradado noche-galaxia */
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,40,.6) 100%);
}

/* ---------- Suelo de ladrillos ---------- */
.mw-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      #8B4513 0px, #8B4513 28px,
      #6B3318 28px, #6B3318 30px
    ),
    linear-gradient(180deg, #A0522D 0%, #8B4513 100%);
  border-top: 3px solid #D2691E;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.4);
}
/* Líneas horizontales del suelo */
.mw-ground::before {
  content: '';
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,.3);
}

/* ---------- Mario corriendo ---------- */
.mw-mario {
  position: absolute;
  bottom: 28px;
  left: -80px;
  width: 64px;
  height: 80px;
  image-rendering: pixelated;
  animation: marioRun 14s linear infinite;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6));
}
.mw-mario svg { width: 100%; height: 100%; image-rendering: pixelated; }

@keyframes marioRun {
  0%   { left: -80px;          transform: scaleX(1);  }
  45%  { left: calc(100% + 20px); transform: scaleX(1);  }
  45.1%{ left: calc(100% + 20px); transform: scaleX(-1); }
  90%  { left: -80px;          transform: scaleX(-1); }
  90.1%{ left: -80px;          transform: scaleX(1);  }
  100% { left: -80px;          transform: scaleX(1);  }
}

/* Pequeño bob de carrera */
.mw-mario {
  animation: marioRun 14s linear infinite;
}

/* ---------- Goomba ---------- */
.mw-goomba {
  position: absolute;
  bottom: 28px;
  width: 56px; height: 56px;
  image-rendering: pixelated;
  animation: goombaWalk 10s linear infinite;
  filter: drop-shadow(1px 2px 0 rgba(0,0,0,.5));
}
.mw-goomba svg { width: 100%; height: 100%; image-rendering: pixelated; }

@keyframes goombaWalk {
  0%   { transform: scaleX(-1) translateX(0); }
  50%  { transform: scaleX(-1) translateX(-600px); }
  50.1%{ transform: scaleX(1)  translateX(-600px); }
  100% { transform: scaleX(1)  translateX(0px); }
}

/* ---------- Tuberías verdes ---------- */
.mw-pipe {
  position: absolute;
  bottom: 28px;
  width: 44px;
  height: 72px;
}
/* Cuerpo */
.mw-pipe::after {
  content: '';
  position: absolute;
  bottom: 0; left: 4px; right: 4px;
  height: calc(100% - 18px);
  background: linear-gradient(90deg, #1a7a1a 0%, #2ecc2e 40%, #1a7a1a 100%);
  border-left:  3px solid #0d4d0d;
  border-right: 3px solid #0d4d0d;
}
/* Cabeza de la tubería */
.mw-pipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: linear-gradient(90deg, #1a7a1a 0%, #2ecc2e 40%, #1a7a1a 100%);
  border: 3px solid #0d4d0d;
  border-radius: 3px 3px 0 0;
}

/* ---------- Bloque ? ---------- */
.mw-qblock {
  position: absolute;
  bottom: 72px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #E8A000 0%, #FFD700 50%, #C88000 100%);
  border: 3px solid #5C3A00;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #5C3A00;
  font-family: 'Courier New', monospace;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.4),
    inset -2px -2px 0 rgba(0,0,0,.3),
    0 4px 0 #5C3A00;
  cursor: pointer;
  animation: qBlockBounce 2.5s ease-in-out infinite;
  image-rendering: pixelated;
}
.mw-qblock:nth-child(2) { animation-delay: .4s; }
.mw-qblock:nth-child(3) { animation-delay: .8s; }

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

/* Hit del bloque al hacer click */
.mw-qblock.hit {
  background: linear-gradient(135deg, #888 0%, #aaa 50%, #666 100%);
  color: #333;
  animation: none;
}

/* ---------- Moneda girando ---------- */
.mw-coin {
  position: absolute;
  bottom: 115px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #E8A000, #FFD700);
  border-radius: 50%;
  border: 2px solid #C88000;
  box-shadow: 0 0 8px rgba(255,215,0,.6);
  animation: coinFloat 3s ease-in-out infinite;
}
.mw-coin::before {
  content: '$';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 900; color: #8B6000;
}
@keyframes coinFloat {
  0%,100% { transform: translateY(0) rotateY(0deg);    opacity: 1;   }
  40%      { transform: translateY(-24px) rotateY(180deg); opacity: .8; }
  80%      { transform: translateY(-8px) rotateY(320deg);  opacity: .6; }
}

/* ---------- Hongo ---------- */
.mw-mushroom {
  position: absolute;
  bottom: 32px;
  width: 48px; height: 48px;
  image-rendering: pixelated;
  animation: mushroomBob 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.5));
}
.mw-mushroom svg { width: 100%; height: 100%; image-rendering: pixelated; }

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

/* ---------- Estrella power-up ---------- */
.mw-star {
  position: absolute;
  bottom: 32px;
  width: 44px; height: 44px;
  image-rendering: pixelated;
  animation: starSpin 1.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.8));
}
.mw-star svg { width: 100%; height: 100%; image-rendering: pixelated; }

@keyframes starSpin {
  0%   { transform: rotate(0deg)   scale(1);   }
  25%  { transform: rotate(15deg)  scale(1.1); }
  50%  { transform: rotate(0deg)   scale(1);   }
  75%  { transform: rotate(-15deg) scale(1.1); }
  100% { transform: rotate(0deg)   scale(1);   }
}

/* ============================================================
   SERVICE CARD — Badge de Mundo estilo Mario
   ============================================================ */
.world-badge {
  display: inline-block;
  background: linear-gradient(135deg, #E52222, #991111);
  color: #FFD700;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #5C0000;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.3),
    0 3px 0 #5C0000;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

/* ============================================================
   SEPARADOR TUBERÍAS entre secciones
   ============================================================ */
.mario-pipe-divider {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 70px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(22,163,74,.05) 100%);
  padding: 0 8%;
}

/* Tuberías del separador */
.mpd-pipe {
  width: 52px;
  height: 60px;
  position: relative;
  flex-shrink: 0;
}
.mpd-pipe::after {
  content: '';
  position: absolute;
  bottom: 0; left: 6px; right: 6px;
  height: calc(100% - 20px);
  background: linear-gradient(90deg, #0d4d0d 0%, #2ecc2e 35%, #3de03d 60%, #1a7a1a 100%);
  border-left:  3px solid #0a3d0a;
  border-right: 3px solid #0a3d0a;
}
.mpd-pipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(90deg, #0d4d0d 0%, #2ecc2e 40%, #1a7a1a 100%);
  border: 3px solid #0a3d0a;
  border-radius: 4px 4px 0 0;
}

/* Monedas del separador */
.mpd-coins {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 8px;
}
.mpd-coins span {
  font-size: 1.4rem;
  animation: coinFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.6));
}
.mpd-coins span:nth-child(1) { animation-delay: 0s;   }
.mpd-coins span:nth-child(2) { animation-delay: .18s; }
.mpd-coins span:nth-child(3) { animation-delay: .36s; }
.mpd-coins span:nth-child(4) { animation-delay: .54s; }
.mpd-coins span:nth-child(5) { animation-delay: .72s; }

/* ============================================================
   RESPONSIVE — elementos Mario
   ============================================================ */
@media (max-width: 640px) {
  .mario-world-strip { height: 90px; }
  .mw-mario   { width: 44px; height: 55px; }
  .mw-goomba  { width: 40px; height: 40px; }
  .mw-pipe    { width: 30px; height: 50px; }
  .mw-qblock  { width: 28px; height: 28px; font-size: .85rem; }
  .mpd-pipe   { width: 36px; height: 45px; }
  .mpd-coins span { font-size: 1rem; }
}
