/* ===============================================
   HOTEL D'CONFORT - VERSIÓN TOTALMENTE RESPONSIVE
   Optimizado para todos los dispositivos
   Mobile First + Fluid Typography + Performance
   =============================================== */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #FFD700;
  --accent-color: #2d5016;
  --light-green: #4a7c2c;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #2c2c2c;
  --overlay-dark: rgba(26, 26, 26, 0.7);
  --vh: 1vh; /* Se actualiza vía JS */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===============================================
   BARRA SUPERIOR - RESPONSIVE
   =============================================== */
.top-bar {
  background: var(--primary-color);
  color: var(--white);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.8rem, 3vw, 1.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar__left {
  display: flex;
  gap: clamp(0.5rem, 2vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.5rem);
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .top-bar__item:hover {
    color: var(--secondary-color);
  }
}

.top-bar__item i {
  color: var(--secondary-color);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.top-bar__right {
  display: flex;
  gap: clamp(0.4rem, 1.5vw, 0.75rem);
  align-items: center;
}

.top-bar__social {
  width: clamp(26px, 5vw, 32px);
  height: clamp(26px, 5vw, 32px);
  min-width: 26px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .top-bar__social:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
  }
}

/* ===============================================
   NAVEGACIÓN - RESPONSIVE
   =============================================== */
.header {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

nav {
  position: fixed;
  top: clamp(36px, 7vw, 41px);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.8) 100%);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

nav.scrolled {
  top: 0;
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav__bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

/* Logo - Responsive */
.logo-container {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1rem);
  text-decoration: none;
}

.logo-img {
  width: clamp(38px, 7vw, 45px);
  height: clamp(38px, 7vw, 45px);
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hotel-name {
  color: var(--white);
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  font-weight: 300;
  letter-spacing: clamp(1px, 0.3vw, 2px);
  text-transform: uppercase;
}

.hotel-brand {
  color: var(--secondary-color);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* Navigation Links - Desktop */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
}

.nav__links li a {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav__links li a i {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--secondary-color);
}

.nav__links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__links li a:hover {
    color: var(--secondary-color);
  }

  .nav__links li a:hover::after {
    width: 100%;
  }
}

/* Mobile Menu Button */
.nav__menu__btn {
  display: none;
  font-size: clamp(1.6rem, 3vw, 1.8rem);
  color: var(--white);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  z-index: 1001;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .nav__menu__btn:hover {
    color: var(--secondary-color);
  }
}

/* Nav CTA Button */
.nav__cta {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.2rem, 2.5vw, 1.5rem);
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  }
}

.nav__cta i {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ===============================================
   CAROUSEL DE FONDO - RESPONSIVE
   =============================================== */
.header__carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.header__carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header__carousel .slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(45, 80, 22, 0.55) 50%,
    rgba(26, 26, 26, 0.65) 100%
  );
}

.header__carousel .slide.active {
  opacity: 1;
}

/* Animación zoom solo en desktop */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .header__carousel .slide.active {
    animation: zoomIn 15s ease-in-out infinite;
  }
}

