/* ==========================================================================
   TURISMO MEDICO CASE STUDY SPECIFIC STYLES (styles-turismo-medico.css)
   ========================================================================== */

/* Add specific styles or overrides for this case study here */

/* Project Hero Background - Seamless ocean radial glow matching portada */
.project-hero {
   background: radial-gradient(ellipse 130% 100% at 50% 100%, #315474 0%, #0d2235 55%, #03101f 100%);
}

.project-text h2 {
   margin-bottom: 1rem;
   font-family: var(--font-main);
   letter-spacing: -1px;
   padding: 16px;
}

/* ==========================================================================
   EL RETO SECTION (Editorial Minimalist Layout)
   ========================================================================== */

.project-page-turismo .project-reto {
   padding: 5.5rem 0 4rem;
}

.project-page-turismo .reto-header {
   max-width: 820px;
   margin: 0 auto 3.5rem;
   text-align: center;
}

.project-page-turismo .reto-heading {
   text-align: center;
   margin-bottom: 1.5rem;
}

.project-page-turismo .reto-intro {
   font-size: var(--font-size-p);
   line-height: 1.65;
   color: rgba(33, 30, 73, 0.85);
   font-weight: 300;
   text-align: center;
   margin: 0;
}

.project-page-turismo .reto-intro strong {
   font-weight: 600;
   color: var(--text-dark);
}

.project-page-turismo .reto-pillars-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 0;
   max-width: 1040px;
   margin: 0 auto;
   align-items: start;
}

.project-page-turismo .reto-pillar:first-child {
   padding-right: 3.5rem;
}

.project-page-turismo .reto-pillar+.reto-pillar {
   border-left: 1px solid rgba(33, 30, 73, 0.12);
   padding-left: 3.5rem;
}

.project-page-turismo .reto-pillar-header {
   margin-bottom: 1.25rem;
}

.project-page-turismo .reto-pillar-header h3 {
   font-family: var(--font-main);
   font-size: 1.35rem;
   font-weight: 600;
   line-height: 1.25;
   letter-spacing: -0.3px;
   color: var(--text-dark);
   margin: 0;
}

.project-page-turismo .reto-pillar-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.project-page-turismo .reto-pillar-list li {
   display: flex;
   align-items: flex-start;
   gap: 0.85rem;
   font-size: 1rem;
   line-height: 1.65;
   color: rgba(33, 30, 73, 0.8);
   font-weight: 300;
}

.project-page-turismo .reto-pillar-list li strong {
   font-weight: 600;
   color: var(--text-dark);
}

.project-page-turismo .reto-bullet {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background-color: var(--bg-dark);
   margin-top: 0.62rem;
   flex-shrink: 0;
}

@media (max-width: 992px) {
   .project-page-turismo .reto-header {
      margin-bottom: 2.75rem;
   }

   .project-page-turismo .reto-pillars-grid {
      grid-template-columns: 1fr;
      gap: 2.25rem;
   }

   .project-page-turismo .reto-pillar:first-child {
      padding-right: 0;
   }

   .project-page-turismo .reto-pillar+.reto-pillar {
      border-left: none;
      border-top: 1px solid rgba(33, 30, 73, 0.12);
      padding-left: 0;
      padding-top: 2.25rem;
   }
}

.project-process {
   padding: 1rem 1rem 106px;
}

/* ==========================================================================
   FUNCIONALIDADES CLAVE SECTION (Accent Surface + Interactive Cards)
   ========================================================================== */

.project-page-turismo .project-features {
   background-color: var(--accent);
   padding: 5.5rem 0;
}

.project-page-turismo .features-heading {
   margin-bottom: 3rem;
}

.project-page-turismo .features-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   align-items: stretch;
}

.project-page-turismo .feature-card {
   background-color: #ffffff;
   border-radius: 24px;
   padding: 2.5rem 2.25rem;
   border: 1px solid rgba(33, 30, 73, 0.08);
   box-shadow: 0 12px 32px rgba(33, 30, 73, 0.06);
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
   opacity: 0;
   transform: translateY(24px);
   transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.35s ease,
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-page-turismo .reveal.active .feature-card {
   opacity: 1;
   transform: translateY(0);
}

.project-page-turismo .reveal.active .feature-card:nth-child(1) {
   transition-delay: 0s, 0s, 0s, 0.05s;
}

.project-page-turismo .reveal.active .feature-card:nth-child(2) {
   transition-delay: 0s, 0s, 0s, 0.15s;
}

.project-page-turismo .reveal.active .feature-card:nth-child(3) {
   transition-delay: 0s, 0s, 0s, 0.25s;
}

.project-page-turismo .reveal.active .feature-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 22px 48px rgba(33, 30, 73, 0.12);
   border-color: rgba(33, 30, 73, 0.18);
}

