/* ============================================================
   BIOMEDIC — Hoja de estilos global
   Incluir en todas las páginas:
   <link rel="stylesheet" href="biomedic.css">
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --teal:      #5bbcb8;
  --teal-light:#e8f7f6;
  --teal-dark: #3a9e9a;
  --dark:      #1a1a1a;
  --gray:      #6b7280;
  --light-bg:  #fafafa;
}

/* ── RESET / BASE ───────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: var(--dark); background: #fff; }
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 12px 0; }
.navbar-brand img { height: 36px; }
.navbar-brand span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--teal); letter-spacing: 1px;
}
.navbar-brand span small {
  color: var(--dark); font-size: 0.55rem; display: block;
  letter-spacing: 3px; font-family: 'DM Sans', sans-serif; text-transform: uppercase;
}
.nav-link { font-size: 0.85rem; color: var(--dark) !important; font-weight: 400; letter-spacing: 0.5px; }
.nav-link:hover,
.nav-item.active .nav-link { color: var(--teal) !important; }
.btn-cart { background: none; border: none; position: relative; }
.btn-cart .badge { position: absolute; top: -4px; right: -4px; background: #e74c3c; font-size: 0.6rem; }

/* ── HERO — Página inicio (con imagen a la derecha) ─────────── */
.hero-home {
  position: relative; overflow: hidden;
  height: 70vh; min-height: 420px;
  background: linear-gradient(135deg, #d4eae9 0%, #b5d8d6 50%, #8cc8c4 100%);
  display: flex; align-items: center;
}
.hero-home .hero-img {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 50%;
  object-fit: cover; object-position: top;
}
.hero-home .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.85) 35%, rgba(255,255,255,0.1) 70%);
}
.hero-home .hero-content { position: relative; z-index: 2; }
.hero-home .hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--dark); line-height: 1.1; }
.hero-home .hero-content p  { font-size: 1rem; color: var(--gray); max-width: 380px; }

/* ── HERO — Páginas interiores (imagen de fondo + texto centrado) */
.hero {
  position: relative; overflow: hidden;
  height: 60vh; min-height: 340px;
  background: #1a2a2a;
}
.hero.hero-short { height: 55vh; min-height: 300px; }
.hero.hero-xs    { height: 50vh; min-height: 280px; }

.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.hero.opacity-45 img { opacity: 0.45; }
.hero.opacity-55 img { opacity: 0.55; }

.hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 50px 0; color: #fff; text-align: center;
}
.hero-text.centered { justify-content: center; align-items: center; }
.hero-text h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; }
.hero-text p  { font-size: 1.1rem; opacity: 0.85; margin-top: 6px; }

/* ── TIPOGRAFÍA DE SECCIÓN ──────────────────────────────────── */
.section-title    { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; color: var(--dark); }
.section-subtitle { color: var(--gray); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }
.s-title          { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; color: var(--dark); }
.intro-text       { font-size: 1.05rem; line-height: 1.8; color: var(--gray); max-width: 640px; margin: 0 auto; text-align: center; }

/* ── CAJAS DE INTRO / INFO ──────────────────────────────────── */
.intro-box {
  background: var(--teal-light); border-radius: 14px;
  padding: 20px 28px; font-size: 1rem; line-height: 1.7; color: var(--dark);
  text-align: center; max-width: 680px; margin: 0 auto;
}
.intro-box.left-border {
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  text-align: left;
}
.info-box {
  background: var(--teal-light); border-radius: 14px;
  padding: 18px 24px; font-size: 0.92rem; line-height: 1.7; color: var(--dark);
}

/* ── AGENDA CTA ─────────────────────────────────────────────── */
.agenda-cta {
  background: var(--dark); color: #fff; border-radius: 20px;
  padding: 28px; display: flex; align-items: center; justify-content: center; gap: 16px;
  text-decoration: none; margin: 0 auto; width: 80%;
}
.agenda-cta i    { font-size: 1.8rem; color: var(--teal); }
.agenda-cta span { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; }
.agenda-cta:hover { background: #2d2d2d; color: #fff; }

/* ── BOTONES ────────────────────────────────────────────────── */
.whatsapp-btn {
  background: #25D366; color: #fff; border: none; border-radius: 50px;
  padding: 12px 24px; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s; text-decoration: none;
}
.whatsapp-btn:hover { background: #128c4e; color: #fff; }

.btn-whatsapp {
  background: #25D366; color: #fff; border: none; border-radius: 50px;
  padding: 14px 36px; font-size: 0.95rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s; text-decoration: none; width: 100%;
}
.btn-whatsapp:hover { background: #128c4e; color: #fff; }

.btn-zona {
  display: inline-block; margin-top: 12px; padding: 7px 20px;
  background: var(--teal-light); color: var(--teal-dark); border: none;
  border-radius: 50px; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.btn-zona:hover { background: var(--teal); color: #fff; }

.btn-submit {
  background: var(--dark); color: #fff; border: none; border-radius: 50px;
  padding: 14px 36px; font-size: 0.95rem; font-weight: 500;
  transition: background 0.2s, transform 0.2s; width: 100%; cursor: pointer;
}
.btn-submit:hover { background: var(--teal); transform: translateY(-2px); }

/* ── PROCEDIMIENTOS CARDS (inicio) ─────────────────────────── */
.proc-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3/4;
}
.proc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(91,188,184,0.25); }
.proc-card img   { width: 100%; height: 100%; object-fit: cover; }
.proc-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85), transparent);
  padding: 40px 16px 16px; color: #fff;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.3px;
}

