/* ============================================
   CSS UNIFICADO - LUXURY SALON (CORREGIDO)
   ============================================ */

/* ===========================================
   1. RESET & BASE
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gold: #c9a962;
  --primary-gold-light: #e0c982;
  --dark-bg: #0a0a0a;
  --dark-secondary: #141414;
  --dark-tertiary: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --whatsapp-green: #25d366;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* <CHANGE> Añadido para evitar scroll horizontal */
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 100vw; /* <CHANGE> Limitar ancho máximo */
}

body.menu-open {
  overflow: hidden;
}

/* ===========================================
   2. IMÁGENES - REGLAS GLOBALES
   =========================================== */
img {
  display: block;
  max-width: 100%;
}

.about-img,
.about-img-stacked,
.highlight-card,
.gallery-item,
.classes-image,
.third-img {
  overflow: hidden;
  position: relative;
}

.about-img img,
.about-img-stacked img,
.highlight-card img,
.gallery-item img,
.classes-image img,
.third-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

/* ===========================================
   3. CONTENEDORES & TIPOGRAFÍA
   =========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* <CHANGE> Asegurar que no exceda el viewport */
}

.header-container {
  height: 80px;
  display: flex;
  align-items: center;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 650;
}

.gold {
  color: var(--primary-gold);
}

.section-tag {
  display: inline-block;
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 650;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ===========================================
   4. BOTONES
   =========================================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-bg);
  padding: 15px 35px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::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: var(--transition);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  padding: 14px 34px;
  border: 1px solid var(--primary-gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

/* ===========================================
   5. HEADER & NAVEGACIÓN
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
  width: 100%; /* <CHANGE> Asegurar ancho completo */
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* <CHANGE> Asegurar ancho completo */
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: 5px;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

/* ===========================================
   6. MENÚ HAMBURGUESA & MÓVIL
   =========================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0;
}

.mobile-nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: var(--transition);
  display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-gold);
}

.mobile-cta {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 600;
}

/* ===========================================
   7. HERO SECTION
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 100px;
  position: relative;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  overflow: hidden;
  width: 100%; /* <CHANGE> Asegurar ancho completo */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%; /* <CHANGE> Corregido - era 180% en móvil */
  height: 100%;
  background: url("img/foto.jpg") center center / cover no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(31, 29, 29, 0.4) 0%, rgba(20, 19, 19, 0.3) 50%, rgba(10, 10, 10, 0.7) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
  padding: 0 20px;
  max-width: 100%; /* <CHANGE> Evitar desbordamiento */
}

.hero-badge {
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 30px;
  word-wrap: break-word; /* <CHANGE> Evitar desbordamiento de texto */
}

.title-line {
  display: block;
  animation: fadeInUp 1s ease-out both;
}

.title-line:nth-child(1) {
  animation-delay: 0.3s;
}
.title-line:nth-child(2) {
  animation-delay: 0.5s;
}
.title-line:nth-child(3) {
  animation-delay: 0.7s;
}

.title-line.gold {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 3.5px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease-out 1.1s both;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 5px; /* <CHANGE> Ajustado para que no cause overflow */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary-gold), transparent);
  margin-top: -5px;
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===========================================
   8. ABOUT SECTION
   =========================================== */
.about {
  padding: 120px 0;
  background: var(--dark-secondary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 500px;
}

.about-img {
  height: 100%;
  border: 2px solid var(--primary-gold);
}

.about-img:hover img,
.about-img-stacked:hover img {
  transform: scale(1.05);
}

.main-img {
  width: 350px;
  max-width: 100%; /* <CHANGE> Evitar desbordamiento */
  height: 450px;
  top: 0;
  left: 0;
  border: 3px solid var(--primary-gold);
}

.secondary-img {
  width: 250px;
  max-width: 100%; /* <CHANGE> Evitar desbordamiento */
  height: 800px;
  bottom: 0;
  right: 0;
  border: 3px solid var(--primary-gold);
  animation: float 6s ease-in-out infinite;
}

.about-images-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 800px;
}

.about-img-stacked {
  flex: 1;
  border: 2px solid var(--primary-gold);
  animation: floatImage 4s ease-in-out infinite;
}

.about-img-stacked:nth-child(2) {
  animation-delay: 2s;
}

.top-img {
  order: 1;
}
.bottom-img {
  order: 2;
}

.about-content {
  padding: 0 30px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  color: var(--primary-gold);
  font-size: 1.1rem;
  transition: var(--transition);
}

.feature:hover .feature-icon {
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--primary-gold);
}