.project-page-turismo .feature-card-top {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   margin-bottom: 1.75rem;
}

/* Circular icon badge matching the accent + dark purple motif */
.project-page-turismo .feature-icon-badge {
   width: 68px;
   height: 68px;
   border-radius: 50%;
   background-color: var(--accent);
   border: 2px solid rgba(255, 255, 255, 0.85);
   color: var(--text-dark);
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 10px 24px rgba(238, 206, 230, 0.65), 0 4px 12px rgba(33, 30, 73, 0.06);
   transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.4s ease;
   flex-shrink: 0;
}

.project-page-turismo .feature-card:hover .feature-icon-badge {
   transform: scale(1.08) rotate(-3deg);
   box-shadow: 0 14px 30px rgba(238, 206, 230, 0.8), 0 6px 16px rgba(33, 30, 73, 0.08);
}

.project-page-turismo .feature-index {
   font-family: var(--font-main);
   font-size: 0.85rem;
   font-weight: 600;
   letter-spacing: 0.06em;
   color: rgba(33, 30, 73, 0.25);
   transition: color 0.3s ease;
}

.project-page-turismo .feature-card:hover .feature-index {
   color: rgba(33, 30, 73, 0.6);
}

.project-page-turismo .feature-card-title {
   font-family: var(--font-main);
   font-size: 1.35rem;
   font-weight: 600;
   line-height: 1.25;
   letter-spacing: -0.3px;
   color: var(--text-dark);
   margin: 0 0 0.85rem 0;
}

.project-page-turismo .feature-card-desc {
   font-size: 1rem;
   line-height: 1.65;
   color: rgba(33, 30, 73, 0.82);
   font-weight: 300;
   margin: 0;
}

@media (max-width: 992px) {
   .project-page-turismo .features-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
   }

   .project-page-turismo .feature-card {
      padding: 2rem 1.75rem;
   }
}

/* ==========================================================================
   LA SOLUCIÓN — INTERACTIVE 3D PHONE FLIP SHOWCASE (Linktree-inspired)
   ========================================================================== */

.project-page-turismo .project-solution-flip {
   padding: 5.5rem 0 6.5rem;
   overflow: hidden;
}

.project-page-turismo .solution-flip-header {
   max-width: 820px;
   margin: 0 auto 1.5rem;
   text-align: center;
}

.project-page-turismo .solution-flip-heading {
   text-align: center;
   margin-bottom: 1.25rem;
}

.project-page-turismo .solution-flip-lead {
   font-size: var(--font-size-p);
   line-height: 1.65;
   color: rgba(33, 30, 73, 0.85);
   font-weight: 300;
   text-align: center;
   margin: 0;
}

.project-page-turismo .solution-flip-grid {
   display: grid;
   grid-template-columns: 1fr 1.05fr;
   gap: 4.5rem;
   align-items: center;
   max-width: 1040px;
   margin: 0 auto;
}

/* Left Column: 3D Phone Stage */
.project-page-turismo .solution-phone-column {
   position: relative;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 0;
}

.project-page-turismo .phone-ambient-glow {
   position: absolute;
   width: 390px;
   height: 390px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(238, 206, 230, 0.72) 0%, rgba(238, 206, 230, 0.22) 52%, transparent 74%);
   top: 44%;
   left: 50%;
   transform: translate(-50%, -50%);
   pointer-events: none;
   z-index: 0;
}

/* Interactive 3D Phone Button */
.project-page-turismo .phone-flip-stage {
   position: relative;
   z-index: 2;
   background: transparent;
   border: none;
   padding: 0;
   cursor: pointer;
   perspective: 1400px;
   outline: none;
   display: block;
}

