/* =========================================================
   ubicacion.css — COMPLETO (CORREGIDO + SECCIONES SEPARADAS)
   - Hero premium + tabla decorativa (tabla-pedidos.webp) MISMA POSICIÓN
   - Mapa FULL WIDTH (ocupa toda la pantalla horizontal)
   - “Datos rápidos” separado como su propio bloque (limpio)
   - Botones + link-copy coherentes
   - Responsive completo
========================================================= */

/* =========================
   0) VARIABLES
========================= */
:root{
  --azul:#251bbd;
  --azul-2:#2f2ad6;
  --naranja:#f28a1a;
  --naranja-2:#ff9f3a;
  --crema:#f3ede5;

  --radio: 28px;
  --sombra: 0 18px 40px rgba(0,0,0,.16);
  --sombra2: 0 26px 60px rgba(0,0,0,.14);
  --punteado: rgba(0,0,0,.26);
  --trans: 260ms cubic-bezier(.2,.8,.2,1);
}

img{ max-width:100%; height:auto; }
.is-hidden{ display:none !important; }

/* =========================================================
   1) HERO UBICACIÓN
   ✅ Tabla decorativa (tabla-pedidos.webp) MISMA POSICIÓN DE SIEMPRE
========================================================= */
.ubicacion-hero{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  z-index: 1;
  padding: 150px 20px 60px;
}

.ubicacion-hero::before{
  content:"";
  position:absolute;

  top: 10px;
  left: -140px;

  width: clamp(600px, 55vw, 650px);
  height: clamp(650px, 55vw, 650px);

  background: url("imgs/tabla-ubicacion.webp") no-repeat;
  background-size: contain;
  background-position: left top;

  opacity: 1;
  z-index: 80;
  pointer-events:none;
  user-select:none;

  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
}

.ubicacion-hero-card{
  position: relative;
  z-index: 20;

  background: rgba(243,237,229,.95);
  border-radius: 34px;
  box-shadow: var(--sombra2);
  overflow: visible;

  padding: 90px 78px 78px;
  text-align: center;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ubicacion-hero-card::before{
  content:"";
  position:absolute;
  inset: 26px;
  border-radius: 22px;
  border: 2px dashed var(--punteado);
  pointer-events:none;
  z-index: 1;
}

.ubicacion-hero-inner{
  position: relative;
  z-index: 90;
  max-width: 920px;
  margin: 0 auto;
}

.ubicacion-kicker{
  height: 10px;
  width: 120px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,27,189,.22), rgba(242,138,26,.22));
}

.ubicacion-title{
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 950;

  background: linear-gradient(90deg, var(--azul), var(--naranja));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;

  filter:
    drop-shadow(0 2px 0 rgba(255,255,255,.9))
    drop-shadow(0 18px 22px rgba(37,27,189,.10));
}

.ubicacion-lead{
  margin: 0 auto;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,.75);
  font-weight: 650;
}

/* CTA hero */
.ubicacion-cta{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  align-items: stretch;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.ubicacion-cta .btn{
  width: 100%;
  min-height: 56px;
  border-radius: 22px;
}

.ubicacion-mini{
  margin: 16px auto 0;
  max-width: 920px;
  font-size: 14.6px;
  color: rgba(0,0,0,.70);
  font-weight: 650;
}

/* =========================================================
   2) SECCIÓN BASE
========================================================= */
.seccion{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 84px;
}

/* =========================================================
   3) MAPA FULL WIDTH (solo horizontal)
   IMPORTANTE: en HTML, envuelve tu mapa con .ubicacion-map-full
========================================================= */
.ubicacion-wrap{
  padding-bottom: 40px;
}

/* full-bleed: ocupa todo el ancho del viewport */
.ubicacion-map-full{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  margin-top: 14px;
  margin-bottom: 18px;

  /* “aire” lateral aun siendo full width */
  padding: 0 22px;
}

/* =========================================================
   4) CARDS BASE (mapa / info)
========================================================= */
.ubicacion-mapa,
.ubicacion-info{
  position: relative;
  border-radius: 30px;
  box-shadow: var(--sombra);
  background: rgba(243,237,229,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 18px 18px;
}

.ubicacion-mapa::before,
.ubicacion-info::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 20px;
  border: 2px dashed rgba(0,0,0,.20);
  pointer-events:none;
}
.ubicacion-mapa > *,
.ubicacion-info > *{
  position: relative;
  z-index: 2;
}

.ubicacion-subtitle{
  margin: 0 0 10px;
  font-weight: 950;
  font-size: 18px;
  background: linear-gradient(90deg, var(--azul), var(--naranja));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* Mapa grande */
.ubicacion-map-embed{
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}
.ubicacion-map-embed iframe{
  width: 100%;
  height: 580px; /* ✅ GRANDE */
  display: block;
  border: 0;
}

.ubicacion-map-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   5) DATOS RÁPIDOS — separado y “respirable”
   - Se ve como bloque propio debajo del mapa
========================================================= */
.ubicacion-info{
  max-width: 980px;          /* se ve como bloque separado */
  margin: 0 auto;            /* centrado */
  padding: 22px 22px;
}

/* “chips” */
.ubicacion-pills{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

/* cada chip */
.ubi-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 18px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);

  font-weight: 750;
  color: rgba(0,0,0,.74);
}