/* ── ASESORÍA (inicio) ──────────────────────────────────────── */
.asesoria-section { background: var(--light-bg); }
.asesoria-img             { border-radius: 20px; overflow: hidden; }
.asesoria-img img         { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* ── COMO FUNCIONA (inicio) ─────────────────────────────────── */
.step-icon {
  width: 70px; height: 70px; border-radius: 16px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.step-icon i { font-size: 1.6rem; color: var(--teal); }
.step-label  { font-size: 0.85rem; font-weight: 500; color: var(--dark); text-align: center; }

/* ── GIFTCARD (inicio) ──────────────────────────────────────── */
.giftcard-slide {
  background: var(--teal-light); border-radius: 20px; overflow: hidden;
  display: flex; align-items: center;
}
.giftcard-img {
  width: 140px; min-width: 140px; 
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.giftcard-info        { padding: 24px; }
.giftcard-info h4     { font-size: 1.3rem; margin-bottom: 4px; }
.giftcard-price       { font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); }
.carousel-control-prev,
.carousel-control-next {
  width: 36px; height: 36px; background: var(--teal); border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}

/* ── OPINIONES / STARS (inicio) ─────────────────────────────── */
.stars-row        { color: #f4a800; }
.rating-big       { font-size: 2.5rem; font-weight: 700; color: var(--dark); }
.opinion-bar      { height: 6px; background: #e5e7eb; border-radius: 3px; }
.opinion-bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }

/* ── QUIÉNES SOMOS — Especialistas ─────────────────────────── */
.esp-title {
  background: var(--dark); color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; text-align: center;
  padding: 14px 40px;  display: inline-block;
}
.doc-featured {
  display: flex; align-items: center; gap: 28px;
  background: var(--light-bg); border-radius: 20px; padding: 28px; flex-wrap: wrap;
}
.doc-featured-img {
  width: 130px; height: 130px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 3px solid var(--teal);
}
.doc-featured-img img  { width: 100%; height: 100%; object-fit: cover; }
.doc-featured-info h4  { font-size: 1.4rem; margin-bottom: 2px; }
.doc-role   { color: var(--teal); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.5px; }
.doc-sub    { color: var(--gray); font-size: 0.82rem; }
.instagram-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; margin-top: 8px; text-decoration: none;
}
.doc-card          { text-align: center; }
.doc-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 12px; border: 2px solid var(--teal-light); position: relative;
}
.doc-avatar img          { width: 100%; height: 100%; object-fit: cover; }
.doc-avatar.empty        { background: var(--teal-light); display: flex; align-items: center; justify-content: center; }
.doc-avatar.empty i      { font-size: 2rem; color: var(--teal); }
.doc-card h5             { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.doc-card .specialty     { font-size: 0.78rem; color: var(--gray); line-height: 1.4; }
.instagram-sm            { font-size: 0.72rem; color: #bc1888; margin-top: 4px; }
.convenio-box {
  background: #e5e7eb; border-radius: 10px; height: 70px;
  display: flex; align-items: center; justify-content: center;
}

/* ── ARMONIZACIÓN — Tratamientos ────────────────────────────── */
.treat-card {
  border-radius: 20px; overflow: hidden; border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}
.treat-title {
  background: var(--teal); color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  padding: 10px 24px; border-radius: 50px;
  display: inline-block; margin-bottom: 16px;
}
.treat-title.dark { background: var(--dark); }
.treat-img        { width: 100%; height: 350px; object-fit: cover; border-radius: 14px; }
.treat-list       { list-style: none; padding: 0; margin: 0; }
.treat-list li    { padding: 4px 0; font-size: 0.9rem; color: var(--gray); }
.treat-list li::before { content: "•"; color: var(--teal); font-weight: bold; margin-right: 8px; }
.treat-label      { font-size: 0.78rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.book-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal-light);
  border: none; display: flex; align-items: center; justify-content: center;
  color: var(--teal); cursor: pointer; transition: background 0.2s;
}
.book-btn:hover { background: var(--teal); color: #fff; }

/* ── ODONTOLOGÍA — Servicios ────────────────────────────────── */
.service-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px; border-radius: 20px; background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(91,188,184,0.15); }
.service-img        { width: 140px; min-width: 140px; height: 140px; border-radius: 14px; overflow: hidden; }
.service-img img    { width: 100%; height: 100%; object-fit: cover; }
.service-info h3    { font-size: 1.4rem; margin-bottom: 8px; }
.service-info p     { font-size: 0.9rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* ── TRATAMIENTOS CORPORALES ────────────────────────────────── */
.zona-card { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.zona-card:hover    { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(91,188,184,0.18); }
.zona-img           { width: 100%; height: 220px; object-fit: cover; }
.zona-body          { padding: 20px; }
.zona-title         { font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.zona-desc          { font-size: 0.87rem; color: var(--gray); line-height: 1.5; }
.treat-row          { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.treat-row img      { width: 200px; min-width: 200px; height: 240px; object-fit: cover; border-radius: 16px; }
.treat-info h3      { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.treat-info p       { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }
.mela-badge {
  display: inline-block; background: var(--teal-light); color: var(--teal-dark);
  border-radius: 8px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; margin-top: 8px;
}

/* ── CASOS ──────────────────────────────────────────────────── */
.exp-block       { text-align: center; padding: 48px 0; }
.exp-block h2    { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; line-height: 1; }
.exp-block h2 span { color: var(--teal); }
.cases-tab-btn {
  background: none; border: none; padding: 0 0 6px 0;
  font-size: 1rem; font-weight: 500; color: var(--gray); cursor: pointer;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.cases-tab-btn.active { color: var(--dark); border-bottom-color: var(--teal); }
.cases-tab-btn:hover  { color: var(--teal); }
.case-item { border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; }
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-item:hover img { transform: scale(1.05); }
.case-overlay {
  position: absolute; inset: 0; background: rgba(91,188,184,0);
  display: flex; align-items: flex-end; padding: 16px; transition: background 0.3s;
}
.case-item:hover .case-overlay { background: rgba(91,188,184,0.3); }
.case-label { color: #fff; font-weight: 600; font-size: 0.85rem; opacity: 0; transition: opacity 0.3s; }
.case-item:hover .case-label { opacity: 1; }
.cursos-info-box {
  background: var(--teal-light); border-radius: 20px;
  padding: 28px; font-size: 0.92rem; line-height: 1.7; color: var(--dark);
}
.photo-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-radius: 12px; overflow: hidden; }
.photo-mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.3s; }
.photo-mosaic img:hover { opacity: 0.85; }

/* ── CONTACTO ───────────────────────────────────────────────── */
.contact-card  { background: #fff; border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,0.09); padding: 40px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon  {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon i { color: var(--teal); font-size: 1.1rem; }
.contact-info-item h5 {
  font-size: 0.82rem; font-weight: 600; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;
  font-family: 'DM Sans', sans-serif;
}
.contact-info-item p { font-size: 0.95rem; margin: 0; color: var(--dark); }
.form-control,
.form-select   { border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; transition: border-color 0.2s; }
.form-control:focus,
.form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(91,188,184,0.15); }
.form-label    { font-size: 0.85rem; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.map-box {
  background: #e5e7eb; border-radius: 16px; height: 280px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
}
.map-box i { font-size: 2.5rem; color: #9ca3af; }
.map-box p { color: #9ca3af; font-size: 0.88rem; margin: 0; }
.alert-success-custom {
  background: var(--teal-light); border: none; border-radius: 12px; color: var(--teal-dark);
  padding: 16px 20px; font-size: 0.9rem; display: none;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { background: #2d3a3a; color: #c9d6d5; padding: 40px 0 24px; }
footer .brand { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--teal); }
footer nav a  { color: #a0b0af; font-size: 0.85rem; display: block; margin-bottom: 6px; text-decoration: none; }
footer nav a:hover { color: var(--teal); }
footer .social { color: #a0b0af; font-size: 0.85rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero inicio */
  .hero-home              { height: 55vh; }
  .hero-home .hero-img    { width: 100%; opacity: 0.35; }
  .hero-home .hero-overlay { background: rgba(255,255,255,0.7); }
  /* Giftcard */
  .giftcard-slide   { flex-direction: column; }
  .giftcard-img     { width: 100%; min-width: unset; height: 100px; }
}

@media (max-width: 576px) {
  /* Quiénes somos */
  .doc-featured     { justify-content: center; text-align: center; }
  /* Odontología */
  .service-item     { flex-direction: column; }
  .service-img      { width: 100%; min-width: unset; height: 200px; }
  /* Tratamientos */
  .treat-row        { flex-direction: column; }
  .treat-row img    { width: 100%; min-width: unset; height: 200px; }
}
.container {
    max-width: 1080px !important;
}