/* =========================================================
   SeBienestar · testimonios, blog preview, cta final, footer,
   whatsapp flotante, y bloques compartidos entre páginas internas
   ========================================================= */

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 120px 0;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  position: relative;
  background: var(--fondo);
  border-radius: var(--radius);
  border: 1px solid rgba(35,31,32,0.06);
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
  transition: var(--t);
  outline: none;
}
.testimonial-card:hover,
.testimonial-card:focus-visible,
.testimonial-card.is-open {
  background: var(--verde-profundo);
  color: var(--crema);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde-profundo);
}

.testimonial-short,
.testimonial-full {
  padding: 44px 38px;
  transition: opacity 0.3s ease;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.testimonial-short { opacity: 1; }
.testimonial-full {
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  background: var(--verde-profundo);
  color: var(--crema);
}
.testimonial-card:hover .testimonial-short,
.testimonial-card:focus-visible .testimonial-short,
.testimonial-card.is-open .testimonial-short { opacity: 0; }

.testimonial-card:hover .testimonial-full,
.testimonial-card:focus-visible .testimonial-full,
.testimonial-card.is-open .testimonial-full {
  opacity: 1;
  pointer-events: auto;
}

.t-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 5rem;
  color: var(--lavanda);
  line-height: 0.55;
  margin-bottom: 18px;
  letter-spacing: -0.05em;
}
.testimonial-short p {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--negro);
  flex: 1;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.testimonial-short footer {
  font-size: 0.9rem;
  color: var(--malva);
  padding-top: 18px;
  border-top: 1px solid rgba(35,31,32,0.1);
}
.testimonial-short footer strong {
  display: block;
  color: var(--verde-profundo);
  font-size: 1.02rem;
  margin-bottom: 3px;
  font-weight: 600;
}
.testimonial-short footer span {
  font-style: italic;
  font-size: 0.86rem;
}

.testimonial-full p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(235, 226, 211, 0.92);
  margin-bottom: 12px;
  flex: none;
}
.testimonial-full footer {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--lavanda);
  padding-top: 14px;
  border-top: 1px solid rgba(235, 226, 211, 0.2);
  font-weight: 600;
}

/* ========== BLOG CARDS (preview + índice + archivo) ========== */
.blog-preview { padding: 100px 0; background: var(--fondo); }
.blog-list { padding: 80px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(35,31,32,0.06);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.post-img-link { display: block; }
.post-img {
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lavanda), var(--vino));
}
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img-placeholder { background: linear-gradient(135deg, var(--lavanda), var(--verde-profundo)); }
.post-body { padding: 26px 24px; }
.post-cat {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lavanda);
  background: rgba(165,164,233,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
}
.post-date {
  display: block;
  font-size: 0.78rem;
  color: var(--malva);
  margin-bottom: 8px;
}
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--vino); }
.post-card p {
  font-size: 0.92rem;
  color: var(--malva);
  margin-bottom: 16px;
}

.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 50px;
}
.filter-chip {
  display: inline-block;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(35,31,32,0.1);
  font-size: 0.88rem; cursor: pointer;
  transition: var(--t);
}
.filter-chip.active, .filter-chip:hover {
  background: var(--verde-profundo); color: var(--crema); border-color: var(--verde-profundo);
}
.blog-empty {
  text-align: center; padding: 60px 30px;
  background: #fff; border-radius: var(--radius);
  border: 1px dashed rgba(35,31,32,0.15);
  color: var(--malva);
}
.blog-empty h3 { color: var(--verde-profundo); margin-bottom: 10px; }

.blog-pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid rgba(35,31,32,0.1);
  font-size: 0.9rem; font-weight: 600; color: var(--verde-profundo);
  transition: var(--t);
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--verde-profundo); color: var(--crema); border-color: var(--verde-profundo);
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, var(--vino) 0%, var(--verde-profundo) 100%);
  padding: 90px 0;
  color: var(--crema);
  text-align: center;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { color: var(--crema); }
.final-cta p {
  color: rgba(235, 226, 211, 0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.final-cta .btn-primary {
  background: var(--lavanda);
  color: var(--vino);
}
.final-cta .btn-primary:hover { background: var(--crema); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--negro);
  color: var(--gris-calido);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 40px;
}
.footer-name {
  font-family: 'Archivo Black', sans-serif;
  color: var(--crema);
  margin: 0 0 4px;
  font-size: 1rem;
}
.footer-tag { font-size: 0.85rem; color: var(--gris-calido); }
.site-footer h4 {
  color: var(--crema);
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.site-footer ul a:hover { color: var(--lavanda); }
.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(210, 203, 197, 0.6);
}

/* ========== FLOATING WHATSAPP ========== */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: var(--t);
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.float-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}
.float-wa-label { white-space: nowrap; }

/* ========== PAGE HERO (páginas internas) ========== */
.page-hero { padding: 90px 0 70px; background: var(--fondo); text-align: center; }
.page-hero h1 { max-width: 760px; margin: 12px auto 18px; }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--malva); font-size: 1.1rem; }