.feature span {
  font-weight: 500;
  font-size: 1.05rem;
}

/* ===========================================
   9. HIGHLIGHT CARDS
   =========================================== */
.highlight-cards {
  padding: 80px 0;
  background: var(--dark-bg);
  border-top: 1px solid rgba(201, 169, 98, 0.2);
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
  position: relative;
  overflow: hidden;
}

.highlight-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.highlight-card {
  position: relative;
  width: 350px;
  max-width: 100%; /* <CHANGE> Evitar desbordamiento en móvil */
  height: 450px;
  border: 2px solid var(--primary-gold);
  transition: var(--transition);
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  z-index: 1;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(201, 169, 98, 0.2);
}

.highlight-card:hover img {
  transform: scale(1.1);
}

.highlight-content,
.highlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  text-align: center;
}

.highlight-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 5px;
}

.highlight-content p,
.highlight-text {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===========================================
   10. CLASSES SECTION
   =========================================== */
.classes-showcase {
  background: url("fondo.png") center / cover;
  position: relative;
  overflow: hidden;
}

.classes-content {
  display: flex;
  min-height: 500px;
}

.classes-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 80px;
  text-align: center;
  background: var(--dark-tertiary);
}

.classes-text span {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  margin-bottom: 15px;
}

.classes-text p {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 400px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.classes-text p:first-child {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-light);
}

.classes-text .btn-primary {
  margin-top: 30px;
}

.classes-image {
  flex: 1;
  position: relative;
  min-height: 400px;
}

/* ===========================================
   11. CTA SECTION
   =========================================== */
.cta-section {
  padding: 100px 0;
  position: relative;
  background: url("fondo.png") center / cover;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 10;
}

.cta-content h2 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 650;
  margin-bottom: 15px;
}

.cta-content > p {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 50px;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cta-card {
  background: var(--dark-secondary);
  border: 1px solid rgba(201, 169, 98, 0.2);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.cta-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
}

.cta-card-icon {
  color: var(--primary-gold);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.cta-card h4 {
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 25px;
}

/* ===========================================
   12. CONTACT SECTION
   =========================================== */
.contact {
  padding: 100px 0;
  background: var(--dark-secondary);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 400;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--primary-gold);
  min-width: 25px;
  text-align: center;
  margin-top: 3px;
}

.contact-icon i {
  transition: var(--transition);
}

.contact-item:hover .contact-icon i {
  transform: scale(1.2);
}

.whatsapp-item .whatsapp-icon {
  color: var(--whatsapp-green);
}

.whatsapp-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.whatsapp-item a:hover {
  color: var(--whatsapp-green);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-gold);
  border-color: var(--primary-gold);
  background: rgba(201, 169, 98, 0.1);
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--dark-tertiary);
  padding: 50px;
  border: 1px solid rgba(201, 169, 98, 0.2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--dark-tertiary);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 1px var(--primary-gold), 0 0 20px rgba(201, 169, 98, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.full-width {
  width: 100%;
}

/* ===========================================
   13. FOOTER
   =========================================== */
.footer {
  background: var(--dark-bg);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
  position: relative;
}

.footer-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  animation: glowLine 4s ease-in-out infinite;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-links h4 {
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ===========================================
   14. DECORACIONES
   =========================================== */
.section-decorations,
.stars-container,
.floating-stars,
.shine-lines,
.shimmer-waves,
.contact-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden; /* <CHANGE> Evitar que las decoraciones causen overflow */
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: pulseGlow 6s ease-in-out infinite;
}

.glow-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-gold);
  top: 10%;
  left: 0; /* <CHANGE> Era -100px, causaba overflow */
}

.glow-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--primary-gold-light);
  bottom: 20%;
  right: 0; /* <CHANGE> Era -50px, causaba overflow */
  animation-delay: 3s;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-gold);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}
.star:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-delay: 0.5s;
}
.star:nth-child(3) {
  top: 40%;
  left: 40%;
  animation-delay: 1s;
}
.star:nth-child(4) {
  top: 60%;
  left: 70%;
  animation-delay: 1.5s;
}
.star:nth-child(5) {
  top: 80%;
  left: 10%;
  animation-delay: 2s;
}
.star:nth-child(6) {
  top: 30%;
  left: 60%;
  animation-delay: 2.5s;
}
.star:nth-child(7) {
  top: 70%;
  left: 30%;
  animation-delay: 0.7s;
}
.star:nth-child(8) {
  top: 50%;
  left: 90%;
  animation-delay: 1.2s;
}