.ubi-ico{
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.12));
}

.ubicacion-sep{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 16px 0;
}

.ubicacion-texto{
  margin: 0 0 14px;
  color: rgba(0,0,0,.74);
  font-weight: 650;
  line-height: 1.6;
}

.ubicacion-botones{
  display: grid;
  gap: 10px;
}

/* =========================================================
   6) BOTONES (fallback)
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-decoration: none;
  border: 0;
  cursor: pointer;

  border-radius: 18px;
  padding: 14px 18px;

  font-family: inherit;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1;

  transition: transform var(--trans), filter var(--trans), box-shadow var(--trans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn .btn-ico{
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.16));
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0); }

.btn-grande{
  padding: 16px 22px;
  border-radius: 20px;
  min-height: 54px;
  font-size: 15.5px;
}
.btn-mini{
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 16px;
}

.btn-primario{
  color: #fff;
  background: linear-gradient(90deg, var(--azul), var(--azul-2));
  box-shadow: 0 18px 34px rgba(37,27,189,.22), 0 10px 22px rgba(0,0,0,.12);
}
.btn-secundario{
  color: rgba(0,0,0,.86);
  background: linear-gradient(90deg, rgba(242,138,26,.22), rgba(255,159,58,.18));
  border: 1px solid rgba(242,138,26,.34);
  box-shadow: 0 18px 34px rgba(242,138,26,.16), 0 10px 22px rgba(0,0,0,.10);
}
.btn-terciario{
  color: rgba(0,0,0,.84);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 16px 28px rgba(0,0,0,.10);
}

/* link-copy (correo) */
.link-copy{
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 12px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(90deg, rgba(242,138,26,.14), rgba(37,27,189,.14));
  box-shadow: 0 12px 22px rgba(0,0,0,.10);

  font-weight: 950;
  color: rgba(0,0,0,.82);
  cursor: pointer;

  transition: transform 260ms ease, filter 260ms ease;
}
.link-copy:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.link-copy:active{ transform: translateY(0); }

/* =========================================================
   7) RESPONSIVE
========================================================= */

