/* =====================
assets/css/styles.css
====================== */
:root {
  /* 🎨 Paleta (del brief) */
  --green: #536699; /* alt: #8EC6A0 */
  --blue: #7b80ff; /* alt: #4A90A4 */
  --white: #262b66;
  --gray-100: #4b65c4;
  --gray-200: #9dafe0;
  --text: #FFFFFF; /* alt: #333333 */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3 { 
  font-family: 'Montserrat'; 
  line-height: 1.2; 
  font-size: 2.2rem;
}

section {
  min-height: 100dvh;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
.section { padding: 80px 0; display: flex; align-items: center; }
.section.alt { background: var(--gray-100); }
.container { width: min(1100px, 92%); margin: 0 auto;}
.hero-container { width: min(1600px, 92%); margin: 0 auto; min-height: 100vh;}
.lead { font-size: 1.1rem; color: var(--gray-200); }

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: saturate(180%) blur(12px);
  border-right: 1px solid var(--gray-200);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: width 0.3s ease;
}

.sidebar-nav:hover {
  width: 220px;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.sidebar-nav .brand {
  display: flex;
  align-items: center;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.sidebar-nav:hover .brand {
  opacity: 1;
}

.sidebar-nav .logo {
  width: 120px;
  height: 40px;
  object-fit: contain;
}

/* Two logo variants: compact and full */
.logo-full { display: none; }
.logo-compact { display: block; width: 40px; height: 40px; }

.sidebar-nav:hover .logo-compact { display: none; }
.sidebar-nav:hover .logo-full { display: block; width: 120px; height: 40px; }

.nav-menu {
  flex: 1;
  padding: 1rem 0;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step {
  display: flex;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.number {
  background-color: white;
  color: var(--blue);
  font-size: 3rem;
  font-weight: bold;
  width: 120px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  background-color: var(--blue); 
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: left;
  flex-direction: column;
  flex: 1;
}

.step-content h3 {
  margin: 0 0 0.5rem;
}

.step-content p {
  margin: 0;
  line-height: 1.4;
}


.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--blue);
  text-decoration: none;
  border-radius: 0;
  /* Make hover-enter transitions slower (long duration) so the animation feels smooth when hovering in */
  transition: transform 0.6s ease, color 0.6s ease, background 0.6s ease;
  position: relative;
  margin: 0 0.6rem;
  border-radius: 12px;
}

.nav-menu .nav-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-menu .nav-link span {
  opacity: 0;
  transform: translateX(-10px);
  /* Longer transition on the non-hover state: makes the "enter" animation slower */
  transition: opacity 0.1s ease, transform 0.1s ease;
  white-space: nowrap;
  font-weight: 500;
}

.sidebar-nav:hover .nav-link span {
  opacity: 1;
  transform: translateX(0);
  /* Shorter transition while hovered: ensures the "leave" animation (when hover ends) is fast */
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* Also make the nav-link itself exit quickly when the sidebar is hovered (leave will be fast) */
.sidebar-nav:hover .nav-link {
  transition: transform 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.nav-menu .nav-link:hover {
  background: var(--gray-200);
  color: var(--text);
  transform: translateX(5px);
}

.nav-menu .nav-link.contact-btn {
  background: var(--blue);
  color: white;
  margin-top: auto;
}

.nav-menu .nav-link.contact-btn:hover {
  background: var(--green);
  transform: translateX(5px);
}

/* Active state for navigation */
.nav-menu .nav-link.active {
  background: var(--blue);
  color: white;
}

.nav-menu .nav-link.active:hover {
  background: var(--green);
}

/* Sidebar scroll indicator */
.sidebar-nav::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--blue), var(--green));
  transition: height 0.3s ease;
}

.sidebar-nav:hover::after {
  height: 100%;
}

/* Main content adjustment */
.main-content {
  margin-left: 80px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { align-items: center; height: 89dvh; position: relative; bottom: 0;}
.grid-2 { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; height: auto; align-items: center; }
.grid-4 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; height: auto; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 2rem; align-items: center; }
.hero .cta-group { display: flex; gap: 1rem; margin-top: 1rem; align-items: center; }
.trust-badges { 
  display: grid; 
  grid-template-columns: repeat(3, auto); 
  gap: .75rem 1.25rem; 
  margin-top: 1rem; 
  padding: 0; 
  list-style: none; 
  font-family: 'Montserrat', cursive;
  font-size: 1.1rem;
}

.hero-media { height: 100vh; width: auto; display: flex; align-items: center; z-index: 1000; justify-content: center;}
.hero-img { max-height: 100%; object-fit: cover; }

/* Hero feature layout (inspired by attached image, using site palette) */
/* Hero visual tweaks: dark background and high-contrast copy */
.hero-feature { background: var(--white); /* dark navy from palette */ }
.hero-feature .hero-container { align-items: center; min-height: 88vh; position: relative; }
.hero-title { font-size: 3.4rem; margin: 0 0 0.5rem; color: var(--text); line-height: 1.03; }
.hero-subtitle { font-size: 1.25rem; margin: 0 0 1rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.hero-copy { padding: 3.5rem 2rem; color: rgba(255,255,255,0.92); }

.hero-social { display: flex; gap: 0.75rem; align-items: center; }
.hero-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text); text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.hero-social a i { font-size: 1.1rem; color: rgba(255,255,255,0.95); }

/* Floating contact badge */
.contact-badge { position: absolute; bottom: clamp(20px, 6vh, 55px); z-index: 1200; }
.contact-badge .contact-item { font-weight: bold;display: flex; align-items: center; gap: 1rem; background: var(--blue); color: #fff; padding: .85rem 1rem; border-radius: 14px; box-shadow: 0 18px 40px rgba(6,10,30,0.45); text-decoration: none; min-width: 260px; }
.contact-badge .contact-item strong { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.contact-badge .contact-item span { color: #0b1220; font-weight: 500; font-size: 0.95rem; }

/* Hero marquee: subtle moving phrase across bottom of hero */
.hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8vh; /* user requested height */
  overflow: hidden;
  pointer-events: none;
  z-index: 900; /* behind the contact badge but above background */
  display: flex;
  align-items: bottom;
}

.about-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8vh; /* user requested height */
  overflow: hidden;
  pointer-events: none;
  z-index: 900; /* behind the contact badge but above background */
  display: flex;
  align-items: bottom;
}

.hero-marquee__track {
  display: inline-flex;
  gap: 4rem;
  align-items: bottom;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-rtl 600s linear infinite;
}

.hero-marquee__track span {
  font-family: 'Patrick Hand', cursive; /* creative handwritten font already loaded */
  font-size: clamp(3rem, 10vh, 6rem);
  color: rgba(255, 255, 255, 0.562); /* very low opacity for subtle background */
  letter-spacing: 1px;
  /* Make the span wrap *only* the glyph box: remove padding/margins and normalize line-height */
  display: inline-flex;
  align-items: center; /* vertically center the glyph inside the span */
  line-height: 1; /* set line-height equal to font-size to remove extra leading */
  padding: 0;
  margin: 0;
  vertical-align: middle; /* prevent inline baseline gaps */
  z-index: 0;
}

@keyframes marquee-rtl {
  0% { transform: translateX(0.5%); }
  100% { transform: translateX(-100%); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-marquee__track { animation: none; }
}

@media (max-width: 960px) {
  .hero-feature .hero-container { grid-template-columns: 1fr; gap: 1rem; }
  .hero-media { order: -1; height: 40vh; }
  .contact-badge { left: 16px; bottom: 16px; width: calc(100% - 32px); }
  .hero-title { font-size: 2rem; }
}

/* Improve legibility for trust badges on dark background */
.trust-badges li { color: rgba(255,255,255,0.92); font-weight: 600; }

/* Buttons (3D shadow + interactive states) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .18s ease, filter .12s ease;
  /* subtle default shadow to lift buttons from the surface */
  box-shadow: 0 8px 22px rgba(6,10,30,0.12), 0 2px 6px rgba(6,10,30,0.06);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(6,10,30,0.12); }
.btn:focus { outline: 3px solid rgba(123,128,255,0.16); outline-offset: 4px; }

.btn-primary { background: var(--blue); color: var(--text) !important; box-shadow: 0 12px 28px rgba(75,101,196,0.12), 0 4px 8px rgba(6,10,30,0.06); }
.btn-primary:hover { filter: brightness(1.03); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; box-shadow: 0 8px 20px rgba(75,101,196,0.06); }
.btn-outline:hover { background: var(--blue); color: var(--text); box-shadow: 0 14px 36px rgba(75,101,196,0.14); }

/* Lists & cards */
.list { padding-left: 1rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.card { background: linear-gradient(180deg, rgba(11, 18, 32, 0.699), rgba(65, 107, 189, 0.301));; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 350px; object-fit: cover; }
.card-body { padding: 1rem 1rem 1.25rem; }
.card details summary { cursor: pointer; color: #fff; font-weight: 600; margin-top: .5rem; }
.card details[open] summary { margin-bottom: .5rem; }

/* ABOUT section specific layout (profile + cards) */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; margin-top: 1.25rem; }
.profile-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); padding: 1.25rem; border-radius: 14px; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: flex-start; box-shadow: 0 12px 30px rgba(6,10,30,0.06); border: 1px solid rgba(255,255,255,0.04); }
.profile-photo { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 30px rgba(6,10,30,0.12); border: 4px solid rgba(255,255,255,0.03); }
.profile-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.profile-role { margin: 0; font-size: 0.95rem; color: var(--gray-200); text-align: center; }
.profile-facts { list-style: none; padding: 0; margin: 0; width: 100%; color: var(--gray-200); font-size: 0.95rem; display: grid; gap: .5rem; }
.profile-facts li a { color: var(--blue); text-decoration: none; font-weight: 600; }
.profile-cta { display: flex; gap: .5rem; width: 100%; justify-content: center; }

.about-cards { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 1.25rem; }
.about-cards .card { border-radius: 12px; padding: 0; background: linear-gradient(180deg, rgba(11, 18, 32, 0.336), rgba(65, 107, 189, 0.301)); }
.about-cards .card-body { padding: 1.25rem; color: rgba(255,255,255,0.95); }
.about-cards .card h3 { margin: 0 0 .5rem 0; color: #fff; display: flex; gap: .5rem; align-items: center; }
.about-cards .card p { margin: 0 0 .5rem 0; color: rgba(255,255,255,0.82); }
.about-cards .card details summary { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* Make all cards visually balanced */
.about-cards .card { display: flex; align-items: stretch; }
.about-cards .card-body { display: flex; flex-direction: column; justify-content: space-between; }

/* Responsive adjustments */
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .profile-card { flex-direction: row; align-items: center; gap: 1rem; padding: .75rem; }
  .profile-photo { width: 84px; height: 84px; border-radius: 10px; }
  .profile-cta { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .about-cards { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: center; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0 2rem; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* =====================
   Galería de Comentarios Flotantes
====================== */
.galeria {
  /* Background image (salute.JPG) with a subtle gradient overlay for legibility */
  background-image: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(75,101,196,0.45) 100%), url("../img/salute.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
}

.galeria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(123, 128, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(83, 102, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Modern testimonials (no images) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.ts-card {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 30px rgba(6,10,30,0.08);
  border: 1px solid rgba(11,18,32,0.06);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
  text-align: center;
}

.ts-card2 {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 30px rgba(6,10,30,0.08);
  border: 1px solid rgba(11,18,32,0.06);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
  text-align: center;
}

.ts-card blockquote { margin: 0 0 .75rem 0; font-style: normal; color: #0b1220; line-height: 1.45; }
.ts-card figcaption { font-weight: 700; font-size: .95rem; color: rgba(11,18,32,0.65); }

.ts-card:hover, .ts-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(6,10,30,0.12);
}

@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .galeria { min-height: auto; padding: 3rem 0; }
}

/* Center content within the galeria section without touching the marquee */
.galeria .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60dvh;
  padding-top: 4rem;
  padding-bottom: 6rem; /* leave space for marquee at the bottom */
}

.testimonials-grid { justify-items: center; width: min(920px, 100%); }
.ts-card blockquote { max-width: 56ch; margin-left: auto; margin-right: auto; }
.ts-card figcaption { text-align: center; }

/* Ensure headings and subtitle are readable on top of the background image */
.galeria h2,
.galeria .lead,
.galeria h2.reveal,
.galeria .lead.reveal {
  color: #0b1220; /* dark text for contrast */
  text-shadow: none;
}

@media (max-width: 480px) {
  .galeria h2 { font-size: 1.6rem; }
  .galeria .lead { font-size: 1rem; }
}

.galeria-header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 4rem;
}

/* Light band behind headings to improve contrast but keep width constrained to avoid covering faces */
.galeria-header {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  max-width: min(760px, calc(100% - 3rem));
  width: 90%;
  box-shadow: 0 8px 30px rgba(6,10,30,0.06);
  backdrop-filter: blur(4px);
}

.galeria-header h2 { margin: 0 0 .25rem 0; color: #0b1220; }
.galeria-header .lead { margin: 0; color: rgba(11,18,32,0.7); }

@media (min-width: 920px) {
  .galeria-header { width: auto; }
}

.floating-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.booking-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(123,128,255,0.06), rgba(83,102,153,0.04));
  min-height: 280px; /* sensible default for the booking card */
  display: block;
}

.booking-image::after {
  /* subtle vignette/overlay to help text legibility if needed */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}

.booking-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.booking-image:focus-within,
.booking-image:focus {
  outline: 3px solid rgba(123,128,255,0.18);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .booking-image { min-height: 200px; }
}

.testimonial-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  animation: floatLeft linear infinite;
  white-space: nowrap;
  max-width: 350px;
  min-width: 250px;
  z-index: 1;
}

.testimonial-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
}

.testimonial-card .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin-right: 1rem;
  border: 3px solid rgba(123, 128, 255, 0.3);
}

