* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f7fb;
  color: #222;
  padding-top: 110px;
}

/* HEADER */
.header {
  background: rgba(11, 44, 77, 0.95);
  padding: 14px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(6px);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.header-container {
  max-width: 1150px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.brand-slogan {
  color: white;
  font-size: 12px;
  opacity: 0.85;
}

/* MENU */
.menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  opacity: 0.9;
  transition: 0.2s;
}

.menu a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-publish {
  background: #fbbc05;
  padding: 10px 14px;
  border-radius: 12px;
  color: black !important;
  font-weight: bold;
  transition: 0.2s;
}

.menu-publish:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

/* HERO */
.hero {
  height: 360px;
  width: 100%;
  background: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=60");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
/* ACTIVAR MODO SLIDER */
.hero {
  background: none; /* Desactiva imagen fija */
  overflow: hidden;
}

/* Contenedor slider */
.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeSlider 15s infinite;
  background-size: cover;
  background-position: center;
}

/* Cada slide tiene su propio delay */
.slide1 {
  animation-delay: 0s;
}
.slide2 {
  animation-delay: 5s;
}
.slide3 {
  animation-delay: 10s;
}

@keyframes fadeSlider {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide1 {
  background-image: url("img/hero/0.jpg");
}
.slide2 {
  background-image: url("img/hero/1.jpg");
}
.slide3 {
  background-image: url("img/hero/2.jpg");
}
.slide3 {
  background-image: url("img/hero/4.jpg");
}
@keyframes slideLeft {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(0); }
  35%  { transform: translateX(-100%); }
  65%  { transform: translateX(-100%); }
  70%  { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 77, 0.75);
}

.hero-content {
  position: relative;
  max-width: 1150px;
  margin: auto;
  padding: 20px;
  color: white;
  z-index: 5;
}

.hero-content h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.hero-btn.primary {
  background: #fbbc05;
  color: black;
}

.hero-btn.secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn:hover {
  transform: scale(1.03);
}

/* FILTERS */
.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto auto;
  gap: 10px;
  padding: 18px;
  background: white;
  border-bottom: 1px solid #ddd;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
  margin-top: -25px;
  position: relative;
  z-index: 20;
  border-radius: 16px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.filters input,
.filters select {
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 12px;
  width: 100%;
  font-size: 14px;
}

.filters button {
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #0b2c4d;
  color: white;
  font-weight: bold;
  transition: 0.2s;
}

.filters button.secondary {
  background: #777;
}

.filters button:hover {
  opacity: 0.92;
  transform: scale(1.02);
}
.filters button {
  white-space: nowrap;
}

/* MAIN CONTAINER */
.container {
  padding: 35px 20px;
  max-width: 1150px;
  margin: auto;
}

.container h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

/* WHY TIYAY */
.why {
  background: white;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.why-card {
  background: #f4f7fb;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
}

.why-card h3 {
  margin-bottom: 8px;
  color: #0b2c4d;
  font-size: 16px;
}

.why-card p {
  font-size: 14px;
  opacity: 0.85;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* CARD */
.card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  transition: 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.card-content {
  padding: 14px;
}

.card-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #0b2c4d;
}

.card-content p {
  font-size: 13px;
  margin-bottom: 5px;
  opacity: 0.9;
}

.card-content .price {
  font-weight: bold;
  font-size: 15px;
  margin-top: 6px;
  color: #0b2c4d;
}

.card-content button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  background: #0b2c4d;
  color: white;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.card-content button:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* TOP BADGE */
.badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251, 188, 5, 0.95);
  color: black;
  font-weight: bold;
  padding: 7px 12px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
}

/* TOP SECTION */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.top-btn {
  padding: 11px 16px;
  border: none;
  background: #fbbc05;
  color: black;
  font-weight: bold;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.top-btn:hover {
  transform: scale(1.03);
}

.card.top {
  border: 3px solid rgba(251, 188, 5, 0.9);
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 18px;
  position: relative;
  animation: popup 0.2s ease-in-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes popup {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  transition: 0.2s;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

.carousel-btn:hover {
  background: rgba(0,0,0,0.85);
}

.photo-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 7px 12px;
  border-radius: 14px;
  font-size: 12px;
  z-index: 5;
}

/* MODAL TEXT */
.modal-content h2 {
  margin-bottom: 8px;
  font-size: 22px;
  color: #0b2c4d;
}

.modal-content p {
  margin-bottom: 7px;
  font-size: 14px;
  opacity: 0.9;
}

/* BUTTONS */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  flex: 1;
  padding: 13px;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.btn.whatsapp { background: #25D366; }
.btn.call { background: #0b2c4d; }
.btn.google { background: #fbbc05; color: black; }

.btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* LINKS LEGALES */
.legal-bar {
  background: white;
  border-top: 1px solid #ddd;
  padding: 14px 15px;
}

.legal-container {
  max-width: 1150px;
  margin: auto;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-links a {
  background: #0b2c4d;
  color: white;
  padding: 10px 15px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
}

.legal-links a:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* FOOTER */
.footer {
  background: #0b2c4d;
  color: white;
  text-align: center;
  padding: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.filters {
  grid-template-columns: 1fr 1fr;
}
.filters button {
  width: 100%;
}

  body {
    padding-top: 150px;
  }

  .hero {
    height: 320px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .header-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .brand {
    align-items: center;
  }

  .menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .filters {
    margin-top: -20px;
    border-radius: 16px;
  }

  .modal-actions {
    flex-direction: column;
  }
  #top10Modal {
  z-index: 900;
}

#detailModal {
  z-index: 1000;
}

#siteModal {
  z-index: 1000;
}


}

/* ============================= */
/* MODAL DETALLES MEJORADO (2 COL) */


