/*
 * Global Premium Theme Stylesheet - Reconstrucción ginesosa.com.mx
 * Designed by Antigravity using Vanilla CSS3 and Mobile First Principles
 */

/* ----------------------------------------------------
   1. VARIABLES & SYSTEM TOKENS
   ---------------------------------------------------- */
:root {
  /* Brand Palettes */
  --primary: #732f40;          /* Vino principal */
  --primary-hover: #5a2432;
  --primary-trans: rgba(115, 47, 64, 0.08);
  --primary-solid-trans: rgba(115, 47, 64, 0.85);
  
  --secondary: #1a1a1a;        /* Carbón */
  --accent: #d4af37;           /* Oro suave */
  
  /* Neutral scale */
  --neutral-100: #ffffff;
  --neutral-200: #f9fafb;
  --neutral-300: #f3f4f6;
  --neutral-400: #e5e7eb;
  --neutral-600: #4b5563;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(115, 47, 64, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(12px);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout sizes */
  --header-height: 110px;
}

/* ----------------------------------------------------
   2. SYSTEM RESET & BASE STYLES
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--neutral-900);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------
   3. REUSABLE COMPONENTS
   ---------------------------------------------------- */
/* Premium Buttons */
.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary);
  color: var(--neutral-100);
  padding: 14px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.w-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(115, 47, 64, 0.25);
}

.w-btn:active {
  transform: translateY(0);
}

.w-btn i {
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.w-btn:hover i {
  transform: translateX(4px);
}

/* ----------------------------------------------------
   4. HEADER & NAVIGATION STYLES
   ---------------------------------------------------- */
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.l-header.pos_fixed {
  box-shadow: var(--shadow-md);
}

/* Upper Subheader: WhatsApp Direct Link */
.l-subheader.at_top {
  background-color: var(--secondary);
  color: var(--neutral-400);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subheader-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subheader-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.wa-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-300);
  font-weight: 500;
}

.wa-link i {
  color: #25d366; /* WhatsApp Green */
  font-size: 1.05rem;
}

.wa-link:hover {
  color: var(--neutral-100);
}

/* Main Brand Header Middle */
.l-subheader.at_middle {
  background-color: var(--neutral-100);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.phone-cta {
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  background-color: var(--neutral-200);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.phone-cta:hover {
  background-color: var(--primary);
  color: var(--neutral-100);
  box-shadow: var(--shadow-sm);
}

.phone-cta i {
  color: var(--primary);
}

.phone-cta:hover i {
  color: var(--neutral-100);
  transform: scale(1.1);
}

/* ----------------------------------------------------
/* ====================================================
   5. HERO SECTION STYLES (THE PRECISION MATRIX)
   ==================================================== */
.hero-section {
  position: relative;
  min-height: 600px;
  margin-top: 100px; /* Offset fixed header */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 80% 20%, rgba(213, 0, 249, 0.035) 0%, rgba(0, 229, 255, 0.025) 35%, #ffffff 80%);
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 650px;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-subtitle {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8c8c8c;
  letter-spacing: 5.5px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 1.8rem;
  color: var(--neutral-900);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--neutral-600);
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 15px;
  z-index: 5;
}

.hero-btn {
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Efecto de barrido láser metálico premium (Laser Sweep) */
.hero-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  animation: laser-sweep 4.5s infinite ease-in-out;
  z-index: 3;
}

@keyframes laser-sweep {
  0% {
    left: -150%;
  }
  18%, 100% {
    left: 200%;
  }
}

/* Caja de visualización de la lente/matriz holográfica */
.hero-visual-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.precision-matrix-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Glow orb directly behind the button */
.hero-btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0, 229, 255, 0.6) 0%,
    rgba(213, 0, 249, 0.45) 35%,
    rgba(212, 175, 55, 0.25) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(24px);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.65;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.95;
  }
}


/* ----------------------------------------------------
   6. PROFILE & BIO SECTION
   ---------------------------------------------------- */
.profile-section {
  padding: 80px 0;
  background-color: var(--neutral-100);
}

.bio-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

/* Photo and Trust Badge */
.bio-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doctor-photo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin-bottom: 24px;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid var(--neutral-100);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.doctor-photo-shadow {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  opacity: 0.45;
  z-index: 1;
}

