body {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    background-color: #0f0f0f;
    color: #f5f5f5;
    line-height: 1.8;
  }
  
/* =================== HEADER =================== */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: transparent;
}

.header-box {
  width: 90%;
  max-width: 1200px;
  background-color: rgba(28, 28, 28, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 40px;
}

nav {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-hover);
}
/* CALL NOW BOTTON*/

.nav-call {
  display: flex;
  align-items: center;
}

.call-now-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-gold);
  color: var(--dark-gray);
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s, background-color 0.2s;
}

.call-now-nav:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/*HIDDEN ONLY FULL SCREEN*/
.call-now-icon {
  display: none;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* SUBMENU ESTILO TRANSPARENTE */

.dropdown {
  position: relative; /* <== Clave para que el submenu se alinee bien */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(28, 28, 28, 0.9); /* transparente como el header */
  top: 100%;
  left: -100px;
  min-width: 160px;
  border-radius: 6px;
  z-index: 999;
  padding: 10px 0;
  backdrop-filter: blur(6px);
}

.dropdown-content li {
  padding: 8px 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === MOBILE HEADER === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  }

.nav-links {
  flex-direction: column;
  background-color: rgba(28, 28, 28, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 0 0 12px 12px;
  display: none;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* Esto centra el menú en pantallas pequeñas */
}

  .nav-links.show {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    padding-left: 0;
  }

  .dropdown-content li {
    padding: 6px 0;
  }

  /*VISIBLE MOBILE*/
  .nav-call {
    display: none;
  }
}
/*BOTTON VISIBLE ON MOBILE*/
@media (max-width: 768px) {
  /* En mobile, el header-box ahora centra controles */
  .header-box {
    gap: 10px;
  }

  /* Mostrar icono */
  .call-now-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    background: rgba(201, 163, 78, 0.14);
    border: 1px solid rgba(201, 163, 78, 0.35);
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
  }

  /* Para que quede "en medio" visualmente: switch + icon juntos */
  .lang-switch {
    margin-left: auto;
  }

  .call-now-icon {
    margin-right: auto;
  }
}

/* Switch lang*/
/* CONTENEDOR */
.lang-switch{
  display:inline-flex;
  align-items:center;
}

/* OCULTAR CHECKBOX REAL */
.lang-toggle{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

/* TRACK (fondo del switch) */
.lang-label{
  width:72px;              /* ⬅ más pequeño */
  height:28px;
  border-radius:999px;
  display:inline-block;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  user-select:none;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);

  /* Estado default: EN (USA) */
  background:
    radial-gradient(circle at 14px 14px, rgba(255,255,255,.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 22px 9px, rgba(255,255,255,.85) 0 1.5px, transparent 2px),
    radial-gradient(circle at 26px 18px, rgba(255,255,255,.85) 0 1.5px, transparent 2px),
    linear-gradient(90deg, #0A3161 0 42%, transparent 42%),
    repeating-linear-gradient(
      0deg,
      #B31942 0 4px,
      #FFFFFF 4px 8px
    );
}

/* KNOB (círculo que se mueve) */
.lang-knob{
  position:absolute;
  top:4px;
  left:4px;
  width:30px;
  height:20px;
  border-radius:999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .25s ease;
}

/* TEXTO DENTRO DEL KNOB */
.lang-text{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 11px;          /* ⬅ más pequeño */
  color:#111;
  text-transform: uppercase;
}

/* Estado checked: ES (España) */
.lang-toggle:checked + .lang-label{
  background:
    linear-gradient(
      0deg,
      #AA151B 0 30%,
      #F1BF00 30% 70%,
      #AA151B 70% 100%
    );
}

/* Mover knob a la derecha cuando ES */
.lang-toggle:checked + .lang-label .lang-knob{
  transform: translateX(36px);
}

  
  .terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .terms-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--gold, #d4af37);
  }
  
  .terms-container h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    color: #e1b965;
  }
  
  .site-footer {
    background-color: #111;
    color: #999;
    text-align: center;
    padding: 30px 10px;
    font-size: 0.9rem;
  }

  .back-button {
    display: inline-block;
    margin: 30px auto;
    padding: 12px 24px;
    background-color: var(--gold, #d4af37);
    color: #111;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  .back-button:hover {
    background-color: #fff4c2;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }