/* --------------------------------------------------
   RESETEO BÁSICO
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
   FUENTE GENERAL, COLOR DE FONDO
*/
html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7; /* Fondo suave */
  color: #333;
}

/* --------------------------------------------------
   BARRA SUPERIOR (barra-superior)
   - Fija arriba, 60px de alto, color blanco, sombra
   - Logo izq, nav centrado, login der
   (Sin .menu ni iconos hamburguesa)
-------------------------------------------------- */
.barra-superior {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;           /* Altura fija en escritorio */
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;  /* Centra el bloque principal */
}

/* Empuja el contenido debajo de la barra */
.contenido {
  margin-top: 60px;
}

/* LOGO (2px menos que la barra -> 58px) */
.logo {
  position: absolute;
  left: 50px;
  top: 1px;  /* Para centrarlo verticalmente */
}
.logo img {
  height: 58px; /* 2px menos que la barra (60) */
  width: auto;
}

/* NAVEGACIÓN (centrada) */
.navegacion {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0 auto;  /* fuerza centrado */
}
.navegacion ul {
  list-style: none;
  display: flex;
  gap: 2rem;       /* Espacio horizontal entre enlaces */
}
.navegacion ul li a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; 
  line-height: 60px;   /* Centra vertical */
  transition: color 0.3s;
}
.navegacion ul li a:hover {
  color: #fff;      /* Hover rosado */
}

/* LOGIN (Botón 2) a la derecha */
.usuario {
  position: absolute;
  right: 20px;
  top: 10px;
}
.usuario a.boton.mini-boton {
  position: relative;
  display: inline-block;
  text-decoration: none;
  border: 2px solid #000;
  padding: 8px 12px;
  color: #fff;         /* Texto blanco */
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.5s ease-in-out;
}
.usuario a.boton.mini-boton:hover {
  color: #000;  /* Texto negro al hover */
}
/* Efecto Botón 2 => capas negras */
.usuario a.boton.mini-boton::before,
.usuario a.boton.mini-boton::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  transition: all 0.5s ease-in-out;
}
.usuario a.boton.mini-boton::before {
  transform: scaleY(1);
}
.usuario a.boton.mini-boton::after {
  transform: scaleX(1);
}
.usuario a.boton.mini-boton:hover::before {
  transform: scaleY(0);
}
.usuario a.boton.mini-boton:hover::after {
  transform: scaleX(0);
}

/* --------------------------------------------------
   SECCIONES / CONTENEDORES / FOOTER / ETC.
   (Diseño básico que ya tenías)
-------------------------------------------------- */
.video-container {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.button-dynamic {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}
.button-dynamic:hover {
  background-color: #fff;
  color: #fff;
}

.listados-interes {
  text-align: center;
  margin: 2rem 0;
}
.listados-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.listado-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: #444;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.listado-item:hover {
  background-color: #f974a1;
  color: #fff;
}