@keyframes zoomIn {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Carousel Indicators - Responsive */
.carousel__indicators {
  position: absolute;
  bottom: clamp(70px, 15vw, 120px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: clamp(0.55rem, 1.5vw, 0.8rem);
  padding: clamp(0.45rem, 1.2vw, 0.65rem) clamp(0.9rem, 2vw, 1.3rem);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.indicator {
  width: clamp(7px, 1.5vw, 10px);
  height: clamp(7px, 1.5vw, 10px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .indicator:hover {
    background: rgba(255, 215, 0, 0.9);
    transform: scale(1.2);
  }
}

.indicator.active {
  background: var(--secondary-color);
  width: clamp(24px, 5vw, 34px);
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ===============================================
   CONTENIDO DEL HEADER - RESPONSIVE
   =============================================== */
.header__container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: clamp(5rem, 12vw, 8rem) clamp(0.6rem, 2vw, 1rem) clamp(6rem, 13vw, 8rem);
}

.header__content {
  text-align: center;
  color: var(--white);
  max-width: 95%;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__subtitle {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  font-size: clamp(0.74rem, 1.5vw, 0.9rem);
  font-weight: 500;
  color: var(--secondary-color);
  background: rgba(26, 26, 26, 0.75);
  padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(1.1rem, 2.5vw, 1.8rem);
  border-radius: 50px;
  margin-bottom: clamp(0.8rem, 2vw, 1.3rem);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.header__subtitle i {
  color: var(--secondary-color);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Animación rotación solo en desktop */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .header__subtitle i {
    animation: rotate 3s linear infinite;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.header__content h1 {
  font-size: clamp(1.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: clamp(0.7rem, 2vw, 1.1rem);
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  padding: 0 clamp(0.3rem, 1vw, 0.5rem);
}

.header__content h1 span {
  color: var(--secondary-color);
  display: block;
  font-style: italic;
}

/* Header Location Badge */
.header__location {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  color: var(--white);
  background: rgba(26, 26, 26, 0.7);
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(1rem, 2vw, 1.2rem);
  border-radius: 50px;
  margin-bottom: clamp(0.8rem, 2vw, 1rem);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.header__location i {
  color: var(--secondary-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Header Description */
.header__description {
  max-width: 600px;
  margin: clamp(0.7rem, 2vw, 1rem) auto 0;
  font-size: clamp(0.84rem, 1.8vw, 0.98rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  padding: 0 clamp(0.3rem, 1vw, 0.5rem);
}

/* Quick Info Cards - Responsive */
.quick-info {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  margin-top: clamp(1.3rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: 0 clamp(0.5rem, 1.5vw, 0.5rem);
}

.quick-info__card {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 0.9rem);
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(10px);
  padding: clamp(0.8rem, 1.8vw, 0.95rem) clamp(1rem, 2.2vw, 1.3rem);
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  min-width: clamp(170px, 30vw, 180px);
}

@media (hover: hover) and (pointer: fine) {
  .quick-info__card:hover {
    background: rgba(26, 26, 26, 0.85);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

.quick-info__card i {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: var(--secondary-color);
}

.quick-info__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.quick-info__title {
  font-weight: 600;
  color: var(--white);
  font-size: clamp(0.85rem, 1.5vw, 0.92rem);
}

.quick-info__subtitle {
  font-size: clamp(0.75rem, 1.3vw, 0.82rem);
  color: rgba(255, 255, 255, 0.7);
}

/* Floating Badges - Responsive */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.2rem, 2.5vw, 1.5rem);
  border-radius: 15px;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.floating-badge i {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--secondary-color);
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.badge-title {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.badge-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
}

.floating-badge-1 {
  top: 18%;
  left: 5%;
}

.floating-badge-2 {
  top: 18%;
  right: 5%;
}

/* Animación float solo en desktop */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .floating-badge {
    animation: float 3s ease-in-out infinite;
  }
  
  .floating-badge-1 {
    animation-delay: 0s;
  }
  
  .floating-badge-2 {
    animation-delay: 1.5s;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* Stats Bar - Responsive */
.header__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(12px);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.4rem, 1.5vw, 0.8rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  z-index: 10;
  border-top: 2px solid var(--secondary-color);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: clamp(55px, 12vw, 70px);
}

.stat-number {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.62rem, 1.3vw, 0.78rem);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.15vw, 1px);
  margin-top: 0.4rem;
}

.stat-divider {
  width: 1px;
  height: clamp(26px, 5vw, 32px);
  background: rgba(255, 215, 0, 0.35);
}

/* Botones - Responsive */
.header__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1rem);
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  flex-wrap: wrap;
  padding: 0 clamp(0.3rem, 1vw, 0.5rem);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.5vw, 0.7rem);
  padding: clamp(0.7rem, 1.8vw, 0.95rem) clamp(1.2rem, 3vw, 1.8rem);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.15vw, 1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-width: clamp(140px, 30vw, 180px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn i {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.btn__primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.btn__secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .btn__primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
  }

  .btn__secondary:hover {
    background: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(74, 124, 44, 0.4);
  }
}

.btn:active {
  transform: scale(0.98);
}

/* ===============================================
   ELEMENTOS DECORATIVOS
   =============================================== */
.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 124, 44, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--secondary-color) 0%, 
    var(--light-green) 50%, 
    var(--secondary-color) 100%
  );
  z-index: 1001;
}

/* ===============================================
   RESPONSIVE - TABLETS (768px - 1024px)
   =============================================== */

@media (max-width: 1024px) {
  .nav__links {
    gap: 1.5rem;
  }
  
  .floating-badge {
    padding: 0.8rem 1.2rem;
  }
  
  .floating-badge i {
    font-size: 2rem;
  }
}

/* ===============================================
   RESPONSIVE - MÓVILES (< 768px)
   =============================================== */

@media (max-width: 768px) {
  /* Top Bar - Ocultar textos en móvil */
  .top-bar__item span {
    display: none;
  }

  /* Nav - Mobile Menu */
  .nav__cta {
    display: none;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 1.8rem 2rem;
    gap: 1.8rem;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .nav__links.active {
    left: 0;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links li a {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.7rem 0;
  }

  .nav__menu__btn {
    display: block;
  }

  /* Header Location - Ocultar en móvil */
  .header__location {
    display: none;
  }

  /* Quick Info - Scroll Horizontal */
  .quick-info {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }

  .quick-info::-webkit-scrollbar {
    display: none;
  }

  .quick-info__card {
    flex-shrink: 0;
    scroll-snap-align: center;
    width: clamp(180px, 45vw, 190px);
  }

  /* Floating Badges - Ocultar en móvil */
  .floating-badge {
    display: none;
  }
}

/* ===============================================
   RESPONSIVE - MÓVILES PEQUEÑOS (< 480px)
   =============================================== */

@media (max-width: 480px) {
  /* Top Bar - Ultra compacta */
  .top-bar__left a:nth-child(2) {
    display: none;
  }

  /* Botones en columna */
  .header__btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    min-width: unset;
  }
}

/* ===============================================
   RESPONSIVE - MÓVILES MUY PEQUEÑOS (< 360px)
   =============================================== */

@media (max-width: 360px) {
  .header__content h1 {
    font-size: 1.6rem;
  }

  .quick-info__card {
    width: 170px;
    min-width: 170px;
  }
}

/* ===============================================
   LANDSCAPE MÓVIL
   =============================================== */

@media (max-height: 650px) and (orientation: landscape) {
  .header__container {
    padding: 5rem 1rem 5.5rem;
  }

  .header__content h1 {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
  }

  .header__subtitle {
    margin-bottom: 0.6rem;
    padding: 0.5rem 1.2rem;
  }

  .header__description {
    margin-top: 0.5rem;
    font-size: 0.84rem;
    max-width: 500px;
  }

  .header__btns {
    margin-top: 1rem;
    flex-direction: row;
  }

  .btn {
    min-width: 140px;
  }

  .quick-info {
    margin-top: 1rem;
    flex-direction: row;
  }

  .quick-info__card {
    width: 170px;
  }

  .header__stats {
    padding: 0.9rem 0.5rem;
  }
}

/* ===============================================
   MEJORAS DE PERFORMANCE Y ACCESIBILIDAD
   =============================================== */

/* Reducir animaciones para preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hardware acceleration para elementos críticos */
.header__carousel .slide,
.nav__links,
.indicator,
.btn {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Optimización táctil para dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
  /* Aumentar áreas de toque */
  .indicator,
  .top-bar__social,
  .nav__menu__btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* Eliminar hover states */
  .btn:hover,
  .quick-info__card:hover,
  .nav__links li a:hover {
    transform: none;
  }

  /* Feedback táctil */
  .btn:active,
  .indicator:active {
    transform: scale(0.97);
  }
}

/* Modo oscuro del sistema (opcional) */
@media (prefers-color-scheme: dark) {
  /* El diseño ya es oscuro, pero puedes ajustar si necesitas */
}

/* Orientación y altura viewport */
@media (max-height: 500px) and (orientation: landscape) {
  .header__container {
    padding: 4rem 1rem 5rem;
  }

  .carousel__indicators {
    bottom: 65px;
  }
}

/* ===============================================
   UTILITY CLASSES RESPONSIVE
   =============================================== */

/* Mostrar/ocultar según breakpoint */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
}

/* Espaciado responsive */
.spacing-responsive {
  margin: clamp(1rem, 3vw, 2rem) 0;
  padding: clamp(0.5rem, 2vw, 1rem);
}