/* =======================================================
   AGENDA – ESTILOS ESPECÍFICOS (agendar.php)
   Objetivo:
   - Misma lógica que index: secciones en “tarjeta”
   - Cards internas con header + body (como tus tarjetas del index)
======================================================= */

/* =======================================================
   1) VARIABLES (se apoya en styles.css)
======================================================= */

:root {
  /* fallback por si algún valor no existiera */
  --radius-md: 18px;
}

/* =======================================================
   2) BASE DE SECCIÓN (tarjeta grande como en index)
======================================================= */

.agendar-section {
  width: 100%;
  background-color: var(--gray-light);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.713) 0%,
    rgba(239, 245, 241, 0.486) 45%,
    rgba(255, 255, 255, 0.215) 100%
  );
  border-radius: 3rem;

  padding: 2.75rem 4rem 2rem;
}

.agendar-faq-section {
  border-right: 30px solid var(--decoration-green);
}

.agendar-busqueda-section {
  border-left: 30px solid var(--decoration-green);
}

/* Encabezado superior (título + logo) */
.agendar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.agendar-top-logo img {
  height: 90px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.10));
}

.agendar-subtitle {
  margin: 1.25rem 0 0;
  color: rgba(122, 137, 131, 0.92);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 980px;
}

/* =======================================================
   3) CARDS INTERNAS (header + body)
======================================================= */

.agendar-card {
  background: rgba(235, 236, 235, 0.621);
  border: 1px solid rgba(122, 137, 131, 0.22);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.agendar-card-head {
  padding: 1.1rem 1.2rem 0.9rem;
  border-bottom: 1px solid rgba(122, 137, 131, 0.16);
  background: var(--green-dark);
}

.agendar-card-head h3 {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.828) ;
}

.agendar-card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.566);
}

.card-subtitle {
  font-size: 0.9rem;
}

.agendar-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.antes-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1.1rem 0;
  justify-content: center;
  align-content: center;
  
}

.agendar-logo-circle {
  padding-top: 0.65rem;
  margin: 0;


}

.agendar-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.agendar-bullets li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(29, 31, 30, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
}

.agendar-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-lemon), var(--green-dark));
}

/* Nota mini con ícono */
.agendar-mini-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(195, 207, 203, 0.30);
  border: 1px solid rgba(122, 137, 131, 0.18);
}

.agendar-mini-note .material-symbols-outlined {
  font-size: 20px;
  color: var(--green-lemon);
  line-height: 1;
  margin-top: 2px;
}

.agendar-mini-note p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(29, 31, 30, 0.80);
}

/* =======================================================
   4) STEPS
======================================================= */

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--decoration-green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.agendar-steps {
  display: grid;
  gap: 0.85rem;
}

.agendar-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

/* =======================================================
   5) FAQ (acordeón)
======================================================= */

#preguntas {
  padding: 4rem;
}

.agendar-section-head {
  margin-bottom: 2rem;
}

