@import url("./global.css");

/* =========================
   ✅ Watermark premium SOLO entre header y mapa
   (Hero + Features dentro de .watermark-zone)
========================= */
.watermark-zone{
  position: relative;
  overflow: hidden;
}

/* ✅ Wash de color + fade inferior (esto NO tapa el watermark, lo acompaña) */
.watermark-zone::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    /* wash premium en la parte alta (zona hero) */
    radial-gradient(1400px 620px at 30% 18%, rgba(157,100,91,.20), transparent 68%),
    radial-gradient(1400px 620px at 82% 26%, rgba(157,100,91,.14), transparent 70%),

    /* ✅ fundido abajo para que no haya “corte” antes del mapa */
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 68%,
      var(--bg) 100%
    );

  pointer-events: none;
  z-index: 0;
}

/* Todo el contenido por encima del watermark */
.watermark-zone > *{
  position: relative;
  z-index: 1;
}

/* =========================
   ✅ HERO (IMPORTANTE: SIN fondo, para que se vea el watermark)
========================= */
.hero{
  padding: 72px 0 28px;
  background: transparent;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

/* =========================
   ✅ Tarjeta del texto (SIN blur / SIN difuminado)
========================= */
.hero-copy{
  position: relative;
  padding: 26px 26px;
  border-radius: 28px;

  /* tarjeta limpia */
  background: rgba(236,216,194,.96);
  border: 1px solid rgba(114,58,37,.12);
  box-shadow: 0 18px 60px rgba(23,18,16,.10);
}

/* Desactivamos capas anteriores glass */
.hero-copy::before,
.hero-copy::after{
  content: none;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* =========================
   ✅ Tarjeta próximos eventos (SIN blur / SIN glass)
========================= */
.hero-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;

  border: 1px solid rgba(114,58,37,.18);

  /* ✅ opaca pero elegante */
  background: rgba(236,216,194,.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow: 0 18px 70px rgba(23,18,16,.12);
}

/* ✅ Quitamos capa interna degradada */
.hero-card::before{
  content: none;
}

.hero-card-top,
.hero-card-body{
  position: relative;
  z-index: 1;
}

.hero-card-top{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(114,58,37,.14);
}
.hero-card-body{ padding: 10px 16px 16px; }

.pill{
  display:inline-flex;
  align-items:center;
  padding: .28rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(114,58,37,.20);
  background: rgba(114,58,37,.08);
  font-size: .85rem;
  color: var(--text);
}

/* Próximos eventos items */
.up-item{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(114,58,37,.14);
}
.up-item:last-child{ border-bottom: none; }
.up-main{ display:flex; flex-direction:column; gap: 4px; }
.up-main strong{ font-size: .98rem; }

/* Secciones */
.section{ padding: 44px 0; }
.section-head{ margin-bottom: 18px; }
.section-head h2{ margin:0 0 8px; font-size: 1.7rem; }
.section-head p{ margin:0; }

/* =========================
   ✅ Features (tarjetas/pulsadores)
   - Texto centrado
   - Más presencia (altura + tipografía)
   - Compatible con <a class="feature"> y <article class="feature">
========================= */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature{
  position: relative;
  border-radius: var(--radius);

  /* ✅ más “cuerpo” */
  padding: 22px 16px;
  min-height: 92px;

  background: linear-gradient(180deg, rgba(75,67,60,.96), rgba(75,67,60,.88));
  border: 1px solid rgba(236,216,194,.16);
  box-shadow: 0 18px 50px rgba(23,18,16,.18);

  color: var(--brand-beige);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;

  /* ✅ texto centrado */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  cursor: pointer;

  /* ✅ por si .feature es <a> */
  text-decoration: none;
}

/* asegura la manita también sobre el texto interno */
.feature *{
  cursor: pointer;
}

.feature::before{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157,100,91,.98), rgba(157,100,91,.18));
  opacity: .95;
  pointer-events:none;
}

.feature h3{
  margin: 0;
  color: rgba(236,216,194,.98);

  /* ✅ más grande y “headline” */
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;

  /* ✅ ayuda a textos largos */
  max-width: 22ch;
}