/* Trust Card under Photo */
.ratings-badge {
  width: 320px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.verified-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.google-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.verified-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neutral-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verified-check {
  color: #4285f4; /* Google Blue */
}

.rating-stars {
  margin-bottom: 8px;
}

.text-gold {
  color: var(--accent);
  font-size: 1.1rem;
}

.rating-count {
  font-size: 0.9rem;
  font-weight: 600;
}

.rating-link {
  color: var(--primary);
  border-bottom: 1.5px solid transparent;
}

.rating-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

/* Bio Info & Sosa Tabs Container */
.bio-info-col {
  display: flex;
  flex-direction: column;
}

.doctor-header-info {
  margin-bottom: 30px;
  text-align: center;
}

.doctor-name {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.doctor-verified-icon {
  color: #1d9bf0;
  font-size: 1.5rem;
}

.doctor-specialty {
  font-size: 1.25rem;
  color: var(--neutral-800);
  font-weight: 600;
  margin-bottom: 4px;
}

.doctor-subspecialty {
  font-size: 1.05rem;
  color: var(--neutral-600);
  margin-bottom: 20px;
}

.doctor-credentials {
  background: var(--neutral-200);
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  margin-bottom: 24px;
  text-align: left;
}

.location-markers {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-vino {
  color: var(--primary);
  margin-right: 6px;
}

/* Custom Interactive Tabs */
#sosa-tabs-container {
  width: 100%;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sosa-header-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--neutral-200);
  border-bottom: 1px solid var(--neutral-300);
}

.sosa-tab-btn {
  padding: 16px 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--neutral-600);
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
  text-align: center;
}

.sosa-tab-btn:hover {
  color: var(--primary);
  background-color: rgba(115, 47, 64, 0.03);
}

.sosa-tab-btn.active {
  color: var(--neutral-100);
  background-color: var(--primary);
}

.sosa-tab-content {
  padding: 24px;
}

.sosa-panel {
  display: none;
}

.sosa-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--neutral-300);
  padding-bottom: 8px;
}

/* Specialties grid inside tab */
.sosa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sosa-card {
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
}

/* Academic timeline and awards list */
.academic-timeline, .awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sosa-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  padding: 12px;
  background: var(--neutral-200);
  border-radius: 10px;
  border: 1px dashed var(--neutral-400);
}

.award-card {
  border-left-color: var(--accent);
}

/* ----------------------------------------------------
   7. PRESS & PORTAL RECOGNITIONS
   ---------------------------------------------------- */
.press-section {
  border-top: 1px solid var(--neutral-300);
  padding-top: 60px;
}

.press-heading {
  font-size: 1.75rem;
  text-align: center;
  color: var(--neutral-900);
  margin-bottom: 40px;
  position: relative;
}

.press-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 12px auto 0;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.press-card {
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.press-img-wrapper {
  width: 100%;
  max-width: 240px;
  height: 320px;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--neutral-100);
  margin-bottom: 20px;
  border: 1px solid var(--neutral-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.press-card:hover .press-img {
  transform: scale(1.08);
}

.press-btn {
  background-color: var(--neutral-100);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  box-shadow: none;
}

.press-btn:hover {
  background-color: var(--primary);
  color: var(--neutral-100);
}

.stamp-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.surgeon-stamp {
  max-width: 600px;
  width: 90%;
  height: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

.surgeon-stamp:hover {
  filter: drop-shadow(0 10px 15px rgba(115, 47, 64, 0.15));
}

/* ----------------------------------------------------
   8. METRO GALLERY SECTION
   ---------------------------------------------------- */
.gallery-section {
  padding: 80px 0;
  background-color: var(--neutral-300);
}

.gallery-heading {
  font-size: 2rem;
  text-align: center;
  color: var(--neutral-900);
  margin-bottom: 40px;
  position: relative;
}

.gallery-heading::after {
  content: "";
  display: block;
  width: 65px;
  height: 3.5px;
  background-color: var(--primary);
  margin: 12px auto 0;
}

/* CSS Grid Metro arrangement */
.metro-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 12px;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* Limitar a 4 fotos en moviles */
.gallery-item:nth-child(n+5) {
  display: none;
}


.gallery-item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s var(--transition-slow);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-solid-trans);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.gallery-hover-overlay i {
  color: var(--neutral-100);
  font-size: 2.5rem;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover micro-animations */
.gallery-item:hover .gallery-item-img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-overlay i {
  transform: scale(1);
}

/* Fullscreen Lightbox Overlay Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 11000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--neutral-400);
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3;
}

.lightbox-close:hover {
  color: var(--neutral-100);
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--neutral-300);
  font-size: 22px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary);
  color: var(--neutral-100);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content-wrapper {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 3px solid rgba(255, 255, 255, 0.15);
  animation: zoomIn 0.3s ease-out;
}

/* ----------------------------------------------------
   9. CITAS / APPOINTMENTS & MAPS SECTION
   ---------------------------------------------------- */
.appointments-section {
  position: relative;
  padding: 80px 0;
  background-color: var(--neutral-900);
  color: var(--neutral-100);
  overflow: hidden;
}

.appointments-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(115, 47, 64, 0.15) 0%, rgba(17, 24, 39, 0) 70%);
  z-index: 1;
}

.relative-content {
  position: relative;
  z-index: 2;
}

.appointments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Sidebar Wrapper */
.sosa-side-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sosa-card-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.border-vino-accent {
  border-left: 5px solid var(--primary);
}

/* Hospital maps switcher */
.hospital-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.hosp-btn {
  padding: 10px 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--neutral-400);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-fast);
  outline: none;
  text-align: center;
}

