/* CRONOS-003.4H — Botones finales de Home */

.home-categories + .footer-actions,
.footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 22px;
}

/* Clasificacion y Configuracion */
.footer-actions > :is(button, a, .btn) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  min-width: 210px;
  min-height: 58px;
  padding: 12px 26px;

  border: 2px solid #6945de !important;
  border-radius: 999px !important;

  background: linear-gradient(
    180deg,
    #fdfbff 0%,
    #ebe2ff 100%
  ) !important;

  color: #26204d !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;

  box-shadow:
    0 4px 0 #d4c3fb,
    0 8px 18px rgba(89,58,177,.13),
    inset 0 1px 0 rgba(255,255,255,.9);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
  cursor: pointer;
}

/* Iconos de los dos botones */
.footer-actions > :is(button, a, .btn):nth-child(1)::before {
  content: "🏆";
  font-size: 1.35rem;
  line-height: 1;
}

.footer-actions > :is(button, a, .btn):nth-child(2)::before {
  content: "⚙️";
  font-size: 1.35rem;
  line-height: 1;
}

@media (hover: hover) {
  .footer-actions > :is(button, a, .btn):hover {
    transform: translateY(-2px);
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #e0d0ff 100%
    ) !important;
    box-shadow:
      0 5px 0 #c7b1f6,
      0 12px 24px rgba(89,58,177,.2);
  }
}

.footer-actions > :is(button, a, .btn):active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #c7b1f6,
    0 3px 9px rgba(89,58,177,.15);
}

.footer-actions > :is(button, a, .btn):focus-visible {
  outline: 3px solid #7454eb;
  outline-offset: 4px;
}

/* Modo oscuro */
:root[data-theme="dark"]
.footer-actions > :is(button, a, .btn) {
  background: linear-gradient(
    180deg,
    #403565,
    #30264e
  ) !important;
  color: #f5f0ff !important;
  border-color: #b19bff !important;
  box-shadow: 0 4px 0 #4c3b7f;
}