.agendar-accordion .accordion-item {
  border: 1px solid rgba(122, 137, 131, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(249, 250, 249, 0.938);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.agendar-accordion .accordion-item + .accordion-item {
  margin-top: 1rem;
}

.agendar-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.92rem;
}

.agendar-accordion .accordion-button:not(.collapsed) {
  background-color: var(--green-dark);
  color: rgba(234, 247, 241, 0.851);
}

.accordion-button:active, .accordion-button:hover {
  border-bottom: 5px solid var(--green-dark);
}

.agendar-accordion .accordion-body {
  font-size: 0.92rem;
  color: rgba(29, 31, 30, 0.85);
  line-height: 3;
}

/* =======================================================
   6) PANEL BUSCADOR (form + side card)
======================================================= */

.agendar-panel {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.agendar-form-card {
  background: rgba(235, 236, 235, 0.88);
  border: 1px solid rgba(122, 137, 131, 0.22);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Form layout */
.agendar-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  padding-top: 2rem;
}

.agendar-field .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(29, 31, 30, 0.80);
  margin-bottom: 0.35rem;
}

.form-lable {
  align-items: center;
  text-align: center;
}

.agendar-field  input {
  font-size: 0.75rem;
}

.agendar-select {
  font-size: 0.75rem;
}

/* Inputs estilo “pill” como tu index */
.agendar-input,
.agendar-select {
  width: 100%;
  height: 46px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(122, 137, 131, 0.35);
  background: rgba(235, 236, 235, 0.92);
  box-shadow: 0 10px 20px -18px rgba(0, 0, 0, 0.35);
  color: rgba(29, 31, 30, 0.88);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.agendar-input::placeholder {
  color: rgba(122, 137, 131, .92);
}

.agendar-input:focus,
.agendar-select:focus {
  border-color: rgba(65, 106, 90, .55);
  box-shadow:
    0 0 0 4px rgba(65, 106, 90, .16),
    0 18px 38px -26px rgba(0, 0, 0, .55);
  transform: translateY(-1px);
}

.agendar-select {
  padding-right: 2.2rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(65, 106, 90, .55) 50%),
    linear-gradient(135deg, rgba(65, 106, 90, .55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Botón */
.agendar-btn {
  height: 46px;
  border: none;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: .02em;
  color: var(--gray-light);
  background-color: var(--green-lemon);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}

.agendar-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 52px -26px rgba(0, 0, 0, .65);
}

.agenda-privacy {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(29, 31, 30, 0.65);
  line-height: 1.5;
  margin-top: 0.35rem;
}

/* Side card */
.agendar-side-card .material-symbols-outlined {
  font-size: 22px;
  color: var(--green-lemon);
}

/* Tip */
.agendar-tip {
  background-color: rgba(195, 207, 203, 0.28);
  border-left: 4px solid var(--green-lemon);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
}

/* WhatsApp button inside side card */
.agendar-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(29, 31, 30, 0.92);
  color: var(--gray-light);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.agendar-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  color: var(--green-light);
}

/* =======================================================
   7) MINI CARDS (confianza)
======================================================= */

.agendar-mini-card {
  background: rgba(235, 236, 235, 0.82);
  border-radius: 22px;
  border: 1px solid rgba(122, 137, 131, 0.18);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.agendar-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

/* =======================================================
   8) CTA final
======================================================= */

.agendar-cta-inner {
  background: rgba(235, 236, 235, 0.86);
  border: 1px solid rgba(122, 137, 131, 0.18);
  border-radius: 28px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

/* =======================================================
   9) RESPONSIVE
======================================================= */

@media (max-width: 992px) {
  .agendar-panel {
    grid-template-columns: 1fr;
  }

  .agendar-form {
    grid-template-columns: 1fr 1fr;
  }

  .agendar-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .agendar-section {
    border-radius: 1.5rem;
    padding: 1.1rem;
  }

  .agendar-hero-section,
  .agendar-faq-section,
  .agendar-busqueda-section {
    border-left: none;
    border-right: none;
  }

  .agendar-form {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .agendar-subtitle {
    font-size: 0.9rem;
  }
}

/* ================================
   SWEETALERT – CEM CUSTOM STYLE
   ================================ */

   .cem-alert {
    border-radius: 20px !important;
    padding: 0.5rem 2.2rem 2.5rem !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18) !important;
    font-family: 'Instrument Sans', sans-serif;
  }
  
  .cem-alert-title {
    font-size: 1.8rem !important;
    font-weight: 600;
    color: #2f2f2f;
  }
  
  .cem-alert-text {
    font-size: 1.05rem;
    color: #6a6a6a;
    margin-top: 0.5rem;
  }
  
  .cem-alert-btn {
    background-color: #4f6b3a !important; /* verde clínica */
    color: #ffffff !important;
    padding: 0.6rem 2.2rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
  }
  
  .cem-alert-btn:hover {
    background-color: #3e562f !important;
    transform: translateY(-1px);
  }


  @media (max-width: 992px) {
  .cem-alert {
    max-width: 460px !important;
    padding: 2.2rem 2rem !important;
  }

  .cem-alert-title {
    font-size: 1.6rem !important;
  }

  .cem-alert-text {
    font-size: 1rem;
  }

  .cem-alert-btn {
    padding: 0.55rem 2rem !important;
    font-size: 0.9rem;
  }
}
@media (max-width: 576px) {
  .cem-alert {
    max-width: 90vw !important;
    padding: 1.8rem 1.5rem !important;
    border-radius: 16px !important;
  }

  .cem-alert-title {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }

  .cem-alert-text {
    font-size: 0.95rem;
  }

  .cem-alert-btn {
    width: 100%;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem;
  }
}