.hosp-btn:hover {
  color: var(--neutral-100);
}

.hosp-btn.active {
  background-color: var(--primary);
  color: var(--neutral-100);
}

.location-data {
  display: none;
}

.location-data.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.contact-label {
  display: block;
  font-size: 0.88rem;
  color: var(--neutral-400);
  margin-bottom: 6px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  color: var(--neutral-100);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  border-bottom: 2px solid transparent;
}

.contact-link i {
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

/* Service Tag list */
.card-services-title {
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.services-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--neutral-300);
  transition: var(--transition-fast);
}

.service-tag:hover {
  background-color: var(--primary);
  color: var(--neutral-100);
  border-color: var(--primary);
}

/* Price tag */
.price-box {
  padding: 16px 24px;
}

.price-tag-value {
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--neutral-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-tag-value i {
  color: var(--accent);
}

/* Premium PHP Inquiry Form */
.form-container {
  display: flex;
  flex-direction: column;
}

.form-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.8rem;
  color: var(--neutral-100);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--neutral-400);
  margin-bottom: 24px;
}

/* Form alert banners */
.form-alert {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.success-alert {
  background-color: rgba(37, 211, 102, 0.12);
  border: 1px solid #25d366;
  color: #25d366;
}

.success-alert i {
  font-size: 1.25rem;
  margin-top: 2px;
}

.error-alert {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.error-alert i {
  font-size: 1.25rem;
  margin-top: 2px;
}

.error-alert ul {
  margin-left: 18px;
  margin-top: 6px;
}

/* Inputs and Forms elements */
.appointment-php-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-300);
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px 14px 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--neutral-100);
  outline: none;
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(115, 47, 64, 0.25);
}

.form-input:focus + i {
  color: var(--primary);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-select option {
  background-color: var(--neutral-900);
  color: var(--neutral-100);
}

.form-textarea {
  padding-left: 18px; /* No icon for textarea */
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 10px;
}

/* ----------------------------------------------------
   10. FOOTER GLOBAL STYLES
   ---------------------------------------------------- */
.l-footer {
  position: relative;
  background-color: var(--secondary);
  color: var(--neutral-400);
  overflow: hidden;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(115, 47, 64, 0.08) 0%, rgba(26, 26, 26, 0) 60%);
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.15rem;
  color: var(--neutral-100);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Contacts info */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--neutral-300);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.footer-contact-link:hover .contact-icon-box {
  background-color: var(--primary);
  color: var(--neutral-100);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-contact-link:hover {
  color: var(--neutral-100);
}

/* Social Buttons & Floating Tooltips */
.footer-socials {
  display: flex;
  gap: 14px;
}

.social-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-300);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-item:hover {
  color: var(--neutral-100);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Individual Brand colors */
.social-item.facebook:hover { background-color: #3b5998; border-color: #3b5998; }
.social-item.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }
.social-item.tiktok:hover { background-color: #000000; border-color: #000000; }

.social-item .tooltip {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--neutral-900);
  color: var(--neutral-100);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.social-item:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Legal Links */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.legal-link {
  color: var(--neutral-400);
  border-bottom: 1.5px solid transparent;
}

.legal-link:hover {
  color: var(--neutral-100);
  border-bottom-color: var(--neutral-100);
}

.divider {
  color: rgba(255, 255, 255, 0.15);
}

/* Bottom bar copyright */
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--neutral-600);
}

/* ----------------------------------------------------
   11. FLOATING WHATSAPP BUTTON WIDGET
   ---------------------------------------------------- */
.floating-wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  transition: var(--transition-normal);
}