.project-page-turismo .phone-tilt-wrapper {
   display: block;
   width: 286px;
   aspect-ratio: 778 / 1569;
   transform-style: preserve-3d;
   transform: rotateY(-8deg) rotateX(3deg);
   transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-page-turismo .phone-flip-stage:hover .phone-tilt-wrapper,
.project-page-turismo .phone-flip-stage:focus-visible .phone-tilt-wrapper {
   transform: rotateY(0deg) rotateX(0deg) translateY(-6px) scale(1.02);
}

.project-page-turismo .phone-flipper {
   position: relative;
   display: block;
   width: 100%;
   height: 100%;
   transform-style: preserve-3d;
   transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
   will-change: transform;
}

.project-page-turismo .phone-face {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
}

.project-page-turismo .phone-face-front {
   transform: rotateY(0deg);
}

.project-page-turismo .phone-face-back {
   transform: rotateY(180deg);
}

.project-page-turismo .phone-face img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   display: block;
   filter: drop-shadow(0 26px 42px rgba(33, 30, 73, 0.22));
   user-select: none;
   -webkit-user-drag: none;
}

/* Controls Bar aligned under Phone: Abrir galeria (left) & Arrows (right) */
.project-page-turismo .phone-controls-bar {
   position: relative;
   z-index: 2;
   width: 286px;
   max-width: 100%;
   margin-top: 2rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.75rem;
}

.project-page-turismo .phone-controls-bar .btn-open-gallery {
   padding: 0.6rem 1.25rem;
   font-size: 0.9rem;
}

/* Right Column: Dynamic Screen Description */
.project-page-turismo .solution-content-column {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   justify-content: center;
   max-width: 480px;
}

.project-page-turismo .solution-screen-meta {
   width: 100%;
   transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-page-turismo .solution-screen-meta.is-updating {
   opacity: 0.25;
   transform: translateY(4px);
}

.project-page-turismo .solution-screen-title {
   font-family: var(--font-main);
   font-size: 1.65rem;
   font-weight: 600;
   line-height: 1.25;
   letter-spacing: -0.4px;
   color: var(--text-dark);
   margin: 0 0 1rem 0;
}

.project-page-turismo .solution-screen-desc {
   font-size: 1.08rem;
   line-height: 1.7;
   color: rgba(33, 30, 73, 0.82);
   font-weight: 300;
   margin: 0;
   min-height: 5.2rem;
}

/* ==========================================================================
   FULLSCREEN GALLERY MODAL — CROPPED MOBILE GRID OVERRIDES
   ========================================================================== */

.project-page-turismo .gallery-modal-grid {
   grid-template-columns: repeat(3, 1fr);
   gap: 2.5rem 2rem;
   max-width: 1120px;
}

.project-page-turismo .gallery-modal-item:first-child {
   grid-column: auto;
}

.project-page-turismo .gallery-modal-img-wrap {
   background: #ffffff;
   padding: 1.5rem;
   border-radius: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.project-page-turismo .gallery-modal-img-wrap img {
   width: auto;
   max-width: 100%;
   max-height: 460px;
   object-fit: contain;
   filter: drop-shadow(0 12px 24px rgba(33, 30, 73, 0.14));
}

@media (max-width: 992px) {
   .project-page-turismo .solution-flip-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
   }

   .project-page-turismo .solution-content-column {
      max-width: 100%;
      align-items: center;
      text-align: center;
   }

   .project-page-turismo .solution-flip-heading {
      text-align: center;
   }

   .project-page-turismo .solution-screen-meta {
      text-align: center;
   }

   .project-page-turismo .gallery-modal-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 640px) {
   .project-page-turismo .phone-tilt-wrapper {
      width: 245px;
   }

   .project-page-turismo .phone-controls-bar {
      width: 245px;
   }

   .project-page-turismo .gallery-modal-grid {
      grid-template-columns: 1fr;
   }
}

.placeholder-box.tall {
   min-height: 500px;
}

.placeholder-box {
   background: #f0f0f0;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-dark);
   font-size: var(--font-size-h4);
}

/* Footer */
footer.trm-footer {
   background-color: var(--bg-light);
   color: var(--text-dark);
   opacity: 1;
}

footer.trm-footer .footer-content {
   border-top: 1px solid #211E49;
   padding-top: 1.5rem;
}