/*
 * Estilos específicos de la página de inicio (index.html).
 * Cada selector #ed-XXXX corresponde a un elemento del constructor webcard.
 * Los estilos generales del sitio están en /css/custom.*.css
 */
figure {
  margin: 0;
}
#ed-2286149792 {
  margin: auto 1rem auto auto;
}
@media screen and (max-width: 975px) {
  #ed-2286149792 {
    margin: auto 1rem auto 0rem;
  }
}
#ed-2286149789 {
  flex-grow: 1;
  flex-basis: auto;
}
#ed-2286149789 > .inner {
  place-content: center flex-end;
  align-items: center;
}
@media screen and (max-width: 975px) {
  #ed-2286149789 > .inner {
    justify-content: flex-end;
  }
}
#ed-2286149804 {
  flex-basis: auto;
  flex-grow: 1;
}
#ed-2286149774 > .inner {
  align-items: center;
  justify-content: space-between;
}
#ed-2286150146 .space {
  height: 16px;
}
#ed-2286150137 {
  opacity: 1;
}
#ed-2286147620 .space {
  height: 30px;
}
#ed-2286147638 {
  flex-basis: auto;
}
#ed-2286147644 {
  flex: 1 1 auto;
}
#ed-2286147632 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147656 {
  flex-basis: auto;
}
#ed-2286147662 {
  flex: 1 1 auto;
}
#ed-2286147650 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147671 {
  flex-basis: auto;
}
#ed-2286147680 {
  flex: 1 1 auto;
}
#ed-2286147668 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147689 {
  flex-basis: auto;
}
#ed-2286147695 {
  flex: 1 1 auto;
}
#ed-2286147683 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147710 {
  flex-basis: auto;
}
#ed-2286147716 {
  flex: 1 1 auto;
}
#ed-2286147704 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147728 {
  flex-basis: auto;
}
#ed-2286147731 {
  flex: 1 1 auto;
}
#ed-2286147722 > .inner {
  place-content: stretch flex-start;
  align-items: stretch;
}
#ed-2286147626 > .inner {
  align-items: stretch;
  align-content: stretch;
}
#ed-2286151181 h2 {
  text-align: center;
}
#ed-2286151184 .space {
  height: 1rem;
}
#ed-2286151196 .space {
  height: 2rem;
}
#ed-2286151205 {
  text-align: center;
}
#ed-2286147413 h2 {
  text-align: center;
}
#ed-2286147419 .space {
  height: 30px;
}
#ed-2286147425 > .inner {
  flex-direction: row;
}
#ed-2286148208 h2 {
  text-align: center;
}
#ed-2286148211 .space {
  height: 30px;
}
#ed-2286148214 > .inner {
  justify-content: space-between;
}
#ed-2286148004 > .inner {
  justify-content: center;
}
#ed-2286148019 > .inner {
  justify-content: center;
}
#ed-2286148043 {
  flex-grow: 1;
}
#ed-2286148031 > .inner {
  justify-content: center;
}
#ed-2286148055 > .inner {
  justify-content: center;
}
#ed-2286148001 > .inner {
  align-items: flex-start;
  justify-content: space-between;
}
@media screen and (max-width: 975px) {
  #ed-2286148001 > .inner {
    justify-content: flex-start;
  }
}

/* --- MEJORAS DE PRIMERA IMPRESIÓN (EMIL KOWALSKI STYLE) --- */

:root {
  --ds-cafe: #4a3728;
  --ds-gold: #c5a059;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estilo del botón Agendar en el Header - Más compacto */
.btn-agendar-header {
  background: var(--ds-gold) !important;
  color: #fff !important;
  padding: 0.4rem 0.8rem !important; /* Más compacto */
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 12px !important; /* Texto un poco más pequeño para ahorrar espacio */
  letter-spacing: 0.5px;
  transition: transform 160ms var(--ease-out), background 200ms ease, box-shadow 200ms ease !important;
  display: inline-block;
  margin-left: 0.5rem; /* Menos margen */
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

#ed-2286149783 img {
  max-height: 60px !important; /* Logo más pequeño */
  width: auto;
}

/* Reducir espacio entre ítems del menú para que quepa mejor */
.menu-level-0 li {
  margin: 0 0.1rem !important;
}

.menu-level-0 li a {
  padding: 0.4rem 0.4rem !important;
  font-size: 13px !important;
}

/* Ajuste del botón para que no crezca demasiado */
.btn-agendar-header {
  margin-left: 0.3rem !important;
  padding: 0.3rem 0.6rem !important;
  font-size: 11px !important;
}

.btn-agendar-header:hover {
  background: #b38f4d !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* FEEDBACK TÁCTIL: Los botones deben sentirse responsivos */
.btn-agendar-header:active {
  transform: scale(0.97) !important;
}

/* Ajustes para móviles */
@media screen and (max-width: 975px) {
  .menu-cta {
    margin-top: 1rem;
    text-align: center;
  }
  .btn-agendar-header {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Animación de entrada suave para el Hero (Preventing jarring changes) */
#ed-2286150137 .inner {
  animation: slideUpFade 600ms var(--ease-out) forwards;
  opacity: 0;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MODAL "AGENDAR CITA" (carga la agenda en un iframe, sin salir del sitio) --- */

.agenda-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.agenda-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.agenda-modal-content {
  width: 100%;
  max-width: 460px;
  height: min(85vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 220ms ease;
}

.agenda-modal.is-open .agenda-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.agenda-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--ds-cafe);
  color: #fff;
}

.agenda-modal-header span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.agenda-modal-close {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.85;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
}

.agenda-modal-close:hover {
  opacity: 1;
}

.agenda-modal-close:active {
  transform: scale(0.9);
}

.agenda-modal-body {
  position: relative;
  flex: 1 1 auto;
  background: #fff;
}

.agenda-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.agenda-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
}

.agenda-modal-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(197, 160, 89, 0.25);
  border-top-color: var(--ds-gold);
  animation: agendaSpin 800ms linear infinite;
}

@keyframes agendaSpin {
  to {
    transform: rotate(360deg);
  }
}

.agenda-modal-loading span {
  font-size: 0.85rem;
  color: #777;
}

.agenda-modal-fallback {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.agenda-modal-fallback.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.agenda-modal-fallback p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}

.agenda-modal-fallback a {
  flex: 0 0 auto;
  background: var(--ds-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 200ms ease;
}

.agenda-modal-fallback a:hover {
  background: #b38f4d;
}

.agenda-modal-fallback a:active {
  transform: scale(0.96);
}

@media screen and (max-width: 560px) {
  .agenda-modal {
    padding: 0;
  }
  .agenda-modal-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agenda-modal,
  .agenda-modal-content {
    transition: opacity 150ms ease;
  }
  .agenda-modal-content {
    transform: none;
  }
}