.wa-float-btn {
  display: flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--neutral-100);
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-normal);
  animation: waPulse 2s infinite;
}

.wa-float-btn:hover {
  transform: scale(1.08) rotate(10deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ----------------------------------------------------
   11.B SAAS INTEGRATION & PREMIUM PAGES STYLES
   ---------------------------------------------------- */
/* Premium Header Navigation */
.header-navigation {
  display: none;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--neutral-800);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 50px;
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger Menu Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}
.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-normal);
  padding: 40px;
}
.mobile-nav-drawer.open {
  left: 0;
}
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
.mobile-nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--neutral-900);
  display: block;
  padding: 10px 0;
  border-bottom: 1.5px solid transparent;
  transition: var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Formulario de Reseñas / Captura */
.reviews-section {
  padding: 80px 0;
  background-color: var(--neutral-200);
}
.reviews-form-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(115, 47, 64, 0.04);
}
.reviews-form-title {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
}
.reviews-form-subtitle {
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin-bottom: 35px;
  text-align: center;
  line-height: 1.6;
}

/* Overrides para formulario en tarjeta blanca (modo claro premium) */
.reviews-form-card .form-label {
  color: var(--neutral-800);
  font-weight: 600;
}
.reviews-form-card .form-input {
  background-color: var(--neutral-100);
  border: 1px solid var(--neutral-400);
  color: var(--neutral-900);
  font-size: 0.95rem;
  padding: 14px 16px 14px 44px;
}
.reviews-form-card .form-textarea {
  padding-left: 18px;
}
.reviews-form-card .form-input::placeholder {
  color: var(--neutral-600);
  opacity: 0.55;
}
.reviews-form-card .input-icon-wrapper i {
  color: var(--primary);
  opacity: 0.65;
}
.reviews-form-card .form-input:focus {
  border-color: var(--primary);
  background-color: var(--neutral-100);
  box-shadow: 0 0 0 3px rgba(115, 47, 64, 0.15);
}


/* Interfaz Estrellas del Formulario */
.star-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.star-selector-stars {
  display: flex;
  gap: 10px;
}
.star-selector-stars span {
  font-size: 2rem;
  color: var(--neutral-400);
  cursor: pointer;
  transition: var(--transition-fast);
}
.star-selector-stars span:hover {
  transform: scale(1.15);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px; /* Spacious card gaps */
  margin-bottom: 50px;
}
.blog-card-premium {
  background: var(--neutral-100); /* Crisp white background for 3D card elevation */
  border: 1px solid rgba(115, 47, 64, 0.07); /* Delicate branded wine border */
  border-radius: 20px; /* Modern curve */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); /* Extremely subtle premium shadow */
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.blog-card-premium:hover {
  transform: translateY(-8px); /* Elevates card gracefully */
  box-shadow: 0 20px 40px rgba(115, 47, 64, 0.08); /* Branded wine shadow glow */
  border-color: rgba(115, 47, 64, 0.2);
}
.blog-card-img-box {
  position: relative;
  width: 100%;
  height: 230px; /* Enhanced height for blog images */
  overflow: hidden;
  background-color: var(--neutral-300);
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card-premium:hover .blog-card-img {
  transform: scale(1.06); /* Smooth zoom effect */
}

/* Home Blog Section & Responsive Grid */
.blog-home-section {
  padding: 100px 0;
  background-color: var(--neutral-200); /* Beautiful clean off-white background */
  border-bottom: 1px solid var(--neutral-300);
  position: relative;
}
.blog-home-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}
.blog-home-heading {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 800;
  position: relative;
  text-align: center;
}
.blog-home-heading::after {
  content: "";
  display: block;
  width: 65px;
  height: 3.5px;
  background-color: var(--accent); /* Elegant gold accent divider line */
  margin: 12px auto 0;
}
.blog-home-subheading {
  font-size: 1.05rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-top: 20px;
}
.blog-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 50px;
}

/* On mobile/tablet, hide 2nd and 3rd card completely to show exactly 1 card */
.blog-home-grid .blog-card-premium:nth-child(n+2) {
  display: none;
}

@media (min-width: 1024px) {
  .blog-home-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on PC */
  }
  /* Show all 3 cards on PC */
  .blog-home-grid .blog-card-premium:nth-child(n+2) {
    display: flex;
  }
}

