/*
 Theme Name: Hello Elementor Child
 Theme URI: https://elementor.com/hello-theme/
 Description: Child theme for Docta-Rep based on Hello Elementor.
 Author: Brenda / Docta-Rep
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/
 /* ===============================
   DoctaRep – Cards relacionados (Single Product)
================================ */

.dr-related {
  margin-top: 56px;
}

.dr-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111; /* o el negro principal que estés usando */
}

.dr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.dr-related-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.dr-related-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* Imagen */
.dr-related-thumb img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f7f7f7;
  padding: 12px;
}

/* Cuerpo */
.dr-related-body {
  padding: 14px 14px 16px;
}

/* 👉 TÍTULO (acá está el cambio clave) */
.dr-related-name {
  font-size: 14px;          /* antes se veía grande */
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 6px;
}

.dr-related-name a {
  color: #111;              /* color principal DoctaRep */
  text-decoration: none;
}

.dr-related-name a:hover {
  color: #c62828;           /* rojo DoctaRep (ajustalo si usás otro) */
}

/* Meta */
.dr-related-meta {
  font-size: 12px;
  color: #666;
}

/* ===============================
   DoctaRep – Acciones cards relacionadas
================================ */

.dr-related-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Botones base (reutilizables) SOLO para cards relacionadas */
.dr-related .dr-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Ver detalle */
.dr-related .dr-btn-outline {
  color: #111;
  border: 1px solid #ddd;
  background: #fff;
}
.dr-related .dr-btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* WhatsApp */
.dr-related .dr-btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
}
.dr-related .dr-btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}


/* Mobile */
@media (max-width: 480px) {
  .dr-related-actions {
    flex-direction: column;
  }
}

/* ===============================
   DoctaRep – Botones unificados
   (Hero + About + CTA comunes)
================================ */

.dr-hero .dr-btn,
.dr-hero .dr-hero__btn,
.dr-about .dr-btn,
.dr-related .dr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* ✅ mismo tamaño base */
  min-height: 46px;
  padding: 12px 22px;

  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;

  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Si algún style global del theme te estira el botón, esto lo corrige */
.dr-hero .dr-btn,
.dr-hero .dr-hero__btn,
.dr-about .dr-btn {
  width: auto;
}

/* ✅ Mobile: CTAs centrados y prolijos */
@media (max-width: 767px) {
  .dr-hero .dr-hero__ctas,
  .dr-about .dr-ctas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .dr-hero .dr-hero__ctas a,
  .dr-about .dr-ctas a {
    width: min(340px, 100%);
  }
}

/* ===============================
   DoctaRep – Contact Form 7 grid
================================ */

.dr-cf7-grid .dr-cf7-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* opcional: que los <p> no metan márgenes raros */
.dr-cf7-grid .dr-cf7-row > p{
  margin: 0;
}

/* que inputs ocupen todo el ancho */
.dr-cf7-grid input[type="text"],
.dr-cf7-grid input[type="email"],
.dr-cf7-grid input[type="tel"],
.dr-cf7-grid select,
.dr-cf7-grid textarea{
  width: 100%;
  box-sizing: border-box;
}

/* Mobile: 1 columna */
@media (max-width: 767px){
  .dr-cf7-grid .dr-cf7-row{
    grid-template-columns: 1fr;
  }
}