.corner-sparkle {
  position: absolute;
  color: var(--primary-gold);
  font-size: 1.5rem;
  opacity: 0.3;
  animation: sparkle 2s ease-in-out infinite;
}

.top-left {
  top: 20px;
  left: 20px;
}
.top-right {
  top: 20px;
  right: 20px;
  animation-delay: 0.5s;
}
.bottom-left {
  bottom: 20px;
  left: 20px;
  animation-delay: 1s;
}
.bottom-right {
  bottom: 20px;
  right: 20px;
  animation-delay: 1.5s;
}

.floating-star {
  position: absolute;
  color: var(--primary-gold);
  font-size: 1rem;
  opacity: 0.4;
  animation: floatStar 4s ease-in-out infinite;
}

.floating-star:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.floating-star:nth-child(2) {
  top: 30%;
  right: 10%;
  animation-delay: 0.8s;
}
.floating-star:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 1.6s;
}
.floating-star:nth-child(4) {
  top: 50%;
  right: 5%;
  animation-delay: 2.4s;
}
.floating-star:nth-child(5) {
  bottom: 10%;
  right: 20%;
  animation-delay: 3.2s;
}

/* ===========================================
   15. ANIMACIONES
   =========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.7);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.1);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes floatStar {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
    opacity: 0.7;
  }
}

@keyframes glowLine {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===========================================
   16. RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images,
  .about-images-right {
    display: none;
  }

  .about-content {
    padding: 0;
    text-align: center;
  }

  .about-features {
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero::before {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-buttons {
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.hero-scroll {
  bottom: 10px;
}

@media (orientation: portrait) {
  .hero::before {
    background-size: contain;
    background-position: center top; /* Mueve la imagen hacia arriba */
    background-position: center 20%; /* O usa porcentaje para ajustar */
    
    /* Aumentar el height para que se vea más imagen */
    height: 110%; /* O 120% según necesites */
    
    /* Otra opción: ajustar posición con top negativo */
    top: -10%; /* Mueve la imagen hacia arriba */
  }
  
  /* También puedes ajustar el contenedor principal */
  .hero {
    min-height: 120vh; /* Aumenta el espacio vertical */
    padding-top: 20px; /* Da espacio arriba */
  }
}

@media (orientation: landscape) {
  .hero::before {
    background-size: contain;
    background-position: center center;
    top: -100px;
    
    /* Para landscape también puedes ajustar */
    height: 120%; /* Aumentar height */
    top: -80px; /* Ajustar posición vertical */
  }
}

/* Otra opción más específica para móviles pequeños */
@media (max-width: 768px) and (orientation: portrait) {
  .hero::before {
    background-size: contain;
    background-position: center 30%;/* Mueve más arriba (10% desde arriba) */
    height: 115%; /* Aumenta altura */
    top: -8%; /* Sube la imagen */
  }
  
  /* Si necesitas que el contenido no quede muy abajo */
  .hero-content {
    margin-top: 40px; /* Ajusta según necesites */
  }
}

/* Para tablets en portrait */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .hero::before {
    background-position: center 15%;
    height: 205%;
  }
}
  .scroll-line {
    height: 50px;
  }

  .mobile-nav-links a {
    font-size: 1.8rem;
    font-weight: 600;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 30px;
  }

  .classes-content {
    flex-direction: column;
  }

  .classes-text {
    padding: 40px 20px;
    align-items: center;
  }

  .classes-text p {
    font-size: 1.6rem;
  }

  .classes-text p:first-child {
    font-size: 1.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .highlight-card {
    width: 100%;
    max-width: 350px;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
    font-weight: 650;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%; /* <CHANGE> Botones de ancho completo en móvil pequeño */
    max-width: 280px;
  }

  .contact-form {
    padding: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 800;
  }

  .hero-scroll {
    bottom: 5px;
  }

  .scroll-line {
    height: 40px;
  }

  .mobile-nav-links a {
    font-size: 1.6rem;
  }

  .highlight-card {
    height: 350px; /* <CHANGE> Altura reducida en móvil pequeño */
  }
}

/* ===========================================
   17. LOGO FOOTER
   =========================================== */
/* Para DESKTOP: logo alineado a la izquierda */
.logo-footer {
  max-width: 150px;
  display: block;
  margin: 15px 0 0 0; /* Cambiado de "auto" a "0" para alinear a la izquierda */
}

.logo-footer img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0;
}

/* Para MOBILE: logo centrado */
@media (max-width: 768px) {
  .logo-footer {
    margin: 15px auto 0 auto; /* Centrado con auto en ambos lados */
  }
}