.testimonial-card .content {
  overflow: hidden;
}

.testimonial-card .quote {
  font-family: 'Montserrat';
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-style: italic;
  white-space: normal;
}

.testimonial-card .author {
  font-size: 0.9rem;
  color: var(--gray-200);
  font-weight: 600;
  text-align: right;
  margin-top: 0.5rem;
}

.testimonial-card .author::before {
  content: '— ';
  color: var(--blue);
}

/* Animación de flotación */
@keyframes floatLeft {
  0% {
    transform: translateX(calc(100vw + 100px));
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  97% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-100% - 50px));
    opacity: 0;
  }
}


.testimonial-card:hover {
  animation-play-state: paused;
  z-index: 100;
}

/* Tamaños diferentes para efecto de profundidad */
.testimonial-card.size-small {
  transform: scale(0.8);
  opacity: 0.7;
  animation-duration: 35s;
}

.testimonial-card.size-medium {
  transform: scale(0.9);
  opacity: 0.85;
  animation-duration: 40s;
}

.testimonial-card.size-large {
  transform: scale(1.0);
  opacity: 1;
  animation-duration: 45s;
}

.testimonial-card.size-xl {
  transform: scale(1.1);
  opacity: 1;
  animation-duration: 40s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Colores de cards alternados */
.testimonial-card:nth-child(4n+1) {
  background: rgba(123, 128, 255, 0.1);
  border-color: rgba(123, 128, 255, 0.3);
}

.testimonial-card:nth-child(4n+2) {
  background: rgba(83, 102, 153, 0.1);
  border-color: rgba(83, 102, 153, 0.3);
}

.testimonial-card:nth-child(4n+3) {
  background: rgba(157, 175, 224, 0.1);
  border-color: rgba(157, 175, 224, 0.3);
}

.testimonial-card:nth-child(4n) {
  background: rgba(75, 101, 196, 0.1);
  border-color: rgba(75, 101, 196, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    max-width: 280px;
    min-width: 200px;
    padding: 1rem;
  }
  
  .testimonial-card .quote {
    font-size: 1rem;
  }
  
  .testimonial-card .avatar {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-card.size-small {
    animation-duration: 20s;
  }
  
  .testimonial-card.size-medium {
    animation-duration: 25s;
  }
  
  .testimonial-card.size-large {
    animation-duration: 30s;
  }
  
  .testimonial-card.size-xl {
    animation-duration: 35s;
  }
}

/* Testimonials slider (código anterior comentado para mantener compatibilidad) */
.testimonials { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.ts-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow: hidden; scroll-behavior: smooth; }
.ts-item { margin: 0; padding: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: center; }
.ts-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.ts-item blockquote { 
  font-family: 'Montserrat', cursive; 
  font-size: 1.2rem; 
  margin: 0; 
  font-style: italic;
}
.ts-item figcaption { 
  font-family: 'Montserrat', cursive; 
  font-size: 1rem; 
  margin-top: 0.5rem;
}
.ts-prev, .ts-next { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--green); color: var(--text); font-size: 1.25rem; }

/* Contact */
.contact-list { 
  list-style: none; 
  padding: 0; 
  margin: 0 0 2rem; 
  display: grid; 
  gap: 1rem; 
}

.contact-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  border-color: var(--green);
}

