/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f2f2f2; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Wrapper */
.wrapper {
  max-width: 960px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  padding-bottom: 40px;
}

/* Navegación */
nav { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 20px 40px; }
nav .logo img { width: 100px; height: auto; }
nav ul { display: flex; gap: 30px; }
nav a { font-weight: bold; font-size: 0.95rem; color: #333; }
nav a:hover { color: #007bff; }
nav a:focus { outline: 2px dashed #007bff; outline-offset: 2px; }

/* Header */
header { padding: 60px 40px 40px; }
.header-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
@media (min-width: 768px) {
  .header-content { flex-direction: row; align-items: center; text-align: left; }
}
.profile-img { width: 400px; height: 400px; border-radius: 50%; object-fit: cover; }
.intro h1 { font-size: 2.5rem; margin-bottom: 10px; }
.subtitle { font-size: 1.2rem; font-style: italic; color: #555; margin-bottom: 10px; }
.tagline { font-size: 1rem; color: #666; margin-bottom: 20px; }
.btn { padding: 12px 24px; border-radius: 6px; font-size: 1rem; font-weight: bold; text-align: center; }
.btn.whatsapp { background: #1b9e48; color: #fff; }

/* Divisores */
.section-divider { border: none; border-top: 1px solid #e0e0e0; margin: 0 40px; }

/* Migas de pan (sin numeración) */
.breadcrumb { font-size: 0.9rem; color: #555; padding: 10px 40px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding-left: 0; }
.breadcrumb li + li::before { content: " / "; color: #999; }

/* Sección Mastología (espaciado clásico) */
.mastologia-section {
  display: flex;
  flex-direction: column;
  padding: 40px;
  gap: 40px;                 /* separación entre texto y tarjetas/FAQ */
}
.mastologia-section .col { flex: 1; padding: 0 20px; }
.mastologia-section h2 { font-size: 1.6rem; margin-bottom: 16px; color: #2c3e50; }
#mastologia p { margin-bottom: 1.5em; line-height: 1.6; }

/* Cards (rosado claro) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;           /* pequeño respiro tras el texto */
  margin-bottom: 22px;       /* separación antes del CTA y divisor */
}
.card {
  background: #fff0f5;       /* rosado claro */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; color: #2c3e50; }
.card p { color: #444; line-height: 1.5; }
.card-link { display: inline-block; margin-top: 10px; font-weight: bold; color: #666; transition: color .2s; }
.card-link:hover { color: #333; text-decoration: underline; }

/* CTA: Ver todos los temas (rosado distinto y accesible) */
.topics-cta { display: flex; justify-content: center; margin: 4px 0 6px; }
.btn-secondary {
  display: inline-block;
  background: #F6D6E5;       /* rosado distinto al de las tarjetas */
  color: #2c3e50;
  border: 1px solid #E7BED0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  text-align: center;
  min-width: 260px;
  transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.btn-secondary:hover { background: #F1C7DB; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn-secondary:active { transform: translateY(1px); }
.btn-secondary:focus { outline: 3px solid #c2185b; outline-offset: 2px; }

/* FAQ */
.faq { margin-top: 8px; }
.faq h3 { margin-bottom: 10px; color: #2c3e50; }
.faq details { border: 1px solid #ddd; border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; background: #fafafa; }
.faq summary { cursor: pointer; font-weight: bold; color: #333; }
.faq p { margin-top: 8px; line-height: 1.5; }

/* Barra de temas */
.topics-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 40px; justify-content: center; }
.topics-nav a { background: #2c3e50; color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: bold; font-size: 0.95rem; transition: background .3s ease; }
.topics-nav a:hover { background: #1a252f; }

/* Contacto */
.contact-section { display: flex; flex-direction: column; padding: 40px; gap: 40px; }
.contact-info, .contact-form { flex: 1; padding: 0 20px; }
@media (min-width: 768px) { .contact-section { flex-direction: row; } }
.contact-list li { margin-bottom: 15px; font-size: 1rem; }
.interest-box { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.interest-box h3 { font-size: 1.2rem; margin-bottom: 10px; color: #2c3e50; }
.interest-box ul { list-style: disc; margin-left: 20px; }
.interest-box li { margin-bottom: 8px; }
.interest-box a:hover { color: #2c3e50; }

/* WhatsApp flotante */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 1000; }
.whatsapp-float img { display: block; }

/* Footer */
footer { background: #fafafa; text-align: center; padding: 20px; font-size: 0.9rem; color: #777; }

/* Responsivo */
@media (max-width: 767px) {
  .breadcrumb { padding: 10px 20px; }
  .mastologia-section { padding: 30px 20px; gap: 32px; }
  .section-divider { margin: 0 20px; }
  .topics-nav { padding: 20px; }
}