/* Desktop pequeño (900–1024) */
@media (max-width: 1024px) and (min-width: 900px){
  .ubicacion-hero{
    padding: 140px 18px 44px;
    max-width: 1100px;
  }
  .ubicacion-hero::before{
    top: 8px;
    left: -90px;
    width: clamp(520px, 62vw, 620px);
    height: clamp(560px, 62vw, 620px);
  }

  .ubicacion-title{ font-size: 44px; }
  .ubicacion-hero-card{ padding: 78px 44px 60px; }

  .ubicacion-cta{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .ubicacion-map-full{
    padding: 0 18px;
  }

  .ubicacion-map-embed iframe{ height: 540px; }
}

/* Tablet (641–899) */
@media (max-width: 899px) and (min-width: 641px){
  .ubicacion-hero{
    padding: 130px 16px 30px;
    max-width: 980px;
  }
  .ubicacion-hero::before{
    top: 6px;
    left: -60px;
    width: clamp(460px, 78vw, 600px);
    height: clamp(480px, 78vw, 600px);
  }

  .ubicacion-title{ font-size: 40px; }
  .ubicacion-lead{ font-size: 16.4px; }
  .ubicacion-hero-card{ padding: 66px 26px 54px; }

  .ubicacion-cta{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .ubicacion-map-full{
    padding: 0 16px;
  }

  .ubicacion-map-embed iframe{ height: 520px; }

  .ubicacion-info{
    max-width: 920px;
  }
}

/* Móvil (<= 640) */
@media (max-width: 640px){
  .ubicacion-hero{
    padding: 118px 12px 18px;
    max-width: 100%;
  }
  .ubicacion-hero::before{
    top: 4px;
    left: -26px;
    width: clamp(340px, 96vw, 520px);
    height: clamp(360px, 96vw, 520px);
  }

  .ubicacion-hero-card{
    padding: 56px 14px 44px;
    border-radius: 24px;
  }
  .ubicacion-hero-card::before{
    inset: 14px;
    border-radius: 14px;
  }

  .ubicacion-title{
    font-size: 30px;
    line-height: 1.12;
    padding: 0 10px;
  }
  .ubicacion-lead{
    font-size: 14.7px;
    padding: 0 10px;
  }

  .seccion{
    padding: 0 12px;
    margin-top: 64px;
  }

  .ubicacion-cta{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .ubicacion-map-full{
    padding: 0 12px;
  }

  .ubicacion-mapa{
    padding: 16px 14px;
  }

  .ubicacion-map-embed iframe{ height: 420px; }

  .ubicacion-map-actions .btn,
  .ubicacion-map-actions button{
    width: 100%;
    justify-content: center;
  }

  .ubicacion-info{
    padding: 18px 14px;
    max-width: 100%;
  }

  .ubicacion-botones .btn,
  .ubicacion-botones button{
    width: 100%;
    justify-content: center;
  }
}

/* iPad fix (768–1024) */
@media (max-width: 1024px) and (min-width: 768px){
  .ubicacion-hero{
    max-width: 980px;
    padding: 130px 18px 80px;
  }
  .ubicacion-hero::before{
    top: 6px;
    left: -80px;
    width: clamp(520px, 70vw, 640px);
    height: clamp(520px, 70vw, 640px);
  }
}

/* =========================================================
   8) Reveal compat (si tu script global lo usa)
========================================================= */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
}
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2,.8,.2,1),
    filter 900ms ease;
  will-change: opacity, transform, filter;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   9) NUEVO (REHECHO): HERO layout (texto + imagen) + separador MÁS GRANDE
   ✅ PÉGALO AL FINAL de tu ubicacion.css (sustituye el bloque anterior)
========================================================= */

/* ===== HERO: 2 columnas en desktop, 1 columna en móvil ===== */
.ubicacion-hero-layout{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Texto */
.ubicacion-hero-texto{
  flex: 1.05;
  min-width: 0;
  text-align: left;
}

/* Kicker a la izquierda */
.ubicacion-hero-texto .ubicacion-kicker{
  margin: 0 0 18px;
}

/* Evita que el texto se “estire” demasiado */
.ubicacion-hero-texto .ubicacion-lead{
  margin-left: 0;
  margin-right: 0;
  max-width: 680px;
}

/* CTA alineada al texto */
.ubicacion-hero-texto .ubicacion-cta{
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

/* Media (imagen) */
.ubicacion-hero-media{
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: flex-end; /* ✅ empuja la imagen hacia la orilla derecha */
  align-items: center;
}

/* ✅ Imagen MÁS GRANDE + SIN MARCO (sin borde ni caja) */
.ubicacion-hero-img{
  width: 100%;
  max-width: 560px;   /* ✅ AQUÍ la haces grande en desktop (sube a 600 si quieres) */
  height: auto;

  border: 0 !important;        /* quita marco */
  outline: none !important;     /* por si acaso */
  background: transparent !important;

  border-radius: 0 !important; /* sin recorte cuadrado */
  object-fit: contain;

  /* sombra suave (sin “caja”) */
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.18));
}

/* =========================================================
   9.1) Separación EXTRA para “Datos rápidos”
   ✅ lo bajamos mucho más
========================================================= */

