/* Estilos propios sobre el export de Framer */

/* Encabezado: enlace al libro, debajo de la hora y la ciudad */
.framer-1t5yp0v .tg-book-link {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 500 14px/1.4 "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.02em;
  color: #121212;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.framer-1t5yp0v .tg-book-link:hover { opacity: 0.6; }
.framer-1t5yp0v .tg-book-link:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }

/* Entrada 3D (primera carga de la sesión; ver /assets/intro.js):
   la página llega "por carretera", desde el horizonte, y se endereza. */
html.tg-intro body { perspective: 1200px; perspective-origin: 50% 50vh; overflow: hidden; }
html.tg-intro #main { opacity: 0; transform-origin: 50% 100vh; will-change: transform, opacity; }
html.tg-intro.tg-intro-go #main { animation: tg-rise 1.8s cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes tg-rise {
  0%   { opacity: 0; transform: translate3d(0, 10vh, 0) rotateX(42deg); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

/* Footer: el grupo 404 / Términos / Políticas tenía ancho fijo para "Terms" y "Policy" */
.framer-1cam5td { width: auto !important; max-width: 100% !important; flex-wrap: wrap !important; row-gap: 8px; }

/* ─────────── Responsive: correcciones al layout original de Framer ─────────── */

/* Tarjetas "¿Por qué elegirnos?": el título largo hace salto de línea en lugar de recortarse */
.framer-XeBTc .framer-1droeee { white-space: normal !important; flex: 1 1 auto !important; min-width: 0; }

@media (min-width: 810px) and (max-width: 1439.98px) {
  /* Header fijo más compacto en tablet (196px tapaba el título de Contacto) */
  .framer-mphKF.framer-1hmd1zi { padding-top: 18px !important; padding-bottom: 18px !important; }
  .framer-mphKF .framer-1reb95e, .framer-mphKF .framer-vio647 { width: 120px !important; height: 93px !important; }
}

@media (max-width: 1439.98px) {
  /* Hero: el logo animado y el botón dejan de flotar encima del titular */
  .framer-th6le3, .framer-12sw0kp { height: auto !important; }
  .framer-12sw0kp { padding-bottom: 56px !important; }
  .framer-1t5gcm1 { order: 1; }
  .framer-1eaeieo { order: 2; }
  .framer-vkb5dw-container, .framer-wdlz8t-container { position: relative !important; inset: auto !important; }
  .framer-vkb5dw-container { order: 3; width: min(413px, 100%) !important; height: auto !important; aspect-ratio: 413 / 356; margin-top: 24px; }
  .framer-wdlz8t-container { order: 4; width: min(413px, 100%) !important; margin-top: 12px; }
  .framer-1mkiod7 { order: 5; padding: 40px 0 0 0 !important; }

  /* Contacto (home): la sección medía 1440px fijos */
  .framer-10che0, .framer-1jn3a11, .framer-tmh60v, .framer-19ku8nh { width: 100% !important; max-width: 100% !important; }

  /* Servicios: el encabezado conservaba el ancho de escritorio (1290px) */
  .framer-53gn68, .framer-27h0n1, .framer-1ghyi97, .framer-fzfu5o, .framer-4lvnxo { width: 100% !important; max-width: 100% !important; }
}

@media (max-width: 809.98px) {
  /* Header fijo más bajo (medía 188px y tapaba los títulos de cada página) */
  .framer-mphKF.framer-1hmd1zi { padding: 14px 20px !important; }
  .framer-mphKF .framer-1reb95e, .framer-mphKF .framer-vio647 { width: 104px !important; height: 81px !important; }

  /* Servicios: cada tarjeta en una columna legible */
  div:has(> a.framer-hexCL), a.framer-hexCL { height: auto !important; }
  .framer-hexCL .framer-ydora4 { flex-direction: column !important; align-items: stretch !important; width: 100% !important; height: auto !important; gap: 20px !important; }
  .framer-hexCL .framer-1ehh2yb, .framer-hexCL .framer-36tynw { width: 100% !important; height: auto !important; }
  .framer-hexCL .framer-11ghqvs, .framer-hexCL .framer-y9ldtr { flex: 1 1 auto !important; width: auto !important; height: auto !important; min-width: 0; }
  .framer-hexCL .framer-1b32mo4, .framer-hexCL .framer-1b32mo4 svg { width: 44px !important; height: 44px !important; }
  .framer-hexCL .framer-y9ldtr .framer-text { --framer-font-size: clamp(30px, 8.6vw, 44px) !important; word-break: normal !important; overflow-wrap: normal !important; }
  /* El contenedor tenía altura fija y centraba: las tarjetas apiladas se salían por arriba */
  .framer-by2oqy, .framer-r3a8ed { height: auto !important; }
  .framer-r3a8ed { justify-content: flex-start !important; }
  /* "Contáctanos" en un solo renglón */
  .framer-19ku8nh .framer-text { --framer-font-size: 12.5vw !important; }

  /* Hero: el titular ocupa todo el ancho */
  .framer-1eaeieo { align-items: flex-start !important; height: auto !important; }
  .framer-qua9ps { width: 100% !important; }

  /* Contacto (home): el formulario medía 800px fijos */
  .framer-tmh60v { padding-left: 20px !important; padding-right: 20px !important; }
  .framer-1csj5yj, .framer-mujhvq, .framer-18hkujh, .framer-1aqpzh0, .framer-w2pv7t-container { width: 100% !important; }
  .framer-6be2zl, .framer-162kz53 { flex-direction: column !important; width: 100% !important; height: auto !important; }
  /* Las casillas traían flex: 1 0 0 + overflow hidden: en columna quedaban con altura 0 y desaparecían */
  .framer-1ui0pn8, .framer-k656hd, .framer-18htdor, .framer-uxywu8 { width: 100% !important; flex: none !important; height: auto !important; }

  /* Header: enlace al libro debajo de "Contáctanos" */
  .framer-mphKF .tg-book-link-m {
    position: absolute;
    right: 0;
    top: calc(50% + 14px);
    white-space: nowrap;
    font: 500 13px/1.4 "Inter Tight", "Inter", sans-serif;
    letter-spacing: -0.02em;
    color: #121212;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .framer-mphKF .tg-book-link-m:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }
}

@media (max-width: 479.98px) {
  /* Página Contacto: "Contáctanos" en un solo renglón (se partía en "CONTÁCTANO / S") */
  .framer-J6E5g .framer-dk48m2 .framer-text { --framer-font-size: 12.5vw !important; }
  /* Páginas legales: "CONDICIONES" / "PRIVACIDAD" sin cortar la palabra */
  .framer-gpv3pd .framer-text { --framer-font-size: 11vw !important; }
}

@media (max-width: 1439.98px) {
  /* Footer: el botón de WhatsApp flotaba en posición absoluta y se encimaba con el botón o el lema */
  .framer-8dqjm .framer-1rkktff-container {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center;
    margin: -64px 0 -40px;
  }
  /* Enlaces del footer centrados */
  .framer-8dqjm .framer-16ea33a { align-items: center !important; text-align: center; }
  .framer-8dqjm .framer-1nn3wh5, .framer-8dqjm .framer-1cam5td { justify-content: center !important; width: 100% !important; column-gap: 20px !important; }
}

/* Páginas legales: el header fijo tapaba las tildes del título (POLÍTICAS, TÉRMINOS) */
@media (min-width: 810px) {
  .framer-gaCtZ .framer-1czveb0 { padding-top: 220px !important; }
}
