/* =========================================================
   Red de Profesionales — blue theme
   ========================================================= */

body.theme-blue {
  --blue:        #4C71CF;
  --blue-2:      #3a5db8;
  --blue-light:  #eff6ff;
  --blue-soft:   #bfdbfe;
  --blue-text:   #4C71CF;
  --cream:       #f0f5ff;
  background: var(--cream);
}

body.theme-blue .site-header { background: var(--blue); }
body.theme-blue .nav-links a { color: white; }
body.theme-blue .nav-links a.active { border-bottom-color: white; }
body.theme-blue .nav-toggle span,
body.theme-blue .nav-toggle span::before,
body.theme-blue .nav-toggle span::after { background: white; }

/* ---------- HERO ---------- */
.red-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 100px;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  text-align: center;
}
.red-blob {
  position: absolute;
  right: -80px; top: -40px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(76,113,207,0.12);
  z-index: 0;
}
.red-hero-inner { position: relative; z-index: 1; }
.red-icon { width: 200px; height: 200px; margin: 0 auto 24px; }
.red-icon img { width: 100%; height: 100%; object-fit: contain; }
.red-hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.blue-accent {
  color: var(--blue-text);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
  text-decoration-color: rgba(76,113,207,0.4);
}
.red-hero .lead {
  font-size: clamp(17px, 1.8vw, 22px);
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}
.red-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C300,70 900,0 1200,35 L1200,70 L0,70 Z' fill='%23dbeafe'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}

/* ---------- ANIMACIONES ---------- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
.prof-card { opacity: 0; }
.prof-card.animate-left  { animation: slideInLeft  0.65s cubic-bezier(.2,.7,.3,1) forwards; }
.prof-card.animate-right { animation: slideInRight 0.65s cubic-bezier(.2,.7,.3,1) forwards; }

/* ---------- ESPECIALISTAS ---------- */
.especialistas-section {
  position: relative;
  padding: 80px 0 160px;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}
.especialistas-section::after {
  height: 100px;
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C400,70 800,0 1200,50 L1200,70 L0,70 Z' fill='%234C71CF'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}
.especialistas-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.especialistas-sub {
  text-align: center;
  font-size: clamp(15px, 1.5vw, 19px);
  color: #6b7280;
  max-width: 660px;
  margin: 0 auto 56px;
  line-height: 1.6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.prof-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 4px 24px rgba(76,113,207,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 200px;
}
.prof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(76,113,207,0.15);
}
.prof-info { flex: 1; padding: 24px; }
.prof-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.prof-titulo { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.prof-label  { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.prof-esp    { font-size: 13px; color: #4b5563; line-height: 1.55; margin-bottom: 8px; }
.prof-cita {
  font-size: 12px;
  color: var(--blue-text);
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--blue-soft);
  padding-left: 10px;
  margin-top: 8px;
}
.prof-foto {
  width: 180px;
  flex-shrink: 0;
  align-self: stretch;
}
.prof-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: 1fr; }
  .prof-foto { width: 100px; }
}

/* ---------- CÓMO TE SIENTES ---------- */
.sientes-section {
  position: relative;
  padding: 110px 0 110px;
  background: var(--blue);
}

.sientes-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C300,70 900,0 1200,50 L1200,70 L0,70 Z' fill='%23eff6ff'/%3E%3C/svg%3E") no-repeat center bottom / cover;
  z-index: 2;
}
.sientes-inner { position: relative; z-index: 3; }
.sientes-inner h2 {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: .02em;
}
.sientes-form {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}
.form-group label svg { width: 16px; height: 16px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #374151;
  background: white;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group input::placeholder { color: #9ca3af; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid #bfdbfe;
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s, color .2s;
  user-select: none;
}
.tag:hover, .tag.active { background: var(--blue); color: white; border-color: var(--blue); }
.form-row { display: flex; gap: 16px; align-items: flex-end; }
.form-row .form-group { flex: 1; margin-bottom: 0; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: var(--blue-2); transform: translateY(-2px); }
.form-trust { display: flex; gap: 20px; margin-top: 20px; font-size: 13px; color: #6b7280; flex-wrap: wrap; }

@media (max-width: 640px) {
  .form-row { flex-direction: column; }
  .btn-whatsapp { width: 100%; justify-content: center; }
  .sientes-form { padding: 24px; }
}

/* ---------- ÚNETE ---------- */
.unete-section {
  position: relative;
  padding: 110px 0 100px;
  text-align: center;
  background: #eff6ff;
}

.unete-inner {
  position: relative;
  z-index: 1;
  background: var(--blue);
  border-radius: 32px;
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(76,113,207,0.3);
  overflow: hidden;
  text-align: center;
}
.unete-img {
  position: absolute;
  inset: 0;
  background: url('https://shigra.app/FundacionEsperanza/family.jpg') left center / cover no-repeat;
  opacity: 0.2;
  border-radius: 32px;
}
@media (max-width: 640px) {
  .unete-img {
    background-position: center center;
  }
}
.unete-inner h2 {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.unete-inner p {
  font-size: clamp(16px, 1.8vw, 21px);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.btn-unete {
  display: inline-block;
  background: white;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  padding: 18px 48px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-unete:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.sientes-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('https://shigra.app/FundacionEsperanza/crisis.jpg') center / cover no-repeat;
  opacity: 0.15;
}

.unete-inner h2,
.unete-inner p,
.unete-inner .btn-unete {
  position: relative;
  z-index: 2;
}