/* Variante con foto de fondo (Servicios) */
.page-hero-photo {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.page-hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  z-index: 0;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--fondo) 0%,
    var(--fondo) 32%,
    rgba(244,241,236,0.72) 48%,
    rgba(244,241,236,0.1) 68%,
    transparent 82%);
  z-index: 1;
}
.page-hero-photo .container { position: relative; z-index: 2; }
.page-hero-photo-copy { max-width: 480px; padding: 70px 0; text-align: left; }
.page-hero-photo-copy h1,
.page-hero-photo-copy p { max-width: none; margin-left: 0; text-align: left; }

@media (max-width: 720px) {
  .page-hero-photo { min-height: 0; padding: 0; }
  .page-hero-photo-img { position: relative; height: 260px; object-position: center 30%; }
  .page-hero-scrim { display: none; }
  .page-hero-photo-copy { max-width: none; padding: 32px 0; text-align: center; }
  .page-hero-photo-copy h1,
  .page-hero-photo-copy p { text-align: center; margin: 0 auto; }
  .page-hero-photo-copy h1 { max-width: 100%; }
  .page-hero-photo-copy p { max-width: 100%; }
}

/* ========== QUIÉNES SOMOS: retrato + contenido ========== */
.about-portrait { background: var(--fondo); padding: 0 0 80px; }
.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.portrait-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 460px;
}
.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.portrait-img-wrap::after {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: linear-gradient(135deg, var(--lavanda), var(--verde-claro));
  border-radius: 24px;
  z-index: 1;
  opacity: 0.55;
}
.portrait-text .eyebrow { margin-bottom: 16px; }
.portrait-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.portrait-text p { color: var(--malva); font-size: 1.05rem; margin-bottom: 16px; }
.portrait-stats {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; gap: 36px; flex-wrap: wrap;
  border-top: 1px solid rgba(35,31,32,0.1);
  padding-top: 22px;
}
.portrait-stats li { font-size: 0.92rem; color: var(--malva); }
.portrait-stats strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  color: var(--verde-profundo);
  font-size: 1.4rem; margin-bottom: 4px;
}

.content-section { padding: 70px 0; background: #fff; }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.content-grid .text-block h2 { margin-top: 36px; }
.content-grid .text-block h2:first-child { margin-top: 0; }
.side-card {
  position: sticky; top: 100px;
  background: var(--crema); padding: 32px;
  border-radius: var(--radius); border: 1px solid rgba(35,31,32,0.06);
}
.side-card h3 { margin-bottom: 12px; }
.side-card ul { padding-left: 18px; color: var(--malva); }
.side-card ul li { margin-bottom: 6px; }
.side-card .btn { margin-top: 18px; }

/* ========== SERVICIOS: grid 2x2 ========== */
.services-detail-section { padding: 80px 0 100px; background: var(--fondo); }
.service-detail-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-detail-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(35,31,32,0.06);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.service-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.service-detail-icon {
  font-size: 2.2rem;
  color: var(--lavanda);
  line-height: 1;
}
.service-detail-head .service-tag { font-size: 1.5rem; }
.service-tag { font-family: 'Archivo Black', sans-serif; color: var(--lavanda); line-height: 1; }
.service-detail-card h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.service-detail-card .lead { color: var(--malva); font-size: 1.02rem; margin-bottom: 20px; }
.service-detail-card .checklist { flex: 1; }
.service-detail-card .btn { align-self: flex-start; }
.bullet-label {
  font-weight: 600;
  color: var(--verde-profundo);
  margin-bottom: 10px;
}
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--negro); }
.checklist li::before {
  content: '◆'; position: absolute; left: 0; top: 0;
  color: var(--lavanda); font-size: 0.7rem; line-height: 1.65;
}

/* ========== FAQ ========== */
.faq-section { padding: 20px 0 90px; background: var(--fondo); }
.faq-list { max-width: 820px; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(35,31,32,0.08);
  border-radius: var(--radius);
  padding: 6px 26px;
  margin-bottom: 14px;
  transition: var(--t);
}
.faq-item:hover { border-color: var(--lavanda); }
.faq-item[open] { border-color: var(--verde-profundo); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--verde-profundo);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  color: var(--lavanda);
  transition: var(--t);
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 24px; color: var(--malva); }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-cta {
  background: var(--verde-profundo);
  color: var(--crema);
  padding: 44px 40px;
  border-radius: var(--radius);
  margin-top: 40px;
}
.faq-cta-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}
.faq-cta-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--lavanda);
}
.faq-cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.faq-cta-copy { text-align: left; }
.faq-cta h3 { color: var(--crema); margin-bottom: 6px; }
.faq-cta p { color: rgba(235, 226, 211, 0.85); margin-bottom: 18px; }
.faq-cta .btn-primary { background: var(--lavanda); color: var(--vino); }
.faq-cta .btn-primary:hover { background: var(--crema); }

@media (max-width: 600px) {
  .faq-cta-grid { flex-direction: column; text-align: center; }
  .faq-cta-copy { text-align: center; }
}

@media (max-width: 980px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-img-wrap { max-width: 360px; margin: 0 auto; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .service-detail-grid-2x2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-wa-label { display: none; }
  .float-wa { padding: 14px; }
  .testimonial-card { min-height: 380px; }
  .testimonial-short p { font-size: 1.15rem; }
  .blog-pagination { flex-direction: column; text-align: center; }
  .service-detail-card { padding: 30px 26px; }
}
