/* Sitio Dr. Juan Ignacio Calabrese v2.1 - 2026-10-06 */
/* Smile Clinic Inspired Full-Screen Clean Layout for Dr. Calabrese */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --color-cyan: #00b4d8;
  --color-cyan-hover: #0077b6;
  --color-cyan-light: #e0f7fa;
  --color-dark: #1e293b;
}

body {
  font-family: var(--font-main);
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Fullscreen Hero (100vh) */
.hero-100vh {
  min-height: calc(100vh - 80px);
  background: radial-gradient(circle at 80% 50%, #f0f9ff 0%, #e0f2fe 35%, #ffffff 80%);
  position: relative;
  display: flex;
  align-items: center;
}

/* Subtle Clinic Background Backdrop effect */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-portada.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: blur(8px);
  pointer-events: none;
}

/* Doctor Portrait Scaling */
.doctor-portrait-large {
  max-height: 82vh;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.doctor-portrait-large:hover {
  transform: scale(1.02);
}

/* Cyan CTA Button */
.btn-cyan {
  background-color: #00b4d8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  box-shadow: 0 10px 20px -5px rgba(0, 180, 216, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cyan:hover {
  background-color: #0077b6;
  box-shadow: 0 15px 25px -5px rgba(0, 119, 182, 0.5);
  transform: translateY(-2px);
}

.btn-cyan-outline {
  border: 2px solid #00b4d8;
  color: #00b4d8;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-cyan-outline:hover {
  background-color: #00b4d8;
  color: #ffffff;
}

/* Clean Cards */
.smile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.smile-card:hover {
  border-color: #00b4d8;
  box-shadow: 0 12px 30px rgba(0, 180, 216, 0.12);
  transform: translateY(-4px);
}

/* Tab button states */
.tab-btn-smile {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #64748b;
  transition: all 0.2s ease;
}

.tab-btn-smile:hover {
  border-color: #00b4d8;
  color: #00b4d8;
}

.tab-btn-smile.active {
  background-color: #00b4d8;
  color: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 6px 15px rgba(0, 180, 216, 0.3);
}

/* INFINITE MARQUEE CAROUSEL FOR CERTIFICATES */
.cert-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.cert-marquee-container::before,
.cert-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.cert-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.cert-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.cert-track-right {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeRight 35s linear infinite;
}

.cert-track-left {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeLeft 35s linear infinite;
}

.cert-marquee-container:hover .cert-track-right,
.cert-marquee-container:hover .cert-track-left {
  animation-play-state: paused;
}

/* TESTIMONIALS SEPARATOR MARQUEE */
.test-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
}

.test-marquee-container::before,
.test-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.test-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.test-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.test-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeLeft 28s linear infinite;
}

.test-marquee-container:hover .test-track {
  animation-play-state: paused;
}

.test-card-img {
  width: 300px;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card-img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.15);
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

@keyframes marqueeLeft {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.cert-marquee-card {
  width: 320px;
  flex-shrink: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #00b4d8;
  border-radius: 4px;
}

/* Featured Section Sliders */
.featured-slide {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Antes y Después Marquee Carousel */
.casos-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.casos-marquee-container::before,
.casos-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.casos-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.casos-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.casos-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeLeft 38s linear infinite;
}

.casos-marquee-container:hover .casos-track {
  animation-play-state: paused;
}

.casos-card {
  width: 320px;
  flex-shrink: 0;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE ENHANCEMENTS
   ========================================== */

/* Touch Scroll Performance */
.cert-marquee-container,
.test-marquee-container,
.casos-marquee-container {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Tablets and Mobile Screens (<= 1023px) */
@media (max-width: 1023px) {
  .hero-100vh {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .doctor-portrait-large {
    max-height: 52vh;
    margin: 1.5rem auto 0 auto;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  /* Featured Separator Sliders Height */
  #featured-slider-1,
  #featured-slider-2 {
    height: 360px !important;
  }

  /* Padding adjustments */
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Small Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .cert-marquee-card,
  .casos-card {
    width: 270px;
  }

  .test-card-img {
    width: 250px;
    height: 310px;
  }

  /* Faded edge overlay width reduction for small screens */
  .cert-marquee-container::before,
  .cert-marquee-container::after,
  .test-marquee-container::before,
  .test-marquee-container::after,
  .casos-marquee-container::before,
  .casos-marquee-container::after {
    width: 25px;
  }

  /* Lightbox Modal Responsive Sizing */
  #cert-modal > div {
    max-height: 96vh;
    margin: 0.5rem;
  }

  #cert-modal-img {
    max-height: 70vh;
  }
}
