/* Your app custom styles here */
/* eb-garamond-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/eb-garamond-v32-latin-regular.woff2') format('woff2');
}

.text-garamond {
  font-family: 'EB Garamond';
}

.text-elegant {
  opacity: 0;
  transform: translateY(0.6em);
  animation: textReveal 3.6s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.opacity-fade {
  transition: opacity 600 ease-in-out;
}

.main-title {
  font-weight: 900;
  font-family: 'EB Garamond', serif;
}

/* html, */
/* body { */
/* font-family: 'EB Garamond', serif; */
/* } */

.toolbar-main .link {
  flex-grow: 1;
}

.icon-small {
  font-size: 20px !important;
}

.text-muted {
  opacity: 0.618;
}

.icon-large {
  font-size: 34px;
}

.bg-alt {
  background-color: #1C1C1D;
}

.main-page {
  opacity: 0;
  transition: opacity 600ms ease-in;
}

.main-page.show {
  opacity: 1;
}

.opacity-0 {
  opacity: 0 !important;
}

.border-radius-0 {
  border-radius: 0px;
}

/* HERO INICIO ---------------------------------*/
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.image-stack {
  inset: 0;
  position: absolute;
}

.image-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* estado base para que tú controles fades */
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8dvw;
}

.main-title {
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;


  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.8);
}

.slogan-brand {
  opacity: 0.8466;
  font-size: 1.1rem;
  margin-top: 0.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  font-weight: 900;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 1);
}

@media (max-width: 768px) {
  .hero-content {
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .main-title {
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .slogan-brand {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    max-width: 90dvw;
  }
}

/* HERO FIN ---------------------------------*/
/* ABOUT INICIO ------------------------------*/
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  padding: 6rem 3rem;
  align-items: center;
  padding-bottom: 1rem;
}

.about__eyebrow {
  display: block;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.about__title {
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.about__description {
  max-width: 560px;
  line-height: 1.9;
}

.about__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
  }
}

/* ABOUT FIN ---------------------------------*/
/* ESPECIALIDADES INICIO ---------------------*/

.especialidad-item {
  cursor: pointer;
  position: relative;
  height: 61.8dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-color: #000;
}

/* Imagen */
.especialidad-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  border: 0;
  opacity: 0.618;
}

/* Overlay sutil */
.especialidad-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0));
  z-index: 1;
}

/* Contenido */
.especialidad-item>div {
  position: relative;
  z-index: 2;
  padding: 2rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

/* Tipografía */
.especialidad-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.especialidad-Subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  max-width: 90%;
}

/* Interacción elegante */
.especialidad-item:hover img {
  transform: scale(1.05);
}

.especialidad-item:hover>div {
  transform: translateY(-4px);
}

/* ESPECIALIDADES FIN ------------------------*/
/* .popup-especialidad { */
/* --f7-popup-tablet-width: 96.81dvw; */
/* } */

.popup-especialidad-container {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}


.testimonial-card {
  max-width: 420px;
  padding: 32px;
  background: #1C1C1D;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #EAEAEA;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .name {
  display: block;
  font-weight: 600;
  color: #FFFFFF;
}

.testimonial-author .role {
  font-size: 0.85rem;
  color: #9B9B9F;
}

.svg-wrapper {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 630;
  /* usa la proporción real del SVG */
}

.svg-wrapper object {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}