.acompanamos-pasos {
  text-align: center;
  padding: 1.5rem;
  background-color: #fff;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.acompanamos-pasos .pasos-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.paso-item {
  flex: 1 1 200px;
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.paso-item h3 {
  margin: 0.5rem 0;
  color: #333;
}
.paso-item p {
  font-size: 0.9rem;
  color: #666;
}


.carrusel-anuncios {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.carousel-button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.carousel-button:hover {
  opacity: 1;
}
.grid-anuncios-destacadas {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  flex: 1;
}

.precio {
  color: #f974a1;
  font-weight: bold;
}

.contenido-pie {
  background-color: #eee;
  text-align: center;
  padding: 0.7rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.contenido-pie p a {
  color: #333;
  text-decoration: none;
}
.contenido-pie p a:hover {
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}
.cookie-banner button {
  background-color: #fff;
  border: none;
  color: black;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-banner button:hover {
  background-color: #fff;
}

/* ==========================
   RESPONSIVE (≤ 768px)
   SIN OVERLAY. 
   SOLO SE ACOMODA LA BARRA 
========================== */
@media (max-width: 768px) {
  /* Barra superior en una línea */
  .barra-superior {
    height: auto;
    flex-wrap: nowrap; /* Evitar que se acomoden en múltiples filas */
    justify-content: space-between; /* Distribuir elementos en una línea */
    padding: 0.5rem 1rem;
  }

  /* Logo más pequeño */
  .logo {
    position: relative; /* No absoluto, fluye con flex */
    left: 0;
    margin: 0;
  }
  .logo img {
    height: 40px; /* Ajustar tamaño del logo */
    width: auto;
  }

  /* Navegación más compacta */
  .navegacion {
    margin: 0;
    justify-content: flex-start; /* Alinear a la izquierda */
  }
  .navegacion ul {
    gap: 1rem;
    margin: 0;
  }
  .navegacion ul li a {
    font-size: 0.8rem; /* Tamaño menor para links */
    padding: 0.25rem;
  }

  /* Botón de login ajustado */
  .usuario {
    margin: 0;
    margin-top: 40px;
    text-align: right; /* Alinear a la derecha */
  }
  .usuario a.boton.mini-boton {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}


/* =========================================================
   MEJORA VISUAL RESPONSIVE - SITIO PÚBLICO
========================================================= */
:root {
  --web-primary: #0f172a;
  --web-secondary: #1d4ed8;
  --web-accent: #06b6d4;
  --web-bg: #f4f7fb;
  --web-card: #ffffff;
  --web-muted: #64748b;
  --web-border: rgba(148,163,184,.30);
  --web-shadow: 0 18px 55px rgba(15,23,42,.12);
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at top left, rgba(29,78,216,.12), transparent 32rem),
    linear-gradient(180deg, #f8fafc, var(--web-bg)) !important;
  color: var(--web-primary) !important;
  overflow-x: hidden;
}
.barra-superior {
  height: 72px !important;
  padding: 0 34px !important;
  background: rgba(255,255,255,.90) !important;
  border-bottom: 1px solid var(--web-border);
  box-shadow: 0 14px 35px rgba(15,23,42,.08) !important;
  backdrop-filter: blur(16px);
  justify-content: center !important;
}
.contenido { margin-top: 72px !important; }
.logo { left: 34px !important; top: 7px !important; }
.logo img {
  height: 58px !important;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,.18));
}
.navegacion ul { gap: 1.15rem !important; }
.navegacion ul li a {
  height: 42px;
  line-height: normal !important;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--web-primary) !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.navegacion ul li a:hover {
  background: rgba(29,78,216,.10);
  color: var(--web-secondary) !important;
  transform: translateY(-1px);
}
.usuario { right: 34px !important; top: 14px !important; }
.usuario a.boton.mini-boton {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--web-primary), var(--web-secondary)) !important;
  box-shadow: 0 14px 30px rgba(29,78,216,.24);
  overflow: hidden;
}
.usuario a.boton.mini-boton::before,
.usuario a.boton.mini-boton::after { display: none !important; }
.usuario a.boton.mini-boton:hover { color: #fff !important; transform: translateY(-1px); }

.video-container {
  min-height: 560px;
  max-height: none !important;
  border-radius: 0 0 34px 34px;
  box-shadow: var(--web-shadow);
}
.video-container video {
  min-height: 560px;
  object-fit: cover !important;
  filter: saturate(1.05) contrast(1.03);
}
.overlay {
  background:
    linear-gradient(135deg, rgba(2,6,23,.76), rgba(15,23,42,.42), rgba(29,78,216,.28)) !important;
  padding: 28px;
}
.search-container {
  max-width: 850px !important;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 24px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: var(--web-shadow) !important;
  backdrop-filter: blur(16px);
}
.search-tabs {
  gap: 10px;
  padding: 6px;
  background: #eef2ff;
  border-radius: 18px;
}
.search-tabs .tab {
  border-radius: 14px !important;
  font-weight: 800;
  color: var(--web-muted);
}
.search-tabs .tab.active {
  background: linear-gradient(135deg, var(--web-primary), var(--web-secondary)) !important;
  color: #fff;
  box-shadow: 0 10px 24px rgba(29,78,216,.22);
}
.search-fields { gap: 12px !important; margin-top: 14px; }
.search-fields select,
.search-fields input,
.search-fields button,
.input,
.filtro input,
.filtro select,
.formulario-contacto input,
.formulario-contacto textarea {
  border: 1px solid var(--web-border) !important;
  border-radius: 15px !important;
  padding: 12px 14px !important;
  outline: none;
}
.search-fields button,
.search-button,
.button-dynamic,
.button-dynamic-option,
.action-buttons button,
.pagination-button,
.cookie-banner button,
.formulario-contacto button[type="submit"] {
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--web-primary), var(--web-secondary)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(29,78,216,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-fields button:hover,
.search-button:hover,
.button-dynamic:hover,
.button-dynamic-option:hover,
.action-buttons button:hover,
.pagination-button:hover,
.cookie-banner button:hover,
.formulario-contacto button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(29,78,216,.30);
}
.button-dynamic-option::before { display: none !important; }

.action-buttons {
  max-width: 920px;
  margin: 34px auto 18px !important;
  gap: 16px !important;
  flex-wrap: wrap;
}
.dynamic-options { flex-wrap: wrap; }
.listados-interes,
.acompanamos-pasos,
.anuncios-container {
  max-width: 1180px;
  margin: 34px auto !important;
  padding: 0 22px;
}
.listados-interes h2,
.acompanamos-pasos h2,
.anuncios-container h3 {
  font-size: clamp(26px, 3vw, 38px) !important;
  letter-spacing: -.04em;
  color: var(--web-primary) !important;
}
.listado-item,
.paso-item,
.anuncio {
  border-radius: 22px !important;
}
.listado-item {
  background: var(--web-card) !important;
  border: 1px solid var(--web-border) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  font-weight: 800;
}
.listado-item:hover {
  background: linear-gradient(135deg, var(--web-primary), var(--web-secondary)) !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.acompanamos-pasos {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid var(--web-border);
  border-radius: 30px !important;
  box-shadow: var(--web-shadow) !important;
  padding: 34px !important;
}
.paso-item {
  background: linear-gradient(180deg, #fff, #f8fafc) !important;
  border: 1px solid var(--web-border) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.paso-item:hover { transform: translateY(-4px); box-shadow: var(--web-shadow); }
.paso-item ion-icon { font-size: 34px; color: var(--web-secondary); }
.carrusel-anuncios {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--web-border);
  border-radius: 28px !important;
  box-shadow: var(--web-shadow) !important;
  padding: 10px;
}
.anuncio-imagen {
  border-radius: 20px !important;
  height: 270px !important;
  box-shadow: none !important;
}
.anuncio-detalles {
  background: #fff;
  margin-top: -28px;
  position: relative;
  z-index: 1;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}
.precio { color: var(--web-secondary) !important; }
.pagination-container { flex-wrap: wrap; }
.pagination-button.active { background: linear-gradient(135deg, var(--web-primary), var(--web-secondary)) !important; }

.form {
  margin-top: 160px !important;
  background: rgba(15,23,42,.96) !important;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px !important;
  box-shadow: var(--web-shadow) !important;
}
.form:hover { transform: translateY(-3px) !important; }
.field {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: none !important;
}
.button1 { width: 100%; padding: 12px 20px !important; }
.contenido-pie {
  background: #0f172a !important;
  color: #cbd5e1 !important;
  border-top: 0 !important;
  padding: 26px 18px !important;
}
.contenido-pie a { color: #e0f2fe !important; }
.cookie-banner {
  background: rgba(15,23,42,.94) !important;
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.cookie-banner a { color: #67e8f9 !important; }

@media (max-width: 900px) {
  .barra-superior {
    height: auto !important;
    min-height: 72px;
    padding: 10px 14px !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }
  .contenido { margin-top: 92px !important; }
  .logo { position: static !important; }
  .logo img { height: 46px !important; }
  .navegacion {
    height: auto !important;
    overflow-x: auto;
    width: 100%;
    grid-column: 1 / -1;
  }
  .navegacion ul {
    width: max-content;
    gap: 8px !important;
  }
  .navegacion ul li a {
    font-size: 13px !important;
    padding: 9px 12px;
  }
  .usuario {
    position: static !important;
    justify-self: end;
    margin-top: 0 !important;
  }
  .search-fields { flex-direction: column; }
  .video-container,
  .video-container video { min-height: 620px; }
  .overlay { padding: 18px; }
  .action-buttons button { width: 100%; justify-content: center; }
  .anuncio { flex: 0 0 100% !important; max-width: 100% !important; }
  .acompanamos-pasos { padding: 24px 16px !important; }
  .form { margin: 128px 16px 42px !important; }
}
