:root {
  --body-image: url('imagenes/fondo-habitacion.jpg');
  --body-image-2x: url('imagenes/fondo-habitacion.jpg');
  --body-image-webp: url('imagenes/fondo-habitacion.webp');
  --hero-image: url('imagenes/fondo.jpg');
  --hero-image-2x: url('imagenes/fondo.jpg');
  --hero-image-webp: url('imagenes/fondo.webp');
  --hero-image-mobile: url('imagenes/fondo.jpg');
  --hero-image-mobile-webp: url('imagenes/fondo.webp');
  --bg: #0a1024;
  --surface: #121d40;
  --surface-raised: #192750;
  --accent: #e85b6d;
  --accent-soft: rgba(232, 91, 109, 0.2);
  --accent-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #c2cce6;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}

@media (max-width: 1024px) {
  .wrapper {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3.5rem 1.25rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .sede-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .gallery-slider {
    padding: 0.4rem 0;
  }
}

@media (max-width: 540px) {
  body {
    overflow-x: hidden;
  }

  header {
    padding: 0 1rem;
  }

  .wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  nav {
    min-height: 58px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.25rem 1rem;
    min-height: 60vh;
    overflow: hidden;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.08;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badges li {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 0.74rem;
  }

  .text-muted {
    max-width: 100%;
  }

  .gallery-wrapper,
  .gallery-slider,
  .gallery-slide,
  .sede-card,
  .sede-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gallery-wrapper {
    max-height: none;
    overflow: hidden;
  }

  .gallery-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    padding: 0.4rem 0 0.8rem;
  }

  .gallery-slide {
    flex: 0 0 86%;
    min-width: 0;
    width: auto;
    height: clamp(220px, 52vw, 300px);
    scroll-snap-align: start;
  }

  .gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    object-fit: cover;
    object-position: center;
  }

  .gallery-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.35rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-tagline {
    letter-spacing: 0.18em !important;
    font-size: 0.68rem !important;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .sede-card {
    max-width: 100%;
  }

  .gallery-wrapper,
  .gallery-slider,
  .gallery-slide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gallery-wrapper {
    max-height: none;
    overflow: hidden;
  }

  .gallery-slider {
    gap: 0.6rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    display: flex;
    overflow-x: auto;
  }

  .gallery-slide {
    flex: 0 0 92%;
    min-width: 0;
    width: auto;
    height: clamp(220px, 55vw, 300px);
  }

  .gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    object-fit: cover;
    object-position: center;
  }

  .gallery-dot,
  .gallery-arrow {
    display: none;
  }

  .btn-whatsapp {
    margin-left: 0;
  }

  .nav-phone {
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem;
  }
}

* {
  box-sizing: border-box;
}

img,
iframe,
video {
  max-width: 100%;
  display: block;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background-image:
    linear-gradient(180deg, rgba(1, 5, 42, 0.6), rgba(1, 5, 42, 0.75)),
    image-set(
      var(--body-image-webp) type('image/webp') 1x,
      var(--body-image) type('image/jpeg') 1x,
      var(--body-image-2x) type('image/jpeg') 2x
    );
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  transform: translate3d(0,0,0);
  color: var(--text);
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 2;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 91, 109, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(232, 91, 109, 0.5);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(232, 91, 109, 0.12);
}

.nav-phone:hover {
  background: linear-gradient(135deg, rgba(232, 91, 109, 0.24), rgba(255, 255, 255, 0.08));
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0;
  align-self: center;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }

  nav {
    align-items: center;
    position: relative;
    min-height: 52px;
    height: 52px;
    padding: 0;
    gap: 0;
    margin: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
  }

  .logo strong {
    line-height: 1;
    margin: 0;
  }

  .logo-img-wrap {
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 15, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    z-index: 10;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    margin: 0;
    padding: 0.5rem 0;
    width: 100%;
    text-align: left;
    font-size: 1rem;
  }

  .nav-phone {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
    position: static;
    transform: none;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 540px) {
  .hero {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  margin-left: 1.5rem;
}

.hero {
  min-height: clamp(55vh, 60vh, 65vh);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(9, 14, 31, 0.7), rgba(18, 29, 64, 0.4));
  background-image: image-set(
    var(--hero-image-webp) type('image/webp') 1x,
    var(--hero-image) type('image/jpeg') 1x,
    var(--hero-image-2x) type('image/jpeg') 2x
  );
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  box-shadow: inset 0 0 80px rgba(232, 91, 109, 0.18);
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  margin: 1rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-badges li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.8);
  background: rgba(37, 211, 102, 0.08);
  color: #2fe07a;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.2);
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(243, 179, 31, 0.12);
  border: 1px solid rgba(243, 179, 31, 0.5);
  margin-bottom: 0.75rem;
}

.studio-toggle {
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 77, 82, 0.7);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.studio-toggle:hover {
  background: rgba(240, 77, 82, 0.15);
}

.studio-gallery {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.4rem 0 0.8rem;
  opacity: 1;
  max-height: none;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.studio-gallery.visible {
  opacity: 1;
  max-height: none;
}

.studio-gallery img {
  flex: 0 0 86%;
  width: auto;
  height: clamp(220px, 52vw, 300px);
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: block;
  scroll-snap-align: start;
}

.studio-gallery::-webkit-scrollbar {
  display: none;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sede-video {
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
  background: rgba(255, 255, 255, 0.02);
}

.sede-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-section {
  padding-bottom: 0;
  margin-top: -2rem;
  padding-top: 1.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-grid article {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-grid h3 {
  margin: 0;
  font-size: 1.1rem;
}

.video-grid iframe {
  width: 100%;
  border-radius: 12px;
  min-height: 200px;
}

.video-grid video {
  width: 100%;
  border-radius: 12px;
  min-height: 240px;
  max-width: min(420px, 100%);
  margin: 0 auto;
  max-height: 360px;
  object-fit: cover;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f28a95 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(232, 91, 109, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(232, 91, 109, 0.28);
}

main {
  padding: 3rem 0 5rem;
}

section {
  padding: 3rem 0;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.text-muted {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

.pricing-group {
  margin-top: 2.5rem;
}

.pricing-group:first-of-type {
  margin-top: 1.5rem;
}

.pricing-group-title {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(13,18,34,0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1.6rem 1.2rem 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(4, 8, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 91, 109, 0.5);
  box-shadow: 0 18px 36px rgba(15, 22, 41, 0.35);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(232, 91, 109, 0.95), transparent);
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 91, 109, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 22px;
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.pricing-pill.premium {
  background: rgba(232, 91, 109, 0.14);
  border-color: rgba(232, 91, 109, 0.45);
  color: #ffdfe4;
}

.pricing-card h3 {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.pricing-card strong {
  display: block;
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.1;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.pricing-card strong + strong {
  margin-top: -0.2rem;
  font-size: 1.55rem;
}

.pricing-card span {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(232, 91, 109, 0.12), rgba(10,17,35,0.96));
  border-color: rgba(232, 91, 109, 0.6);
  box-shadow: 0 18px 32px rgba(232, 91, 109, 0.16);
}

.pricing-card.featured strong {
  color: #fff;
}

.pricing-card.featured span {
  color: #f6dfe1;
}

.testimonials-section {
  padding-top: 1rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(232, 91, 109, 0.14);
  border: 1px solid rgba(232, 91, 109, 0.35);
  color: #ffe4e8;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(14, 20, 36, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 28px rgba(4, 8, 20, 0.16);
}

.stars {
  color: #ffc857;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.testimonial-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text);
}

.testimonial-meta span {
  color: var(--muted);
}

#sedes {
  background: radial-gradient(circle at top right, rgba(240, 77, 82, 0.2), transparent 50%);
}

.sede-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.sede-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.35rem;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  body {
    background-position: center top;
  }

  header {
    padding: 0;
  }

  .wrapper {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    background-image: image-set(
      var(--hero-image-mobile-webp) type('image/webp') 1x,
      var(--hero-image-mobile) type('image/jpeg') 1x,
      var(--hero-image-2x) type('image/jpeg') 2x
    );
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 52px;
    height: 52px;
    padding: 0;
    margin: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    gap: 0.6rem;
  }

  .logo strong {
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: clamp(1.8rem, 6vw, 2.35rem);
    margin: 0;
  }

  .logo-img-wrap {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .nav-phone {
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0 0 0 auto;
    width: 32px;
    height: 32px;
  }

  .hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1.25rem 2rem;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.6rem);
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .gallery-slide img,
  .studio-gallery img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-grid video {
    min-height: 220px;
  }

  .pricing-grid,
  .sede-grid {
    grid-template-columns: 1fr;
  }

  .sede-card {
    max-width: 100%;
  }

  .gallery-slider {
    gap: 0.5rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-whatsapp {
    margin-left: 0;
  }

  .video-grid article{
    padding: 1rem;
  }

  .video-grid video {
    min-height: 200px;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions a {
    width: 100%;
  }

  .section-title + .video-grid{
    margin-top: 2rem;
  }
}

.gallery-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-wrapper {
  position: relative;
}

.gallery-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  scroll-snap-align: start;
  flex: 0 0 min(100%, clamp(240px, 80vw, 420px));
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255, 255, 255, 0.35);
  min-height: 180px;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-dots {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(3, 6, 20, 0.7);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-arrow.prev {
  left: 0.25rem;
}

.gallery-arrow.next {
  right: 0.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .lightbox img {
    max-width: 640px;
  }
}

.lightbox .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 480px) {
  .gallery-wrapper {
    overflow: hidden;
    max-height: none;
  }

  .gallery-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
  }

  .gallery-slide {
    display: block;
    flex: 0 0 92%;
    width: auto;
    min-width: 0;
    height: clamp(220px, 55vw, 300px);
  }

  .sede-card,
  .sede-grid {
    width: 100%;
    max-width: 100%;
  }

  .gallery-dot,
  .gallery-arrow {
    display: none;
  }
}

.sede-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.sede-meta {
  margin-top: auto;
}

.sede-map {
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.sede-map iframe {
  width: 100%;
  max-width: 720px;
  border: none;
  border-radius: 14px;
  display: block;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(12,18,35,0.92));
  border-radius: 22px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(4, 8, 23, 0.18);
}

.contact-card-featured {
  background: linear-gradient(135deg, rgba(232, 91, 109, 0.16), rgba(16, 22, 40, 0.96));
  border: 1px solid rgba(232, 91, 109, 0.45);
  transform: translateY(-2px);
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-phone {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.3rem 0 0.7rem;
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 220px;
}

.blog-tag {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.blog-cta {
  margin-top: 2rem;
  background: var(--surface);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .blog-cta {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .sede-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .sede-card {
    max-width: none;
  }
}

@media (min-width: 900px) {
  .sede-grid > .sede-card:nth-of-type(3) {
    grid-column: 1 / -1;
    max-width: 760px;
  }
}
