/* ============================================================
   VIMEDENT — Secciones internas
   (Especialidad, Tecnología, Servicios, Doctor, Horario)
   ============================================================ */

/* ── Base de sección ── */
section {
  padding: var(--section-padding);
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--navy);
  padding: 2.2rem 8vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat-num span { color: var(--aqua); font-size: 1.5rem; }
.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .3rem;
}

/* ══ ESPECIALIDAD ══ */
#especialidad { background: var(--gray); }

.esp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.esp-main-block {
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.esp-main-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border: 40px solid rgba(107,191,212,.15);
  border-radius: 50%;
}
.esp-main-block h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.esp-main-block p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
}
.esp-badge-row {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.esp-badge {
  background: rgba(107,191,212,.2);
  border: 1px solid rgba(107,191,212,.4);
  color: var(--aqua);
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .72rem;
  letter-spacing: .05em;
}

.esp-accent-card {
  margin-top: 1rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.doc-point-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
}
.esp-accent-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue);
}
.esp-accent-card h4 {
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .3rem;
}
.esp-accent-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

.esp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.esp-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: box-shadow .2s, transform .2s;
}
.esp-list li:hover {
  box-shadow: 0 8px 24px rgba(30,95,168,.1);
  transform: translateX(4px);
}
.esp-list-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--light), #c4e3f0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--blue);
}
.esp-list-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
}
.esp-list-text span {
  font-size: .8rem;
  color: var(--muted);
}

/* ══ TECNOLOGÍA ══ */
#tecnologia { background: var(--white); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.tech-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  background: var(--white);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.tech-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.tech-card:hover {
  box-shadow: 0 12px 36px rgba(30,95,168,.12);
  transform: translateY(-4px);
  border-color: var(--aqua);
}
.tech-card:hover::after { transform: scaleX(1); }
.tech-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light), #cce9f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.tech-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .5rem;
}
.tech-card p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ══ SERVICIOS ══ */
#servicios { background: var(--gray); }

.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.serv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.serv-card:hover {
  box-shadow: 0 10px 28px rgba(30,95,168,.1);
  transform: translateY(-3px);
}
.serv-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin: 0 auto 1rem;
}
.serv-card h3 {
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .4rem;
}
.serv-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}
/* Tarjeta de endodoncia destacada */
.serv-highlight {
  background: linear-gradient(145deg, var(--navy), #1a4a8a);
  border-color: transparent;
  color: var(--white);
}
.serv-highlight .serv-icon {
  background: rgba(107,191,212,.25);
}
.serv-highlight h3 { color: var(--white); }
.serv-highlight p { color: rgba(255,255,255,.65); }
.serv-highlight .serv-badge {
  display: inline-block;
  margin-top: .8rem;
  background: rgba(107,191,212,.2);
  border: 1px solid rgba(107,191,212,.4);
  color: var(--aqua);
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .06em;
}

/* ══ DOCTOR ══ */
#doctor { background: var(--white); }

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}
.doc-card {
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-radius: 24px;
  padding: 3rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.doc-card::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 220px; height: 220px;
  border: 50px solid rgba(107,191,212,.1);
  border-radius: 50%;
}
.doc-photo-wrap {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(107,191,212,.5);
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.doc-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ══ GALERÍA ══ */
#galeria { background: var(--gray); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
  min-height: 220px;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,42,82,.7));
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1.2rem 1rem .8rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item img { min-height: 180px; }
}
.doc-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: .3rem;
}
.doc-card .doc-title {
  font-size: .8rem;
  color: var(--aqua);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.doc-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}
.doc-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: .25rem .7rem;
  border-radius: 100px;
  font-size: .72rem;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.doc-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.doc-point-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.doc-point h4 {
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .2rem;
}
.doc-point p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ══ AMBIENT STRIP ══ */
.ambient-strip {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a8a 50%, var(--blue) 100%);
  padding: 4rem 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.ambient-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: .5rem;
}
.ambient-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  line-height: 1.75;
}
.ambient-badges {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.ambient-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem 1rem;
  border-radius: 100px;
  color: var(--white);
  font-size: .82rem;
}

/* ══ HORARIO Y CONTACTO ══ */
#horario { background: var(--gray); }

.horario-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

/* Tabla de horario */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 0 0 .8rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  padding: .75rem 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.schedule-table td:last-child { text-align: right; }
.schedule-table tr:last-child td { border-bottom: none; }
.day-today td { color: var(--blue); font-weight: 500; }
.closed { color: var(--muted); font-size: .85rem; }
.time-slot { color: var(--muted); font-size: .85rem; }

/* Tarjetas de contacto */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.contact-card:hover {
  box-shadow: 0 8px 24px rgba(30,95,168,.1);
  transform: translateX(4px);
}
.contact-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
/* Colores de fondo por red */
.contact-card-icon.wa  { background: #e7f9ee; }
.contact-card-icon.ph  { background: var(--light); }
.contact-card-icon.fb  { background: #e8eeff; }
.contact-card-icon.ig  { background: #fce8f3; }
.contact-card-icon.map { background: #fff4e8; }

.contact-card strong {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
}
.contact-card span {
  font-size: .8rem;
  color: var(--muted);
}

/* ══ MAPA ══ */
#ubicacion { background: var(--white); }
.map-wrap {
  margin-top: 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ══ FOOTER ══ */
footer {
  background: var(--navy);
  padding: 3rem 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .04em;
}
.footer-brand-text span {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--aqua); }
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ══ BOTÓN FLOTANTE DE WHATSAPP ══ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  text-decoration: none;
  font-size: 1.6rem;
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2.5s 2s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}

/* ── Responsive general ── */
@media (max-width: 900px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .esp-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .doc-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .horario-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: var(--section-padding-mobile); }
  footer  { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 2rem 6vw; }
}

.footer-credit {
  font-size: 0.72rem;
  color: #2f8f8b;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.footer-credit a {
  color: #2f8f8b;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: #ffffff;
}