.blog-home-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.blog-section-grid {
  padding: 90px 0;
  background-color: var(--neutral-200); /* Beautiful clean off-white background */
}
.testimonios-hero {
  background: radial-gradient(circle at 80% 20%, rgba(115, 47, 64, 0.04) 0%, rgba(212, 175, 55, 0.02) 40%, var(--neutral-200) 80%);
  padding: 90px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--neutral-300);
  margin-top: 100px;
}
.testimonios-hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 800;
}
.testimonios-hero p {
  font-size: 1.08rem;
  color: var(--neutral-600);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Home Testimonials Section */
.testimonials-home-section {
  padding: 100px 0;
  background-color: var(--neutral-200); /* Beautiful clean off-white background */
  border-bottom: 1px solid var(--neutral-300);
  position: relative;
}
.testimonios-home-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}
.testimonios-heading {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 800;
  position: relative;
  text-align: center;
}
.testimonios-heading::after {
  content: "";
  display: block;
  width: 65px;
  height: 3.5px;
  background-color: var(--accent); /* Elegant gold divider line */
  margin: 12px auto 0;
}
.testimonios-subheading {
  font-size: 1.05rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-top: 20px;
}
.testimonios-home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}
.w-btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.w-btn-outline:hover {
  background-color: var(--primary);
  color: var(--neutral-100);
  transform: translateY(-2px);
}

.testimonials-section-page {
  padding: 90px 0;
  background-color: var(--neutral-200); /* Beautiful clean off-white background */
}

.testimonials-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px; /* Increased card gap for perfect breathing room */
  margin-bottom: 50px;
}
.testimonial-card-premium {
  background: var(--neutral-100); /* Crisp clean white background */
  border: 1px solid rgba(115, 47, 64, 0.07); /* Subtle brand wine border */
  border-radius: 20px; /* Modern curve */
  padding: 40px; /* Spacious padding */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); /* Extremely delicate premium shadow */
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.testimonial-card-premium::before {
  content: '“';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 9rem;
  font-family: 'Poppins', sans-serif;
  color: rgba(115, 47, 64, 0.03); /* Very subtle wine tint quote icon */
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card-premium:hover {
  transform: translateY(-8px); /* Elevates card gracefully */
  box-shadow: 0 20px 40px rgba(115, 47, 64, 0.08); /* Highly sophisticated brand glow shadow */
  border-color: rgba(115, 47, 64, 0.2);
}
.testimonial-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.testimonial-stars-gold {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.testimonial-date {
  font-size: 0.82rem;
  color: var(--neutral-600);
  font-weight: 500;
}
.testimonial-body {
  font-size: 1rem;
  color: var(--neutral-800);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
  z-index: 2;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--neutral-300);
  padding-top: 22px;
}
.testimonial-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); /* Bold brand wine gradient */
  color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(115, 47, 64, 0.2);
}
.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: 6px;
}
.testimonial-author-verified {
  color: #1d9bf0;
  font-size: 0.85rem;
}
.testimonial-author-location {
  font-size: 0.78rem;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
}

/* Call to Action Testimonios */
.testimonials-cta-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--neutral-100);
  border-radius: 20px;
  padding: 45px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
.testimonials-cta-bar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.testimonials-cta-bar h2 {
  font-size: 1.9rem;
  color: var(--neutral-100);
  margin-bottom: 12px;
  font-weight: 700;
}
.testimonials-cta-bar p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 28px;
}
.btn-white-premium {
  background-color: var(--neutral-100);
  color: var(--primary) !important;
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.btn-white-premium:hover {
  background-color: var(--neutral-200);
  color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Blog Portal Styles */
.blog-hero {
  background: radial-gradient(circle at 80% 20%, rgba(115, 47, 64, 0.04) 0%, rgba(212, 175, 55, 0.02) 40%, var(--neutral-200) 80%);
  padding: 90px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--neutral-300);
  margin-top: 100px;
}
.blog-hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 800;
}
.blog-hero p {
  font-size: 1.08rem;
  color: var(--neutral-600);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}
.blog-card-badge {
  display: none !important;
}
.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-date {
  font-size: 0.8rem;
  color: var(--neutral-600);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.blog-card-title {
  font-size: 1.25rem;
  color: var(--neutral-900);
  margin-bottom: 12px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em; /* Consistent height for 2 lines */
}
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.blog-card-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}
.blog-card-premium:hover .blog-card-link i {
  transform: translateX(4px);
}

/* Detailed Article Reading layout */
.article-detail-section {
  padding: 60px 0;
  background-color: var(--neutral-100);
  margin-top: 100px;
}
.article-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
.article-content-main {
  background: var(--neutral-100);
}
.article-header {
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--neutral-600);
  margin-bottom: 12px;
  font-weight: 500;
}
.article-title-detail {
  font-size: 2.1rem;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}
