/* =============================================================================
   Proyecto : AgendaWebCitas - FrontEnd
   Archivo  : css/28-pages-pagina01-home.css
   Propósito:
     Estilos visuales de la Página 01 (pantalla inicial),
     con rediseño de card central y beneficios inferiores.

   Criterios de diseño:
     - Mantener coherencia visual con Página 03.
     - Mantener paleta original del sistema en botones:
         fondo blanco + borde azul + texto azul.
     - Conservar proporciones modernas del rediseño.
     - No afectar otras páginas del proyecto.
   ============================================================================= */

/* ===== CONTENEDOR GENERAL ===== */
.p01-home {
  width: 100%;
  padding: 56px 24px 40px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.p01-home__shell {
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ===== CARD PRINCIPAL ===== */
.p01-hero-card {
  width: 100%;
  max-width: 1060px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  padding: 34px 38px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p01-hero-icon-wrap {
  margin-bottom: 14px;
}

.p01-hero-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef5fd 0%, #e8f1fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p01-hero-icon {
  width: 42px;
  height: 42px;
  color: #2b3443;
}

.p01-hero-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.p01-hero-title-accent {
  width: 116px;
  height: 3px;
  border-radius: 999px;
  background: #1f80e0;
  margin: 14px 0 16px;
}

.p01-hero-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #4b5563;
  max-width: 640px;
}

/* ===== BOTONES DE ACCIÓN ===== */
.p01-hero-actions {
  margin-top: 28px;
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
  justify-content: center;
}

.p01-action-btn {
  min-height: 84px;
  padding: 18px 24px;
  border-radius: 14px;
  border: 2px solid #2f5f96;
  background: #ffffff;
  color: #1f2c3f;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease;
  box-sizing: border-box;
  text-align: left;
}

.p01-action-btn:hover {
  background: #f7fbff;
  border-color: #1f80e0;
  color: #174f87;
  box-shadow: 0 6px 18px rgba(31, 128, 224, 0.10);
}

.p01-action-btn:focus-visible {
  outline: none;
  border-color: #1f80e0;
  box-shadow:
    0 0 0 3px rgba(31, 128, 224, 0.18),
    0 6px 18px rgba(31, 128, 224, 0.10);
}

.p01-action-btn:active {
  transform: translateY(1px);
}

.p01-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.p01-action-btn__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2b3443;
}

.p01-action-btn__icon svg {
  width: 28px;
  height: 28px;
}

.p01-action-btn__text {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.01em;
}

/* ===== NOTA INFORMATIVA ===== */
.p01-hero-note {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.p01-hero-note__icon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid #8ab5ea;
  color: #69a2e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
}

.p01-hero-note__text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: #6b7280;
}

/* ===== BENEFICIOS ===== */
.p01-benefits {
  width: 100%;
  max-width: 1060px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.p01-benefit {
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 102px;
}

.p01-benefit:not(:last-child) {
  border-right: 1px solid #e5ebf2;
}

.p01-benefit__icon {
  width: 34px;
  height: 34px;
  color: #2b3443;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p01-benefit__icon svg {
  width: 30px;
  height: 30px;
}

.p01-benefit__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p01-benefit__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
}

.p01-benefit__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #4b5563;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .p01-home {
    padding: 40px 18px 30px;
  }

  .p01-hero-card {
    padding: 28px 24px 24px;
  }

  .p01-hero-actions {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .p01-benefits {
    grid-template-columns: 1fr;
  }

  .p01-benefit:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e5ebf2;
  }
}

@media (max-width: 640px) {
  .p01-hero-title {
    font-size: 24px;
  }

  .p01-hero-subtitle {
    font-size: 15px;
  }

  .p01-action-btn {
    min-height: 76px;
    padding: 16px 18px;
  }

  .p01-action-btn__text {
    font-size: 16px;
  }

  .p01-hero-card {
    border-radius: 16px;
  }
}