.contact-list li:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.contact-list li:hover:before {
  transform: scaleY(1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  width: 100%;
  position: relative;
  z-index: 2;
}

.contact-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px; /* Asegurar ancho mínimo */
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-item strong::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.contact-list li:hover .contact-item strong::before {
  left: 100%;
}

.primeros-pasos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong i {
  color: var(--white);
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  width: 1em; 
  text-align: center; 
  transition: all 0.3s ease;
}

.contact-item span {
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-list li:hover .contact-item span {
  color: var(--blue);
}
.contact-form { display: grid; gap: .75rem; background: var(--white); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--gray-200); border-radius: 10px; font: inherit; }
.map-container { 
  border-radius: var(--radius); 
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

.map-info {
  padding: 1.5rem;
  background: var(--blue);
  border-top: 3px solid var(--text);
}

.clinic-info h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clinic-info h4 i {
  color: var(--text);
  font-size: 1rem;
}

.clinic-info p {
  margin: 0.5rem 0;
  color: var(--text);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clinic-info p i {
  color: var(--text);
  width: 16px;
  font-size: 0.9rem;
}

.clinic-info a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-only {
  display: none;
}

.clinic-info a:hover {
  color: var(--green);
}

/* Responsive map */
@media (max-width: 720px) {
  .non-mobile {
    display: none;
  }

  .map-container iframe {
    height: 300px;
  }

  .map {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .site-header {
    position: relative;
  }

  .hero {
    height: auto;
    justify-content: center;
  }
  
  .map-info {
    padding: 1rem;
  }
  
  .clinic-info h4 {
    font-size: 1rem;
  }
}

/* Footer */
.site-footer { border-top: 1px solid var(--gray-200); padding: 32px 0; background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-left p {
  margin: 0;
  color: var(--white);
  font-weight: 500;
}

.designer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-family: 'Montserrat', cursive;
  font-size: 1.1rem;
}

.designed-by {
  color: #666;
  font-weight: 400;
}

.designer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.designer-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(62, 108, 136, 0.1), transparent);
  transition: left 0.6s ease;
}

.designer-link:hover:before {
  left: 100%;
}

.designer-link:hover {
  color: var(--text);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 4px 15px rgba(62, 108, 136, 0.3);
  transform: translateY(-1px);
}

.designer-name {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.designer-link:hover .designer-name {
  -webkit-text-fill-color: var(--text);
}

.designer-link i {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.designer-link:hover i {
  opacity: 1;
  transform: translateX(2px);
}

.margincero {
  margin: 0 !important;
}

.footer-nav a { color: #555; text-decoration: none; margin-left: 1rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--blue); }

/* Reveal on scroll (IntersectionObserver) */
.reveal { opacity: 1; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.reveal[data-reveal="left"] { transform: translateX(24px); }
.reveal[data-reveal="right"] { transform: translateX(-24px); }
.reveal[data-reveal="up"] { transform: translateY(24px); }

/* A11y */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; padding: .5rem .75rem; background: var(--blue); color: #fff; z-index: 100; border-radius: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .non-mobile {
    display: none;
  }

  .grid-2 { grid-template-columns: 1fr; align-items: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Sidebar se convierte en bottom navigation */
  .sidebar-nav {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--gray-200);
  }

  .mobile-only {
    display: block;
  }

  .sidebar-nav:hover {
    width: 100%;
  }
  
  .sidebar-header {
    display: none;
  }
  
  .nav-menu {
    flex: 1;
    padding: 0;
  }
  
  .nav-menu ul {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    gap: 0;
  }
  
  .nav-menu .nav-link {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    margin: 0;
    text-align: center;
    min-width: 50px;
  }
  
  .nav-menu .nav-link i {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  
  .nav-menu .nav-link span {
    opacity: 1;
    transform: none;
    font-size: 0.75rem;
  }
  
  .nav-menu .nav-link:hover {
    transform: none;
    background: var(--gray-200);
  }
  
  .nav-menu .nav-link.contact-btn {
    background: var(--blue);
    border-radius: 12px;
    margin: 0.5rem;
  }
  
  /* Adjust main content */
  .main-content {
    margin-left: 0;
    padding-bottom: 90px; /* Space for bottom nav */
  }
  
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  
  .hero {
    height: auto;
    min-height: 80vh;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  /* Footer responsive */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-left {
    align-items: center;
  }
  
  .designer-credit {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-nav {
    order: -1;
  }
  
  .footer-nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
}

/* ========= Social Links Modernos ========= */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Modal styles (cohesive with theme) */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; font-family: inherit; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,12,30,0.6); backdrop-filter: blur(6px); }
.modal-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(720px, 92%); background: linear-gradient(180deg, var(--white), #ffffff); color: var(--text); border-radius: 14px; box-shadow: 0 20px 60px rgba(12,16,40,0.35); overflow: hidden; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.06); background: linear-gradient(90deg, var(--blue), var(--green)); color: var(--text); }
.modal-header h3 { margin: 0; font-size: 1.4rem; }
.modal-body { padding: 1.25rem 1.5rem; color: #222; line-height: 1.5; background: #fff; }
.modal-close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; font-size: 1.6rem; color: rgba(255,255,255,0.9); cursor: pointer; }
.modal-panel:focus { outline: none; }
.modal-body p { margin: 0; color: #333; }

@media (max-width: 480px) {
  .non-mobile {
    display: none;
  }
  .mobile-only {
    display: block;
  }
  .modal-panel { width: calc(100% - 32px); }
  .modal-header h3 { font-size: 1.1rem; }
}

/* Colores específicos para cada red social */
.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.social-links a[href*="instagram"] {
  background: linear-gradient(135deg, #E4405F 0%, #F56040 50%, #FFDC80 100%);
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-links a[href*="linkedin"] {
  background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-links a[href*="twitter"]:hover,
.social-links a[href*="x.com"]:hover {
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-links a[href*="instagram"]:hover {
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-links a[href*="facebook"]:hover {
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Animación de pulso sutil */
.social-links a {
  animation: social-pulse 3s ease-in-out infinite;
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.5s; }
.social-links a:nth-child(3) { animation-delay: 1s; }

/* =====================
   Reflexiones Section
====================== */
.reflexiones {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.reflexiones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  pointer-events: none;
}

.reflexiones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.reflexion-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.reflexion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.reflexion-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--blue);
  font-family: 'Patrick Hand', cursive;
  opacity: 0.3;
}

.reflexion-quote {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.reflexion-author {
  font-size: 0.9rem;
  color: var(--gray-200);
  font-weight: 600;
  text-align: right;
  position: relative;
  padding-left: 2rem;
}

.reflexion-author::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* Variaciones de color para cada reflexión */
.reflexion-card:nth-child(1) {
  background: rgba(123, 128, 255, 0.1);
  border-color: rgba(123, 128, 255, 0.3);
}

.reflexion-card:nth-child(2) {
  background: rgba(83, 102, 153, 0.1);
  border-color: rgba(83, 102, 153, 0.3);
}

.reflexion-card:nth-child(3) {
  background: rgba(157, 175, 224, 0.1);
  border-color: rgba(157, 175, 224, 0.3);
}

.reflexion-card:nth-child(4) {
  background: rgba(75, 101, 196, 0.1);
  border-color: rgba(75, 101, 196, 0.3);
}

.reflexion-card:nth-child(5) {
  background: rgba(16, 18, 46, 0.1);
  border-color: rgba(16, 18, 46, 0.3);
}

/* Especial para "daño ≠ dolor" - tarjeta destacada */
.reflexion-card.destacada {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(123, 128, 255, 0.2) 0%, rgba(83, 102, 153, 0.2) 100%);
  border: 2px solid rgba(123, 128, 255, 0.4);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reflexion-card.destacada .reflexion-quote {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.reflexion-card.destacada::before {
  display: none;
}

/* Animaciones suaves */
.reflexion-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.reflexion-card:nth-child(1) { animation-delay: 0.1s; }
.reflexion-card:nth-child(2) { animation-delay: 0.2s; }
.reflexion-card:nth-child(3) { animation-delay: 0.3s; }
.reflexion-card:nth-child(4) { animation-delay: 0.4s; }
.reflexion-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .reflexiones-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reflexion-card.destacada {
    grid-column: span 1;
    padding: 2rem 1.5rem;
  }
  
  .reflexion-card.destacada .reflexion-quote {
    font-size: 2rem;
  }
  
  .reflexion-quote {
    font-size: 1.1rem;
  }
}

/* Modern background for Reservas section */
.reservas {
  /* overlay gradient above the photo for consistent contrast */
  background-image: linear-gradient(180deg, rgba(10,14,30,0.45) 0%, rgba(10,14,30,0.55) 100%),
                    url('../img/exer.JPG') !important;
  background-size: cover !important;
  background-position: center center;
  color: #fff; /* ensure white text on darkened photo */
  position: relative;
  overflow: hidden;
}

/* Keep content above the background overlay */
#reservas .container { position: relative; z-index: 2; }

/* Subtle decorative gradient layer for extra depth */
#reservas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(123,128,255,0.03) 0%, rgba(83,102,153,0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Glass-style booking card */
#reservas .booking-placeholder {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px) saturate(120%);
  color: rgba(255,255,255,0.95);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(6,10,30,0.45);
  max-width: 520px;
}

#reservas .booking-placeholder p { color: rgba(255,255,255,0.9); margin-bottom: 0.8rem; }

/* Make primary button pop on photo background */
#reservas .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(62,108,136,0.18);
}

/* Booking image: lift from background with strong shadow and rounded corners */
#reservas .booking-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(6,10,30,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  min-height: 320px;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  z-index: 3;
}

#reservas .booking-image img { width:100%; height:100%; object-fit:cover; display:block; filter: contrast(1.02) saturate(0.95); }

/* Ensure good behavior on small screens */
@media (max-width: 768px) {
  #reservas { background-position: center top; }
  #reservas .container { padding-top: 30px; padding-bottom: 30px; }
  #reservas .booking-image { min-height: 220px; }
  #reservas .booking-placeholder { max-width: 100%; }
}

/* Reduce heavy parallax on mobile */
@media (max-width: 480px) {
  #reservas { background-attachment: scroll; }
}

/* ===============
   Responsive adjustments (mobile-first improvements)
   Added: convert sidebar to top navigation on small screens, stack grids, scale images/typography
   =============== */

@media (max-width: 880px) {
  /* Make sidebar a top bar */
  .sidebar-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 90px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255,255,255,0.98);
    backdrop-filter: none;
  }

  .sidebar-header { display: none; }

  /* show full logo on small screens, hide compact */
  .logo-full { display: none; }
  .logo-compact { display: none; }

  .nav-menu { flex: 1; padding: 0; }
  .nav-menu ul { flex-direction: row; gap: 0rem; align-items: center; justify-content: flex-end; }
  .nav-menu .nav-link { padding: 0.2rem 0.2rem; margin: 0 .1rem; border-radius: 8px; }
  .nav-menu .nav-link i { display: inline-block; }
  .nav-menu .nav-link span { opacity: 1; transform: none; transition: none; display: inline; font-size: 0.95rem; }

  /* Ensure main content isn't hidden under the top bar */
  .main-content { margin-left: 0; padding-top: calc(48px + 1rem); }

  /* Stack grid layouts */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-media { order: -1; height: 36vh; }
  .hero-img { width: 100%; height: 100%; object-fit: cover; }

  /* Buttons and CTA spacing */
  .hero .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { width: 100%; }

  /* Cards and gallery collapse */
  .cards { grid-template-columns: 1fr; }
  .card img { height: auto; max-height: 320px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }

  /* Floating contact badge full width on small screens */
  .contact-badge { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; }
  .contact-badge .contact-item { min-width: 0; justify-content: center; gap: .5rem; }
  .contact-badge .contact-item span { display: none; }

  /* Marquee smaller */
  .hero-marquee, .about-marquee { height: 6vh; }
  .hero-marquee__track span, .about-marquee .hero-marquee__track span { font-size: clamp(3rem, 3.5vw, 6rem); }

  /* Map size */
  .map-container iframe { height: 240px; }

  /* Footer spacing */
  .site-footer .container { padding: 1.5rem 1rem; }
}

@media (max-width: 520px) {
  /* Tighten typography and components for very small phones */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-copy { padding: 1rem; }

  .number { width: 80px; min-width: 80px; font-size: 2rem; }
  .step-content { padding: 1rem; }

  .cards { gap: .75rem; }
  .card img { max-height: 220px; }

  .nav-menu .nav-link span { display: none; } /* on very small screens show icons only to save space */
  .nav-menu .nav-link { padding: .4rem .5rem; }

  /* Reduce hero-media height to avoid large space consumption on small screens */
  .hero-media { height: 28vh; }

  /* Contact badge compact */
  .contact-badge .contact-item { padding: .6rem; border-radius: 12px; }
  .contact-badge .contact-item strong { width: 40px; height: 40px; }
}

/* High density and large screens: improve layout readability */
@media (min-width: 1200px) {
  .container { width: min(1200px, 92%); }
  .hero-container { gap: 6rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}