/* =========================================================
   YaDonde - Landing
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f7f7f8;

  --blue: #fd5859;
  --blue-dark: #c8463e;

  --coral: #e35950;
  --coral-dark: #c8463e;

  --accent: #82dee6;
  --accent-dark: #5cc9d3;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 4px 18px rgba(15, 15, 20, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(15, 15, 20, 0.14);

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* El atributo [hidden] debe ganar siempre, aunque el elemento tenga una clase
   con su propio "display" (ej. formularios con display:flex que se ocultan
   por JS asignando el atributo hidden en vez de una clase). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0; line-height: 1.2; }

a { color: inherit; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-cta {
  background: var(--accent);
  color: var(--ink);
  width: 100%;
}
.btn-cta:hover { background: var(--accent-dark); box-shadow: var(--shadow-card-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--ink); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav-links > li > a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.nav-links > li > a:hover { color: var(--coral); }
.chev { opacity: .8; }

.has-dropdown { position: relative; }
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}
.dropdown {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.dropdown li a:hover { background: var(--bg-soft); color: var(--coral); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 24px;
}
.link-auth {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.link-auth:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
section { padding: 56px 0; }

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.see-all {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.see-all:hover { color: var(--blue-dark); }

/* =========================================================
   BLOQUE 1 â€” HERO / BUSCADOR
   ========================================================= */
.hero { padding-top: 48px; padding-bottom: 48px; background: var(--bg-soft); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-card);
}
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.98rem;
  padding: 10px 0;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}
.search-bar input::placeholder { color: #9ca3af; }

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}
.tag:hover { border-color: var(--coral); color: var(--coral); }

.hero-media { position: relative; }
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, #3d5bfe 0%, #7b5bfe 45%, #e35950 100%);
  box-shadow: var(--shadow-card-hover);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* El include del destacado puede traer, además de la foto, badge premium,
   nombre, ubicación (.feat-loc) y precio (.feat-price) — reutilizando las
   mismas clases que las tarjetas .feat-card. Acá van todos superpuestos
   sobre la foto, así que se apilan con flex (no se pisan aunque el nombre
   envuelva a 2 líneas) y se recolorean en blanco sobre un degradado. */
.hero-image > a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}
.hero-image > a > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-image > a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-image > a > * { position: relative; z-index: 2; }
.hero-image > a .feat-badge-premium { position: absolute; z-index: 2; }
.hero-image-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  padding: 0 20px;
  margin: 0 0 4px;
}
.hero-image > a .feat-loc,
.hero-image > a .feat-price {
  color: var(--white);
  padding: 0 20px;
}
.hero-image > a .feat-loc svg { color: var(--white); }
.hero-image > a .feat-price { margin-bottom: 20px; }
.hero-image > a .feat-price strong { color: var(--white); }

/* =========================================================
   BLOQUE 2 â€” TIPOS DE EVENTO
   ========================================================= */
