/* ==========================================================================
   Configuración de Variables - Clínica Quirúrgico Azteca
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary: #108c72;      /* Verde Quirúrgico */
  --color-primary-hover: #0c6d59;
  --color-accent: #279ebb;       /* Azul Cyan */
  --color-secondary: #f3f4f6;
  --color-secondary-hover: #e5e7eb;

  /* Text Colors */
  --text-main: #333333;
  --text-muted: #5a5a5a;
  --text-light: #ffffff;

  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-light: #f7fafa;
  --bg-dark: #0d3b32;

  /* Utilities */
  --font-main: 'Outfit', system-ui, sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.text-center { text-align: center; }
.text-large { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--color-primary); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-main);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(16, 140, 114, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 140, 114, 0.45);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--text-light);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.7rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo-img {
  height: 48px;
  border-radius: 8px;
}

.nav-brand { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.8rem;
}

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

.nav-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 59, 50, 0.85) 0%, rgba(16, 140, 114, 0.9) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
  background-color: rgba(0,0,0,0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
}

.hero-emergency a {
  color: var(--text-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.about-image-wrapper, .surgery-image-wrapper {
  position: relative;
}

.about-img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  width: 100%;
  object-fit: cover;
}

.img-decorator {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  z-index: 1;
  opacity: 0.12;
}

@media (max-width: 992px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .img-decorator { display: none; }
}

/* ==========================================================================
   Banner Section
   ========================================================================== */
.banner-section {
  padding: 3rem 0;
}

.banner-wrapper img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.grid-2-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2-banner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.process-card {
  background-color: var(--bg-body);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-secondary-hover);
  position: relative;
  text-align: center;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.process-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin: 1rem 0;
  display: block;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Specialties Section
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.specialty-card {
  background-color: var(--bg-body);
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-secondary-hover);
  transition: var(--transition);
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.specialty-card i {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.specialty-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-body);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-secondary-hover);
  transition: var(--transition);
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(39, 158, 187, 0.12);
  color: var(--color-accent);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
}

/* ==========================================================================
   Video Section
   ========================================================================== */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Promo Section
   ========================================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.promo-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--text-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.promo-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.promo-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.promo-card p {
  opacity: 0.95;
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.wa-form {
  background: var(--bg-body);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-secondary-hover);
  text-align: center;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  color: #b8d4cd;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #b8d4cd;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8d4cd;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #b8d4cd;
  font-weight: 600;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 1000;
  transition: var(--transition);
}

.floating-wa:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  visibility: visible;
}

.fade-up { transform: translateY(40px); }
.fade-up.active { transform: translateY(0); }

.fade-left { transform: translateX(40px); }
.fade-left.active { transform: translateX(0); }

.fade-right { transform: translateX(-40px); }
.fade-right.active { transform: translateX(0); }

.zoom-in { transform: scale(0.9); }
.zoom-in.active { transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Social Section
   ========================================================================== */
.social-section {
  padding: 2.5rem 0;
  background-color: var(--bg-color, #ffffff);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--color-primary);
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  background-color: var(--color-primary);
  color: var(--text-light);
}