/* Si tu .ubicacion-grid no tiene grid/flex definido en otro CSS,
   esto asegura orden vertical (mapa -> espacio -> datos) */
.ubicacion-grid{
  display: block;
}

/* ✅ Separador: ahora MUCHO MÁS GRANDE */
.ubicacion-space{
  height: 90px; /* ✅ sube/baja (90–140 recomendado) */
}

/* Extra: “Datos rápidos” todavía más abajo aunque cambies el height */
.ubicacion-info{
  margin-top: 18px;  /* suma aire adicional */
}

/* =========================================================
   10) RESPONSIVE para el nuevo layout
========================================================= */

/* Desktop medio */
@media (max-width: 1024px){
  .ubicacion-hero-layout{
    gap: 30px;
  }
  .ubicacion-hero-img{
    max-width: 560px;
  }

  /* Botones en 1 columna para que no se aplasten */
  .ubicacion-cta{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .ubicacion-space{
    height: 100px;
  }
}

/* Tablet: imagen abajo, texto centrado */
@media (max-width: 899px){
  .ubicacion-hero-layout{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ubicacion-hero-texto{
    text-align: center;
  }

  .ubicacion-hero-texto .ubicacion-kicker{
    margin: 0 auto 18px;
  }

  .ubicacion-hero-texto .ubicacion-lead{
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
  }

  .ubicacion-hero-texto .ubicacion-cta{
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .ubicacion-hero-media{
    width: 100%;
    justify-content: center;
  }

  .ubicacion-hero-img{
    max-width: 650px; /* ✅ grande también en tablet */
  }

  .ubicacion-space{
    height: 110px;
  }
}

/* Móvil */
@media (max-width: 640px){
  .ubicacion-space{
    height: 160px; /* ✅ “Datos rápidos” MÁS abajo todavía */
  }

  .ubicacion-hero-img{
    max-width: 660px;
    filter: drop-shadow(0 18px 26px rgba(0,0,0,.16));
  }
}

/* =========================================================
   11) TIPOGRAFÍA PREMIUM — Correo + Botones
   Pegar al FINAL de ubicacion.css
========================================================= */

/* ===== TEXTO "Correo:" ===== */
.ubicacion-mini{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .3px;
  color: rgba(0,0,0,.78);
}

/* Palabra "Correo:" */
.ubicacion-mini::before{
  font-weight: 900;
}

/* ===== BOTÓN DEL EMAIL (mgicreaciones24...) ===== */
.link-copy{
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .4px;
  color: var(--azul);

  background: linear-gradient(90deg, rgba(37,27,189,.12), rgba(242,138,26,.12));
  border: 1px solid rgba(37,27,189,.18);

  transition: all 280ms ease;
}

/* Hover más elegante */
.link-copy:hover{
  color: #fff;
  background: linear-gradient(90deg, var(--azul), var(--azul-2));
  box-shadow: 0 14px 26px rgba(37,27,189,.25);
  transform: translateY(-2px);
}

/* ===== BOTONES GENERALES (mejor tipografía) ===== */
.btn{
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: none; /* cambia a uppercase si quieres */
}

/* Botones grandes */
.btn-grande{
  font-size: 15.8px;
  letter-spacing: .6px;
}

/* Botones mini */
.btn-mini{
  font-size: 13.8px;
  letter-spacing: .4px;
}

/* ===== BOTÓN PRIMARIO MÁS IMPACTANTE ===== */
.btn-primario{
  font-weight: 950;
  letter-spacing: .6px;
}

/* ===== BOTÓN SECUNDARIO MÁS SUAVE ===== */
.btn-secundario{
  font-weight: 800;
}

/* ===== BOTÓN TERCIARIO MÁS LIGERO ===== */
.btn-terciario{
  font-weight: 800;
}

/* Animación ligera al pasar el mouse */
.btn:hover{
  letter-spacing: .7px;
}

/* Móvil: ajustar tamaño para que no se vea pesado */
@media (max-width: 640px){
  .btn{
    font-size: 14px;
    letter-spacing: .4px;
  }

  .ubicacion-mini{
    font-size: 14px;
  }

  .link-copy{
    font-size: 13.5px;
  }
}