.event-types { background: var(--white); }
.event-types .section-title { text-align: center; margin-bottom: 32px; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.type-media {
  position: absolute;
  inset: 0;
}
.type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.type-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}
.type-bodas { background: linear-gradient(135deg, #f6d5c8, #e35950); }
.type-corporativos { background: linear-gradient(135deg, #cdd7ff, #3d5bfe); }
.type-cumpleanos { background: linear-gradient(135deg, #ffe3ac, #ff9f43); }

.type-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}

/* =========================================================
   BLOQUE 3 â€” DESTACADOS
   ========================================================= */
.featured { background: var(--bg-soft); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.feat-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feat-media-1 { background: linear-gradient(135deg, #d9c2a3, #4a3728); }
.feat-media-2 { background: linear-gradient(135deg, #f3d6c4, #a13d2e); }
.feat-media-3 { background: linear-gradient(135deg, #1c1c1c, #3d5bfe); }
.feat-media-4 { background: linear-gradient(135deg, #ffe0ea, #e35950); }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.fav-btn:hover { color: var(--coral); }

.feat-badge-premium {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5b400;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.feat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.feat-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.feat-rating {
  font-size: 0.85rem;
  color: #f5a623;
  font-weight: 700;
  margin: 0 0 6px;
}
.feat-rating span { color: var(--muted); font-weight: 500; }
.feat-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.feat-price {
  font-size: 0.88rem;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: bold;
}
/*.feat-price strong { color: var(--blue); font-size: 1.05rem; }*/

.feat-body .btn { margin-top: auto; }

/* =========================================================
   BLOQUE 4 â€” CTA PROVEEDORES
   ========================================================= */
.cta-providers { background: var(--white); }

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(115deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.45) 48%, rgba(8,8,10,0.72) 100%),
    url("https://img.yadonde.com/upload/2026/02/17161D524C43466D14130F54584941761F141F1854434475111019.jpg");
  background-size: cover;
  background-position: center;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--white);
}
.cta-text p {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  margin: 0 0 24px;
  max-width: 46ch;
}

.cta-checklist {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-buttons .btn-cta { width: auto; padding-left: 26px; padding-right: 26px; }
.cta-buttons .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.cta-buttons .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* ---- login card ---- */
.cta-media {
  display: flex;
  justify-content: flex-end;
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card-hover);
}
.login-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.login-field svg { color: #8a8f98; flex-shrink: 0; }
.login-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
}
.login-field input::placeholder { color: #9aa0a6; }

.btn-login {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  margin: 20px 0 16px;
  transition: background .15s ease, transform .15s ease;
}
.btn-login:hover { background: var(--coral-dark); transform: translateY(-1px); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: #f1f3f4; transform: translateY(-1px); box-shadow: var(--shadow-card); }

.login-forgot {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.login-forgot:hover { color: var(--white); text-decoration: underline; }

/* =========================================================
   BLOQUE 5 â€” BLOG
   ========================================================= */
.blog { background: var(--bg-soft); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.blog-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding-bottom: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.blog-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  overflow: hidden;
}
.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.blog-media-1 { background: linear-gradient(135deg, #ffd9e8, #e35950); }
.blog-media-2 { background: linear-gradient(135deg, #cdd7ff, #3d5bfe); }
.blog-media-3 { background: linear-gradient(135deg, #ffe3ac, #ff9f43); }
.blog-media-4 { background: linear-gradient(135deg, #d7f0e6, #2aa876); }

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 20px 10px;
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 20px;
  line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 64px 24px 56px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 24px;
}

.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-legal a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover { color: var(--white); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-social a {
  color: rgba(255,255,255,0.8);
  display: inline-flex;
}
.footer-social a:hover { color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-image { aspect-ratio: 16 / 9; }
  .cta-inner { grid-template-columns: 1fr; padding: 32px 28px; }
  .cta-media { justify-content: center; }
  .login-card { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .type-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 480px; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px;
  }
  .nav-links > li { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links > li > a { padding: 14px 0; }
  .chev { display: none; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    display: none;
    min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,0.85); }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

  .nav-auth {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    justify-content: flex-start;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .event-types .section-title { margin-bottom: 24px; }
  .featured-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; border-radius: 20px; padding: 14px 16px; }
  .search-bar input { flex-basis: 100%; order: 1; padding: 6px 0; }
  .search-bar .btn { order: 2; width: 100%; }

  .footer-inner { grid-template-columns: 1fr; padding: 48px 24px 40px; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   FICHA (página de detalle de proveedor)
   ========================================================= */

/* ---- breadcrumb / título ---- */
.ficha-hero {
  padding: 36px 0 22px;
  background: var(--white);
}
.ficha-crumb {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.ficha-crumb a:hover { color: var(--coral); }
.ficha-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.ficha-hero .ficha-loc {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.55em;
  margin-left: 6px;
}

/* ---- galería ---- */
.ficha-gallery-wrap { padding: 0 0 40px; background: var(--white); }

/* Layout flexible: 1 a 5 fotos (data-count lo fija ficha.js según cuántos
   ".gallery-cell" haya realmente; de haber más de 5, se ocultan los sobrantes). */
.ficha-gallery {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 6;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ficha-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }

.ficha-gallery[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }

.ficha-gallery[data-count="3"] { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.ficha-gallery[data-count="3"] .gallery-cell:nth-child(1) { grid-row: 1 / span 2; }

.ficha-gallery[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.ficha-gallery[data-count="5"] { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ficha-gallery[data-count="5"] .gallery-cell:nth-child(1) { grid-row: 1 / span 2; }

.gallery-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background .15s ease, color .15s ease;
}
.gallery-pill:hover { background: var(--white); }
.gallery-pill.is-fav { color: var(--coral); }

.gallery-see-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,10,10,0.72);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background .15s ease;
}
.gallery-see-all:hover { background: var(--black); }

/* ---- lightbox de galería ---- */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(8,8,10,0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.gallery-modal.open { opacity: 1; visibility: visible; }
.gallery-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-close:hover { background: var(--line); }
.gallery-modal-inner h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-modal-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---- modal de ubicación / mapa ---- */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(8,8,10,0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.map-modal.open { opacity: 1; visibility: visible; }
.map-modal-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.map-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-modal-close:hover { background: var(--line); }
.map-modal-inner h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  padding-right: 36px;
}
.map-modal-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}
.map-modal-address svg { flex-shrink: 0; margin-top: 2px; color: var(--coral); }
.map-modal-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.map-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-modal-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}
.map-modal-directions:hover { color: var(--blue-dark); }

/* ---- layout principal: contenido + sidebar ---- */
.ficha-content { padding: 0 0 56px; background: var(--white); }
.ficha-layout {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 48px;
  align-items: start;
}
/* Evita que contenido interno sin wrap (ej. nombres de partners) fuerce a esta
   columna del grid a crecer más de lo que le corresponde y desborde la página. */
.ficha-main { min-width: 0; }

/* ---- tabs ---- */
.ficha-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.ficha-tab {
  position: relative;
  padding: 14px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.ficha-tab:hover { color: var(--ink); }
.ficha-tab.active { color: var(--ink); }
.ficha-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--coral);
}

.ficha-tab-panel p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 4px;
}
.ficha-more { margin-top: 14px; }
.ficha-more h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ficha-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 32px;
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
}
.ficha-readmore:hover { color: var(--blue-dark); }
.ficha-readmore svg { transition: transform .2s ease; }
.ficha-readmore.open svg { transform: rotate(180deg); }

.ficha-info-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ficha-info-block h2 {
  margin-bottom: 18px;
}
.ficha-info-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.ficha-info-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}

.ficha-checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px 20px;
}
.ficha-checklist.one-col { grid-template-columns: 1fr; }
.ficha-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--ink);
}
.ficha-checklist .check { flex-shrink: 0; }

.ficha-empty {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 12px 0 8px;
}

/* ---- FAQs (acordeón) ---- */
.ficha-faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.ficha-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.ficha-faq summary::-webkit-details-marker { display: none; }
.ficha-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1rem;
  line-height: 24px;
  text-align: center;
}
.ficha-faq[open] summary::after { content: "–"; }
.ficha-faq p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  padding-right: 40px;
}

.ficha-review { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.ficha-review + .ficha-review { margin-top: 14px; }
.ficha-review-stars {
  color: #f5a623;
  font-weight: 700;
  margin-bottom: 8px;
}
.ficha-review p {
  color: var(--ink);
  font-style: italic;
}
.ficha-review-author {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

/* ---- encabezado del tab Reseñas: conteo + ancla para saltar al formulario ---- */
.ficha-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ficha-reviews-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.ficha-reviews-count strong { color: var(--ink); }
.ficha-jump-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.ficha-jump-review:hover { color: var(--blue-dark); }
.ficha-jump-review svg { transform: rotate(-90deg); }

/* ---- escribir reseña ---- */
.ficha-write-review {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  /* deja aire arriba al saltar con el ancla, para no quedar tapado por el header sticky */
  scroll-margin-top: 96px;
}
.ficha-write-review h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.ficha-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
.ficha-review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.ficha-review-form input[type="text"],
.ficha-review-form input[type="email"],
.ficha-review-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  resize: vertical;
}
.ficha-review-form input[type="text"]:focus,
.ficha-review-form input[type="email"]:focus,
.ficha-review-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.review-stars-input { display: flex; gap: 4px; }
.review-star {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color .15s ease, transform .1s ease;
}
.review-star:hover { transform: scale(1.12); }
.review-star.is-filled { color: #f5a623; }

/* ---- sidebar fijo ---- */
.ficha-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ficha-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.ficha-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ficha-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.ficha-card-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.ficha-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #f5a623;
  font-weight: 700;
}
.ficha-rating span { color: var(--muted); font-weight: 500; }

/* ---- estrellas con decimales (ej. 2.86) pintadas vía CSS a partir de la
   variable --rating, 0 a 5. No requiere JS ni loop en el servidor. ---- */
.star-rating {
  position: relative;
  display: inline-block;
  line-height: 1;
  color: var(--line);
  letter-spacing: 1px;
}
.star-rating::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: #f5a623;
}

.ficha-card-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.ficha-card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ficha-card-row svg { color: var(--muted); flex-shrink: 0; margin-top: 3px; }
.ficha-card-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 2px;
}
.ficha-card-row strong { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.ficha-cobertura {
  margin-left: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
}
.ficha-cobertura:hover { color: var(--blue-dark); }

/* ---- formulario de cotización ---- */
.ficha-form-card { display: none; }
.ficha-form-card.open { display: block; }
.ficha-form-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.ficha-form-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 18px; }

.ficha-form { display: flex; flex-direction: column; gap: 14px; }
.ficha-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.ficha-form input,
.ficha-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}
.ficha-form input:focus,
.ficha-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.ficha-form .btn { margin-top: 6px; }

.ficha-form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #eafaf1;
  color: #1c7a4d;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.ficha-form-success.show { display: flex; }

.ficha-form-error {
  display: none;
  background: #fdecea;
  color: #b3261e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.ficha-form-error.show { display: block; }

.btn[disabled] { opacity: 0.65; cursor: default; pointer-events: none; }

/* ---- partners (dentro de la columna principal, mismo ancho que la descripción) ---- */
.ficha-partners-inline { margin-top: 36px; }

.partners-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.partners-intro {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 26px 24px;
  background: rgba(130, 222, 230, 0.2);
  color: var(--ink);
}
.partners-intro h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}
.partners-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.partners-intro:hover .partners-arrow {
  background: var(--accent);
  transform: translateX(3px);
}

.partners-list {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 22px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.partners-list::-webkit-scrollbar { display: none; }

.partner-item { flex: 0 0 170px; width: 170px; }
.partner-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
  white-space: normal;
  line-height: 1.3;
}
.partner-item span {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #000;
  background: rgba(130, 222, 230, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- otros proveedores (carrusel) ---- */
.ficha-others { background: var(--white); }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.carousel-btn:hover { background: var(--bg-soft); border-color: var(--muted); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { background: var(--white); border-color: var(--line); }

.others-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.others-track::-webkit-scrollbar { display: none; }
.others-track .feat-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
}

/* ---- responsive ---- */
@media (max-width: 992px) {
  .ficha-layout { grid-template-columns: 1fr; }
  .ficha-sidebar { position: static; max-width: 420px; }
}

@media (max-width: 768px) {
  /* En mobile: la 1ª foto arriba a todo el ancho, el resto (si hay) en una
     grilla de 2 columnas debajo. Funciona igual para 1, 2, 3, 4 o 5 fotos. */
  .ficha-gallery[data-count] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
  }
  .ficha-gallery[data-count] .gallery-cell:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }
  .ficha-gallery[data-count] .gallery-cell:not(:nth-child(1)) {
    aspect-ratio: 4 / 3;
  }
  .ficha-checklist { grid-template-columns: 1fr 1fr; }
  .partners-box { flex-direction: column; }
  .partners-intro { flex: none; }
  .partners-list { padding: 20px 24px; }
  .ficha-sidebar { max-width: 100%; }
}

@media (max-width: 640px) {
  .ficha-tabs { gap: 20px; overflow-x: auto; }
  .ficha-checklist { grid-template-columns: 1fr; }
  .gallery-modal-grid { grid-template-columns: repeat(2, 1fr); }
  .others-track .feat-card { flex-basis: 240px; }
}

/* =========================================================
   BUSCAR — página de resultados
   (reutiliza .search-bar/.quick-tags de la home y .feat-card de ficha.html)
   ========================================================= */
.buscar-hero {
  padding-top: 48px;
  padding-bottom: 40px;
  background: var(--bg-soft);
  text-align: center;
}
.buscar-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.buscar-hero .hero-subtitle { margin: 14px 0 28px; }
.buscar-hero .search-bar { max-width: 640px; margin: 0 auto; }
.buscar-hero .quick-tags { justify-content: center; margin-top: 22px; }

.tag { cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tag.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tag.is-active:hover { color: var(--white); border-color: var(--ink); }

.buscar-results { background: var(--white); }
.buscar-count { color: var(--muted); font-size: 0.95rem; }
.buscar-count strong { color: var(--ink); }

.buscar-loading,
.buscar-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  padding: 48px 0;
}

/* ---- paginación ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.page-btn:hover { background: var(--bg-soft); border-color: var(--muted); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-btn:disabled:hover { background: var(--white); border-color: var(--line); }

.page-numbers { display: flex; gap: 6px; }
.page-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.page-number:hover { background: var(--bg-soft); color: var(--ink); }
.page-number.active { background: var(--accent); color: var(--ink); }

@media (max-width: 640px) {
  .buscar-hero .quick-tags { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pagination { flex-wrap: wrap; }
}
