/* =============================
   RESET + BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04), transparent 45%),
    linear-gradient(180deg, #111, #000);
  color: #fff;
  overflow-x: hidden;
}

/* =============================
   LIQUID GLASS (PREMIUM)
============================= */
.glass {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 30px 70px rgba(0,0,0,0.65);
}

/* =============================
   HEADER
============================= */
.glass-nav {
  pointer-events: auto;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 18px 42px;
  display: flex;
  flex-direction: row;     /* 🔑 clave */
  align-items: center;     /* 🔑 centra vertical */
  justify-content: center; /* 🔑 todo en línea */
  gap: 24px;
  white-space: nowrap;     /* 🔑 evita salto de línea */
  z-index: 100;
}


.glass-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.glass-nav nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.glass-nav nav a:hover {
  opacity: 1;
}

/* =============================
   HERO
============================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 180px;
  margin-bottom: 40px;
}

.hero-glass {
  padding: 55px 75px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
}

.subtitle {
  margin-top: 16px;
  opacity: 0.75;
}

/* =============================
   BOTONES
============================= */
.glass-btn {
  margin-top: 26px;
  padding: 12px 34px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  color: #000;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.25);
}

.glass-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================
   SECCIONES
============================= */
.section {
  padding: 120px 10%;
}

.section h2 {
  font-size: 2.2rem;
  text-align: center;
}

/* =============================
   CARDS
============================= */
.cards {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.glass-card {
  flex: 1;
  min-width: 260px;
  padding: 40px;
  text-align: center;
}

/* =============================
   PORTFOLIO
============================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}


/* =============================
   CONTACTO
============================= */
#contacto .glass-card {
  padding: 35px;
}

#contacto h3 {
  margin-bottom: 8px;
}

#contacto p {
  opacity: 0.7;
  margin-bottom: 20px;
}

/* WhatsApp más compacto */
#contacto .glass-card:first-child {
  max-width: 380px;
}

/* FORM */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#contactForm input,
#contactForm textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  outline: none;
}

#contactForm textarea {
  resize: none;
  height: 100px;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

/* =============================
   FOOTER
============================= */
.glass-footer {
  margin: 100px auto 40px;
  padding: 30px;
  width: 90%;
  text-align: center;
}

.socials {
  margin: 16px 0;
}

.socials a {
  margin: 0 10px;
  color: white;
  opacity: 0.75;
  text-decoration: none;
}

.socials a:hover {
  opacity: 1;
}

/* =============================
   MODAL TÉRMINOS
============================= */
.terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.terms-modal.show {
  display: flex;
}

.terms-box {
  width: 90%;
  max-width: 720px;
  padding: 30px;
}

.terms-content {
  max-height: 320px;
  overflow-y: auto;
  margin: 20px 0;
  padding-right: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =============================
   SCROLL REVEAL
============================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-glass {
    padding: 40px 30px;
  }

  .cards {
    flex-direction: column;
  }

  .glass-nav {
    padding: 14px 28px;
  }
}
/* =============================
   LANGUAGE SWITCH (AJUSTADO)
============================= */
.lang-switch button {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: white;
  padding: 5px 10px;     /* 🔑 más compactos */
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.lang-switch button.active {
  background: rgba(255,255,255,0.85);
  color: #000;
  opacity: 1;
}


.lang-switch button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.lang-switch button:hover {
  opacity: 1;
}

.lang-switch button.active {
  background: rgba(255,255,255,0.85);
  color: #000;
  opacity: 1;
}
@media (max-width: 768px) {
  .glass-nav {
    padding: 12px 20px;     /* más pequeño */
    gap: 14px;              /* menos espacio */
    top: 12px;
  }

  .glass-nav nav {
    gap: 12px;
  }

  .glass-nav nav a {
    font-size: 0.75rem;     /* texto más chico */
  }

  .lang-switch {
    gap: 4px;
  }

  .lang-switch button {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}
/* =============================
   LANGUAGE SWITCH FIX
============================= */

.lang-switch {
  display: flex;
  gap: 10px;
  margin-left: 12px;
  z-index: 200;
  pointer-events: auto;
}

.lang-switch button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  pointer-events: auto;
}

.lang-switch button:hover {
  background: rgba(255,255,255,0.3);
}
/* =============================
   CONTACTO PREMIUM ESTÉTICO
============================= */

#contacto .glass-card {
  background: rgba(255, 255, 255, 0.08);  /* más transparente que antes */
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 35px 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contacto .glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

#contacto .glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}

#contacto .glass-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.85);
}

#contacto .glass-card .glass-btn {
  padding: 10px 26px;
  border-radius: 24px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contacto .glass-card .glass-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-2px);
}
/* =============================
   LANGUAGE ALERT
============================= */
.lang-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 18px 28px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5000;
  transition: all 0.4s ease;
}

.lang-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* =============================
   MENSAJE DE ÉXITO
============================= */
.success-message {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.success-message.show {
  display: flex;
}

.success-box {
  padding: 40px 35px;
  text-align: center;
  max-width: 420px;
}

.success-box h3 {
  margin-bottom: 10px;
}

.success-box p {
  opacity: 0.8;
}
/* =============================
   SOBRE NOSOTROS
============================= */
.about-box {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 40px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}
.portfolio-grid video {
  width: 100%;
  border-radius: 22px;
  background: black;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
