/* =========================================================
   HERO / CARRUSEL - Solo página de inicio
   Prefijo "aa-" para no chocar con Bootstrap ni con el resto
========================================================= */

.aa-hero,
.aa-hero * {
    box-sizing: border-box;
}

.aa-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: calc(100vh - var(--aa-hero-header-height, 78px));
    height: calc(100dvh - var(--aa-hero-header-height, 78px));
    overflow: hidden;
    font-family: "Avenir Next", "Poppins", Helvetica, Arial, sans-serif;
}

.aa-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* En teléfono conservar la altura horizontal anterior. */
@media (max-width: 768px) {
    .aa-hero { height: auto; }
    .aa-carousel-container { height: auto; aspect-ratio: 1.85 / 1; }
}

.aa-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    /* Fondo gris de relleno mientras llegan las fotos reales */
    background: #555;
}

.aa-carousel-slide.aa-slide-1 { background: #4a4a4a; }
.aa-carousel-slide.aa-slide-2 { background: #3a3a3a; }
.aa-carousel-slide.aa-slide-3 { background: #2c2c2c; }

.aa-carousel-slide.aa-active {
    opacity: 1;
}

.aa-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.aa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.78) 28%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(0, 0, 0, 0.08) 80%);
}

/* =========================
   HERO CONTENT
========================= */
.aa-hero-content {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 480px;
}

.aa-hero-label {
    display: inline-block;
    color: var(--aa-primary);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 12px;
}

.aa-hero-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--aa-primary);
}

.aa-hero-title {
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.05;
    margin: 0;
}

.aa-hero-title .aa-line {
    display: block;
    font-size: clamp(32px, 4.6vw, 58px);
}

.aa-verse {
    color: white;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    margin-top: 16px;
    padding-bottom: 14px;
    position: relative;
}

.aa-verse::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--aa-primary);
}

.aa-hero-description {
    color: white;
    font-size: 15px;
    line-height: 1.7;
    margin: 14px 0 28px;
    max-width: 420px;
    opacity: 0.95;
}

/* =========================
   BOTONES
========================= */
.aa-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aa-btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    transition: .3s;
    letter-spacing: .5px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
}

.aa-btn-primary {
    background: var(--aa-primary);
    color: white;
}

.aa-btn-primary:hover {
    background: var(--aa-primary-dark);
    color: white;
    transform: translateY(-3px);
}

.aa-btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.aa-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-3px);
}

/* =========================
   DOTS DEL CARRUSEL
========================= */
.aa-carousel-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 55;
}

.aa-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: 0.3s;
}

.aa-dot.aa-active {
    background: var(--aa-primary);
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {
    .aa-hero-content {
        max-width: 420px;
        left: 5%;
    }
}

/* =========================
   MOBILE - conservar el formato horizontal
========================= */
@media (max-width: 768px) {
    .aa-overlay {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, .18) 0%,
                rgba(0, 0, 0, .28) 32%,
                rgba(0, 0, 0, .88) 100%);
    }
    .aa-hero-content {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 60px;
        transform: none;
        max-width: 430px;
        padding-bottom: 0;
    }
    .aa-hero-title .aa-line {
        font-size: clamp(29px, 8vw, 36px);
        line-height: 1.02;
    }
    .aa-hero-label {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .aa-verse {
        font-size: 16px;
        margin-top: 12px;
        padding-bottom: 10px;
    }
    .aa-hero-description {
        font-size: 13px;
        line-height: 1.5;
        margin: 11px 0 18px;
        max-width: 100%;
    }
    .aa-btn {
        padding: 11px 18px;
        font-size: 11px;
    }
    .aa-carousel-dots {
        bottom: 20px;
        gap: 9px;
    }
    .aa-dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .aa-hero-title .aa-line {
        font-size: 29px;
    }
    .aa-hero-label {
        font-size: 13px;
    }
    .aa-verse {
        font-size: 16px;
    }
    .aa-hero-description {
        font-size: 13px;
    }
    .aa-hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 9px;
    }
    .aa-btn {
        padding: 10px 20px;
        font-size: 11px;
        justify-content: center;
        width: auto;
        min-width: 105px;
    }
}

/* Portada: mensaje principal y referencia bíblica. */
.aa-hero-content {
    max-width: 680px;
    top: auto;
    bottom: 48px;
    left: clamp(24px, 4vw, 64px);
    transform: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.aa-hero-title {
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
}
.aa-hero-title .aa-line {
    font-size: clamp(28px, min(5.2vw, 7vh), 64px);
}
.aa-verse {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 500;
    letter-spacing: .025em;
}
.aa-verse::after { content: none; }
.aa-verse::before {
    content: '';
    width: 36px;
    height: 3px;
    flex-shrink: 0;
    background: #b82930;
}
@media (max-width: 768px) {
    .aa-hero-content {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 36px;
        transform: none;
        padding: 0;
    }
    .aa-hero-title .aa-line {
        font-size: clamp(20px, 5vw, 38px);
        line-height: 1.08;
    }
    .aa-verse { margin-top: 10px; font-size: clamp(12px, 2.5vw, 16px); gap: 8px; }
    .aa-verse::before { width: 24px; height: 2px; }
    .aa-carousel-dots { bottom: 12px; }
}