.feature:hover{
  transform: translateY(-2px);
  border-color: rgba(157,100,91,.38);
  box-shadow: 0 22px 64px rgba(23,18,16,.26);
  filter: brightness(1.02);
}

/* ✅ foco visible (teclado) para enlaces y para el botón del modal */
.feature:focus-visible{
  outline: 2px solid rgba(236,216,194,.55);
  outline-offset: 4px;
}

/* =========================
   ✅ MODAL "Contacto rápido"
========================= */
.contact-modal .modal-dialog{
  width: min(860px, calc(100% - 40px));
}

.contact-form{
  display: grid;
  gap: 12px;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label{
  display: block;
  font-weight: 800;
  font-size: .92rem;
  margin: 0 0 6px;
  color: var(--brand-chocolate);
}

.field input,
.field textarea,
.field select{
  width: 100%;
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(114,58,37,.18);
  background: rgba(236,216,194,.76);
  color: var(--brand-chocolate);
  box-shadow: 0 10px 28px rgba(23,18,16,.10);
  outline: none;
}

.field textarea{
  resize: vertical;
  min-height: 160px;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: rgba(157,100,91,.55);
  box-shadow: 0 0 0 4px rgba(157,100,91,.14), 0 12px 32px rgba(23,18,16,.12);
}

.contact-hint{
  margin: 2px 0 6px;
  color: rgba(75,67,60,.82);
  font-size: .92rem;
}

.file-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ocultamos el input real y usamos label botón */
#cf-pdf{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-file{
  box-shadow: 0 12px 26px rgba(23,18,16,.14);
}

.file-name{
  color: rgba(75,67,60,.82);
  font-size: .92rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-actions{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.contact-buttons{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.contact-form-status{
  min-height: 18px;
  color: rgba(75,67,60,.86);
  font-size: .92rem;
}

.contact-form-status.is-error{
  color: #7a2e2e;
  font-weight: 800;
}

.contact-form-status.is-ok{
  color: #2f6b3b;
  font-weight: 800;
}

/* =========================
   MAPA (sin watermark, sin overlays)
========================= */
.section-map{
  padding-top: 44px;
  padding-bottom: 64px;
}

.mini-map-out{
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(114,58,37,.16);
  background: rgba(114,58,37,.03);
  box-shadow: var(--shadow);
}
.mini-map-out::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(114,58,37,.04);
  pointer-events:none;
  z-index: 1;
}
.mini-map-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(.95) contrast(1.04) brightness(1.02);
  transform: scale(1.06);
  transform-origin: center;
  position: relative;
  z-index: 0;
}

/* "Cómo llegar" */
.mini-map-card{
  position: absolute;
  left: 22px;
  top: 22px;
  width: min(340px, calc(100% - 44px));
  background: rgba(75,67,60,.92);
  color: var(--brand-beige);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(23,18,16,.28);
  border: 1px solid rgba(236,216,194,.18);
  z-index: 2;
}
.mini-map-info{
  padding: 14px 14px 14px;
}
.mini-map-info h3{
  margin: 0 0 8px;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--brand-beige);
}
.mini-map-info p{
  margin: 0 0 12px;
  line-height: 1.35;
  font-size: .92rem;
  color: rgba(236,216,194,.84);
}
.mini-map-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--brand-rose);
  color: var(--brand-beige);
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(236,216,194,.14);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.mini-map-btn:hover{
  transform: translateY(-1px);
  background: #8c584f;
  filter: brightness(1.02);
}

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }

  .watermark-zone::before{
    background-size: min(1400px, 160%);
    opacity: .10;
  }
}

@media (max-width: 820px){
  .features{ grid-template-columns: 1fr; }
}

/* ✅ Responsive modal form */
@media (max-width: 720px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .contact-buttons{
    justify-content: stretch;
  }
  .contact-buttons .btn{
    width: 100%;
  }
  .file-name{
    width: 100%;
  }
}

@media (max-width: 520px){
  .mini-map-out{ height: 360px; }
  .mini-map-card{
    left: 12px;
    right: 12px;
    width: auto;
  }

  .watermark-zone::before{
    background-size: min(1200px, 220%);
    opacity: .09;
  }
}
