@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-400.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-500.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

html {
  margin-top: 0 !important;
}

body.admin-bar nav.fixed {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar nav.fixed {
    top: 46px;
  }
}

.ppc-nav {
  /* Por encima del panel móvil para que el icono hamburguesa siga clicable; lovable no incluye z-[60] en el bundle. */
  z-index: 99985;
}

.ppc-nav.is-scrolled {
  background-color: hsl(var(--background) / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: hsl(var(--border));
}

.ppc-mobile-panel,
.ppc-dialog,
.ppc-toast-stack {
  pointer-events: none;
}

.ppc-mobile-panel {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  z-index: 99980;
  isolation: isolate;
}

/* Tema / menú móvil legibles sobre la hero (vídeo oscuro) */
.ppc-nav:not(.is-scrolled) .ppc-nav-mobile-bar {
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}

.ppc-nav.is-scrolled .ppc-nav-mobile-bar {
  color: hsl(var(--foreground));
  text-shadow: none;
}

/* Menú abierto: iconos sobre el drawer (fondo claro en tema claro); el blanco de la hero quedaría invisible. */
body:has(.ppc-mobile-panel.is-open) .ppc-nav .ppc-nav-mobile-bar {
  color: hsl(var(--foreground));
  text-shadow: none;
}

/* Evita que capas fixed cerradas reaparezcan o interfieran al hacer scroll (p. ej. con backdrop-filter en el nav). */
.ppc-mobile-panel,
.ppc-dialog {
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.ppc-mobile-panel.is-open,
.ppc-dialog.is-open,
.ppc-toast-stack.has-toasts {
  pointer-events: auto;
}

.ppc-mobile-panel.is-open,
.ppc-dialog.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.ppc-mobile-backdrop {
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
}

.ppc-dialog {
  z-index: 99990;
  isolation: isolate;
}

.ppc-dialog.is-open {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.ppc-dialog-body {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

body.admin-bar .ppc-dialog-body {
  padding-top: max(1rem, calc(env(safe-area-inset-top, 0px) + 32px));
}

@media screen and (max-width: 782px) {
  body.admin-bar .ppc-dialog-body {
    padding-top: max(1rem, calc(env(safe-area-inset-top, 0px) + 46px));
  }
}

.ppc-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgb(0 0 0 / 0.7);
  opacity: 0;
  transition: opacity .3s ease;
}

.ppc-mobile-panel-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  /* Debajo de .ppc-nav fijo (h-16 = 4rem: logo + hamburguesa); +1rem de aire respecto al bloque del header. */
  padding-top: calc(4rem + 1rem + env(safe-area-inset-top, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
}

body.admin-bar .ppc-mobile-panel-content {
  padding-top: calc(32px + 4rem + 1rem + env(safe-area-inset-top, 0px));
}

@media screen and (max-width: 782px) {
  body.admin-bar .ppc-mobile-panel-content {
    padding-top: calc(46px + 4rem + 1rem + env(safe-area-inset-top, 0px));
  }
}

.ppc-mobile-panel-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ppc-mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  line-height: 1.35;
}

.ppc-mobile-nav-link span {
  display: inline-block;
  max-width: 100%;
}

.ppc-mobile-panel.is-open .ppc-mobile-backdrop,
.ppc-dialog.is-open .ppc-dialog-backdrop {
  opacity: 1;
}

.ppc-mobile-panel.is-open .ppc-mobile-panel-content {
  transform: translateX(0);
}

.ppc-dialog-panel {
  transform: translateY(0.5rem) scale(0.96);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.ppc-dialog.is-open .ppc-dialog-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ppc-animate {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .7s cubic-bezier(.25,.1,.25,1), transform .7s cubic-bezier(.25,.1,.25,1);
  transition-delay: var(--ppc-delay, 0s);
}

.ppc-animate.ppc-animate-scale {
  transform: scale(.95);
}

.ppc-animate.ppc-animate-left {
  transform: translate3d(-30px, 0, 0);
}

.ppc-animate.ppc-animate-right {
  transform: translate3d(30px, 0, 0);
}

.ppc-animate.ppc-animate-hero-logo {
  transform: scale(.5) rotate(-180deg);
  transition-duration: 1s;
}

.ppc-animate.ppc-visible {
  opacity: 1;
  transform: none;
}

.ppc-service-track {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ppc-service-track::-webkit-scrollbar {
  display: none;
}

.ppc-service-track.ppc-service-track--nosmooth {
  scroll-behavior: auto;
}

.ppc-service-slide.ppc-is-empty,
.ppc-repeat-item.ppc-is-empty {
  display: none !important;
}

.ppc-accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease-out;
}

.ppc-accordion-item.is-open .ppc-accordion-content {
  max-height: min(100vh, 1200px);
}

.ppc-accordion-content-inner {
  padding-bottom: 0;
}

.ppc-accordion-item.is-open .ppc-accordion-content-inner {
  padding-bottom: 1rem;
}

.ppc-accordion-icon {
  transition: transform .2s ease-out;
}

.ppc-accordion-item.is-open .ppc-accordion-icon {
  transform: rotate(180deg);
}

.ppc-select-wrap {
  position: relative;
}

.ppc-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid hsl(var(--foreground));
  border-bottom: 1.5px solid hsl(var(--foreground));
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.ppc-select {
  appearance: none;
  -webkit-appearance: none;
}

.ppc-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ppc-toast {
  min-width: 280px;
  max-width: 360px;
  border-radius: 12px;
  padding: 16px 18px;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}

.ppc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ppc-toast--success {
  border-color: hsl(var(--primary) / .35);
}

.ppc-toast--error {
  border-color: hsl(var(--destructive) / .35);
}

.ppc-theme-toggle [data-theme-icon] {
  display: none;
}

html.dark .ppc-theme-toggle [data-theme-icon="sun"] {
  display: block;
}

html:not(.dark) .ppc-theme-toggle [data-theme-icon="moon"] {
  display: block;
}

.ppc-brand-double {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ppc-brand-double img:last-child {
  position: absolute;
  opacity: 0;
  transition: all .5s ease;
}

.ppc-brand-card:hover .ppc-brand-double img:first-child {
  opacity: 0;
}

.ppc-brand-card:hover .ppc-brand-double img:last-child {
  opacity: 1;
}

.ppc-booking-close {
  line-height: 0;
}

.ppc-booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.2);
}

html.dark .ppc-booking-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
}

.ppc-hero-overlay,
.ppc-video-quote-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 50%, rgba(0,0,0,.4) 100%);
}

.ppc-link-reset {
  text-decoration: none;
}

.ppc-placeholder {
  display: inline-block;
  min-width: .5ch;
}