/* Moviles */
@media (max-width: 580px) {
  .footer-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .footer-actions > :is(button, a, .btn) {
    flex: 1 1 145px;
    min-width: 0;
    min-height: 52px;
    padding: 9px 12px;
    font-size: .91rem;
    gap: 7px;
  }

  .footer-actions > :is(button, a, .btn)::before {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-actions > :is(button, a, .btn) {
    transition: none;
  }
}

/* CRONOS-003.4H.1_UNIFIED_BUTTONS */

/* Sistema visual compartido */
.home-hero .hero-actions > :is(button, a, .btn),
.footer-actions > :is(button, a, .btn) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 11px 24px;

    border: 2px solid #7453e7 !important;
    border-radius: 999px !important;

    background: linear-gradient(
        180deg, #fff 0%, #e9dfff 100%
    ) !important;

    color: #292047 !important;

    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;

    box-shadow:
        0 4px 0 #bea9f8,
        0 8px 18px rgba(89, 58, 177, .18),
        inset 0 1px 0 rgba(255,255,255,.8)
        !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

/* Accion principal: misma geometria, color destacado */
.home-hero .hero-actions > :first-child {
    background: linear-gradient(
        180deg, #7857f1 0%, #5838d6 100%
    ) !important;

    border-color: #5130ca !important;
    color: #fff !important;

    box-shadow:
        0 4px 0 #4228ab,
        0 8px 18px rgba(89, 58, 177, .25),
        inset 0 1px 0 rgba(255,255,255,.25)
        !important;
}

/* Iconos integrados */
.footer-actions > :is(button, a, .btn)::before,
.home-hero .hero-actions > :is(button, a, .btn)::before {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
}

/* Hover uniforme */
@media (hover: hover) {
    .home-hero .hero-actions > :is(button, a, .btn):hover,
    .footer-actions > :is(button, a, .btn):hover {
        transform: translateY(-2px);

        box-shadow:
            0 6px 0 #ac91f0,
            0 13px 25px rgba(89,58,177,.25)
            !important;
    }

    .home-hero .hero-actions > :first-child:hover {
        background: linear-gradient(
            180deg, #8868fa, #6442e5
        ) !important;
    }
}

/* Pulsacion uniforme */
.home-hero .hero-actions > :is(button, a, .btn):active,
.footer-actions > :is(button, a, .btn):active {
    transform: translateY(3px) !important;

    box-shadow:
        0 1px 0 #9f82ed,
        0 3px 8px rgba(89,58,177,.16)
        !important;
}

/* Foco de teclado */
.home-hero .hero-actions > :is(button, a, .btn):focus-visible,
.footer-actions > :is(button, a, .btn):focus-visible {
    outline: 3px solid #7857f1;
    outline-offset: 4px;
}

/* Modo oscuro */
:root[data-theme="dark"]
.home-hero .hero-actions > :not(:first-child),
:root[data-theme="dark"]
.footer-actions > :is(button, a, .btn) {
    background: linear-gradient(
        180deg, #443568, #31264e
    ) !important;

    color: #f5f0ff !important;
    border-color: #ad94fa !important;

    box-shadow:
        0 4px 0 #47336e,
        0 8px 18px rgba(0,0,0,.25)
        !important;
}

/* Pantallas estrechas */
@media (max-width: 580px) {
    .home-hero .hero-actions > :is(button, a, .btn),
    .footer-actions > :is(button, a, .btn) {
        min-height: 48px;
        padding: 10px 15px;
        font-size: .9rem;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero .hero-actions > :is(button, a, .btn),
    .footer-actions > :is(button, a, .btn) {
        transition: none;
    }
}

/* CRONOS-003.4I.1_UNIFIED_ARROWS */

.home-carousel-shell .home-carousel-arrow {
    box-sizing: border-box !important;
    position: absolute;
    top: 42%;
    z-index: 10;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    min-height: 46px;
    padding: 0 !important;

    border: 2px solid #7453e7 !important;
    border-radius: 50% !important;

    background: linear-gradient(
        180deg, #ffffff 0%, #e9dfff 100%
    ) !important;

    color: #6043dd !important;

    /* El simbolo original se sustituye visualmente */
    font-size: 0 !important;
    line-height: 1 !important;
    text-align: center;

    transform: translateY(-50%) !important;

    box-shadow:
        0 4px 0 #bea9f8,
        0 8px 18px rgba(89,58,177,.18),
        inset 0 1px 0 rgba(255,255,255,.8)
        !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

/* Simbolos centrados */
.home-carousel-shell .home-carousel-arrow::before {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.home-carousel-shell .home-prev::before {
    content: "\2039";
}

.home-carousel-shell .home-next::before {
    content: "\203A";
}

/* Posiciones simetricas */
.home-carousel-shell .home-prev {
    left: 8px !important;
    right: auto !important;
}

.home-carousel-shell .home-next {
    right: 8px !important;
    left: auto !important;
}

/* Estados */
.home-carousel-shell .home-carousel-arrow:disabled {
    visibility: hidden;
    pointer-events: none;
}

@media (hover: hover) {
    .home-carousel-shell
    .home-carousel-arrow:hover:not(:disabled) {
        transform: translateY(calc(-50% - 2px)) !important;
        background: linear-gradient(
            180deg, #ffffff, #dfd0ff
        ) !important;

        box-shadow:
            0 6px 0 #ac91f0,
            0 13px 25px rgba(89,58,177,.25)
            !important;
    }
}

.home-carousel-shell
.home-carousel-arrow:active:not(:disabled) {
    transform: translateY(calc(-50% + 3px)) !important;

    box-shadow:
        0 1px 0 #9f82ed,
        0 3px 8px rgba(89,58,177,.16)
        !important;
}

.home-carousel-shell
.home-carousel-arrow:focus-visible {
    outline: 3px solid #7857f1;
    outline-offset: 3px;
}

/* Modo oscuro */
:root[data-theme="dark"]
.home-carousel-shell .home-carousel-arrow {
    background: linear-gradient(
        180deg, #443568, #31264e
    ) !important;

    color: #f5f0ff !important;
    border-color: #ad94fa !important;
}

/* Movil */
@media (max-width: 580px) {
    .home-carousel-shell .home-carousel-arrow {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
        min-height: 42px;
    }

    .home-carousel-shell .home-carousel-arrow::before {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel-shell .home-carousel-arrow {
        transition: none;
    }
}