.article-featured-img-box {
  width: 100%;
  max-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
}
.article-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body-text {
  font-size: 1.05rem;
  color: var(--neutral-800);
  line-height: 1.75;
}
.article-body-text p {
  margin-bottom: 24px;
}
.article-body-text h2, .article-body-text h3 {
  color: var(--primary);
  margin: 35px 0 15px;
  font-weight: 700;
}
.article-body-text h2 {
  font-size: 1.6rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.article-body-text h3 {
  font-size: 1.3rem;
}
.article-body-text ul, .article-body-text ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-body-text li {
  margin-bottom: 8px;
}
.article-body-text blockquote {
  border-left: 4px solid var(--primary);
  padding: 10px 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--neutral-600);
  background: var(--neutral-200);
  border-radius: 0 12px 12px 0;
}

/* Sidebar Recientes */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.sidebar-widget {
  background: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 18px;
  border-bottom: 2px solid var(--neutral-300);
  padding-bottom: 8px;
  font-weight: 700;
}
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.recent-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
}
.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--neutral-300);
  border: 1px solid var(--neutral-300);
}
.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-post-info {
  display: flex;
  flex-direction: column;
}
.recent-post-title-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--neutral-900);
  line-height: 1.35;
}
.recent-post-title-link:hover {
  color: var(--primary);
}
.recent-post-date {
  font-size: 0.75rem;
  color: var(--neutral-600);
  margin-top: 4px;
  font-weight: 500;
}

/* Pagination navigation styles */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--neutral-300);
  background-color: var(--neutral-200);
  color: var(--neutral-800);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}
.pagination-btn:hover {
  background-color: var(--primary-trans);
  color: var(--primary);
  border-color: var(--primary);
}
.pagination-btn.active {
  background-color: var(--primary);
  color: var(--neutral-100);
  border-color: var(--primary);
}
.pagination-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive grid media overrides */
@media (min-width: 768px) {
  .testimonials-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .header-navigation {
    display: block;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .mobile-nav-drawer {
    display: none !important;
  }
  .testimonials-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-detail-container {
    grid-template-columns: 2.1fr 1fr;
  }
  .testimonios-hero, .blog-hero {
    margin-top: 110px;
  }
  .article-detail-section {
    margin-top: 110px;
  }
}

/* ----------------------------------------------------
   12. ANIMATIONS & RESPONSIVE BREAKPOINTS
   ---------------------------------------------------- */
/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Grid / Stacking overrides */
@media (min-width: 640px) {
  .hero-section {
    height: 640px;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .form-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* Header adjustments */
  .brand-logo {
    max-height: 52px;
  }
  
  /* Hero Box */
  .hero-content-box {
    padding: 50px 60px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  /* Timeline */
  .sosa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Press portal logos */
  .press-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Metro Gallery Layout grid */
  .metro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.tall {
    grid-row: span 2;
  }
  
  .gallery-item.wide {
    grid-column: span 2;
  }
  
  /* Restaurar elementos 5 y 6 en tabletas, limitar a 6 */
  .gallery-item:nth-child(-n+6) {
    display: block;
  }
  .gallery-item:nth-child(n+7) {
    display: none;
  }

  
  /* Footer Columns layout */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  /* Base size */
  --header-height: 120px;
  
  /* Fixed Header top padding offset for body */
  .hero-section {
    height: 700px;
    margin-top: 110px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.03) 0%, rgba(213, 0, 249, 0.03) 35%, #ffffff 75%);
  }
  
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
  }
  
  .hero-content-box {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.15rem;
    max-width: 750px;
  }
  
  .hero-visual-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
  }
  
  .precision-matrix-canvas {
    width: 100%;
    height: 100%;
  }
  
  /* Columns splits */
  .bio-row {
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
  }
  
  .bio-photo-col {
    align-items: flex-start;
  }
  
  .doctor-header-info {
    text-align: left;
  }
  
  .metro-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Restaurar elementos 7 y 8 en computadoras, limitar a 8 */
  .gallery-item:nth-child(-n+8) {
    display: block;
  }
  .gallery-item:nth-child(n+9) {
    display: none;
  }

  
  /* Appointments Grid splits */
  .appointments-grid {
    grid-template-columns: 1.1fr 1.3fr;
    gap: 60px;
    align-items: start;
  }
  
  /* Footer grid splits */
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.1fr;
    gap: 60px;
  }
}
