/* ===== Layout general ===== */
.as-slider {
    position: relative;
    width: 100%;
    min-height: 80vh;
    color: #ffffff;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.as-slider-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 40px;
    padding: 60px 80px;
}

.as-slider.as-slider--no-left .as-slider-inner {
    grid-template-columns: minmax(0, 1fr);
}

/* ===== Columna izquierda con animaciones ===== */
.as-left {
    max-width: 560px;
    position: relative;
}
.as-title {
    font-size: clamp(42px, 4vw, 64px);
    margin: 0 0 20px;
}
.as-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}
.as-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    border-radius: 4px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

/* Animaciones de entrada/salida */
.as-hero-out-up .as-title,
.as-hero-out-up .as-text,
.as-hero-out-up .as-button {
  animation: heroUpOut 0.35s ease forwards;
}
.as-hero-in-up .as-title,
.as-hero-in-up .as-text,
.as-hero-in-up .as-button {
  animation: heroUpIn 0.35s ease forwards;
}
.as-hero-out-down .as-title,
.as-hero-out-down .as-text,
.as-hero-out-down .as-button {
  animation: heroDownOut 0.35s ease forwards;
}
.as-hero-in-down .as-title,
.as-hero-in-down .as-text,
.as-hero-in-down .as-button {
  animation: heroDownIn 0.35s ease forwards;
}

@keyframes heroUpOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}
@keyframes heroUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroDownOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}
@keyframes heroDownIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Carrusel de tarjetas ===== */
.as-right { position: relative; }
.as-side-slider { width: 100%; }
.as-side-slider .swiper-wrapper { align-items: center; }
.as-side-slider .swiper-slide { display: flex; flex-direction: column; align-items: center; }

.as-card-wrapper { display: flex; flex-direction: column; align-items: center; }
.as-card-title-top {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}

/* Tarjetas uniformes sin sombra ni bordes redondeados */
.as-card {
    position: relative;
    width: 280px;
    height: 380px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transform: none !important;
}
.as-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* ===== Navegación ===== */
.as-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.as-nav button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .as-slider-inner {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }
}
