:root {
    --carrusel-text: #ffffff;
    --carrusel-overlay-from: rgba(25, 14, 11, 0.72);
    --carrusel-overlay-to: rgba(62, 39, 30, 0.4);
    --carrusel-accent: #d8b66d;
    --carrusel-accent-soft: #f0dfbb;
    --carrusel-surface: #f8f3ee;
    --carrusel-surface-strong: #efe5d6;
    --carrusel-max-width: 1200px;
}

#productos,
#historia,
#catalogo,
#contacto {
    scroll-margin-top: calc(var(--navbar-height) + 14px);
}

.carrusel-hero {
    position: relative;
    min-height: clamp(500px, 82vh, 760px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    background: #121012;
}

.carrusel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    background-size: cover;
    background-position: center;
    will-change: opacity, transform;
}

.carrusel-slide.active {
    opacity: 1;
    z-index: 1;
    animation: carruselKenBurns 12s ease-out forwards;
}

@keyframes carruselKenBurns {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.carrusel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse at center 35%,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(20, 14, 9, 0.35) 40%,
        rgba(20, 14, 9, 0.72) 75%,
        rgba(20, 14, 9, 0.88) 100%
    );
}

/* ── Brillo animado que recorre la imagen ── */
.carrusel-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, 0.05) 38%,
        rgba(255, 242, 210, 0.1) 45%,
        rgba(255, 255, 255, 0.05) 52%,
        transparent 68%
    );
    background-size: 250% 100%;
    animation: carruselShine 7s ease-in-out infinite;
}

@keyframes carruselShine {
    0% {
        background-position: 250% 0;
    }
    45% {
        background-position: -50% 0;
    }
    100% {
        background-position: 250% 0;
    }
}

.carrusel-content {
    position: relative;
    z-index: 4;
    width: min(100% - 48px, 980px);
    text-align: center;
    color: var(--carrusel-text);
}

.carrusel-content h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 5.6vw, 4.8rem);
    letter-spacing: 0.6px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 8px 28px rgba(0, 0, 0, 0.28);
}

.carrusel-content .carrusel-subtitle {
    margin-top: 0.4rem;
    font-family: "Great Vibes", cursive;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--carrusel-accent-soft);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.carrusel-content p {
    margin: 1rem auto 0;
    max-width: 680px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.65rem);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.carrusel-actions {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Animaciones de entrada secuencial ── */
.carrusel-content .carrusel-title,
.carrusel-content .carrusel-subtitle,
.carrusel-content .carrusel-actions {
    opacity: 0;
    transform: translateY(28px);
}

.carrusel-content.is-animated .carrusel-title {
    animation: carruselEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carrusel-content.is-animated .carrusel-subtitle {
    animation: carruselEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s
        forwards;
}

.carrusel-content.is-animated .carrusel-actions {
    animation: carruselEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s
        forwards;
}

@keyframes carruselEntrance {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Salida del contenido anterior ── */
.carrusel-content.is-exiting .carrusel-title,
.carrusel-content.is-exiting .carrusel-subtitle,
.carrusel-content.is-exiting .carrusel-actions {
    animation: carruselExit 0.35s ease-in forwards;
}

.carrusel-content.is-exiting .carrusel-subtitle {
    animation-delay: 0s;
}
.carrusel-content.is-exiting .carrusel-actions {
    animation-delay: 0s;
}

@keyframes carruselExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.carrusel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.carrusel-btn i {
    display: inline-block;
    font-size: 0.85em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carrusel-btn:hover i {
    transform: translateX(5px);
}

.carrusel-btn--primary {
    background: var(--carrusel-accent);
    color: #2f1c11;
    box-shadow: 0 4px 18px rgba(216, 182, 109, 0.25);
}

.carrusel-btn--ghost {
    background: transparent;
    color: var(--carrusel-text);
    border-color: rgba(255, 255, 255, 0.65);
}

.carrusel-btn:hover {
    transform: translateY(-3px);
}

.carrusel-btn--primary:hover {
    background: linear-gradient(135deg, #e5c785 0%, #d8b66d 50%, #e5c785 100%);
    box-shadow:
        0 8px 32px rgba(216, 182, 109, 0.45),
        0 0 0 1px rgba(216, 182, 109, 0.3);
}

.carrusel-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carrusel-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.carrusel-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrusel-dot {
    position: relative;
    width: 36px;
    height: 6px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.carrusel-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: var(--carrusel-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.carrusel-dot.active::after {
    transform: scaleX(1);
}

.carrusel-dot.active {
    background: rgba(255, 255, 255, 0.35);
    transform: scaleY(1.3);
}

.carrusel-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.carrusel-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition:
        opacity 0.35s ease,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
    opacity: 0;
}

.carrusel-hero:hover .carrusel-arrow,
.carrusel-hero:focus-within .carrusel-arrow {
    opacity: 1;
}

.carrusel-arrow-left {
    left: 24px;
    transform: translateY(-50%) translateX(-8px);
}

.carrusel-hero:hover .carrusel-arrow-left,
.carrusel-hero:focus-within .carrusel-arrow-left {
    transform: translateY(-50%) translateX(0);
}

.carrusel-arrow-right {
    right: 24px;
    transform: translateY(-50%) translateX(8px);
}

.carrusel-hero:hover .carrusel-arrow-right,
.carrusel-hero:focus-within .carrusel-arrow-right {
    transform: translateY(-50%) translateX(0);
}

.carrusel-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-50%) scale(1.06);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.carrusel-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 6px;
}

.carrusel-slide.exit {
    opacity: 0;
    z-index: 0;
}

.historia-section {
    background: linear-gradient(180deg, #f7f1e8 0%, #f6efe6 100%);
    padding: 68px 20px;
}

.historia-inner {
    width: min(100%, var(--carrusel-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    gap: 50px;
    align-items: start;
}

.historia-copy,
.historia-side {
    animation: historiaFadeIn 0.7s ease both;
}

.historia-side {
    animation-delay: 0.12s;
}

.historia-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Playfair Display", serif;
    color: #442f25;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.historia-title i {
    color: var(--carrusel-accent);
    font-size: 0.72em;
}

.historia-title__line {
    flex: 1;
    max-width: 84px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(216, 182, 109, 0) 0%,
        rgba(216, 182, 109, 1) 55%,
        rgba(216, 182, 109, 0) 100%
    );
}

.historia-text {
    margin-top: 1.35rem;
    font-family: "Lato", sans-serif;
    color: #4c3a30;
    font-size: 1.2rem;
    line-height: 1.62;
}

.historia-text p {
    margin: 0 0 1.1rem;
}

.historia-text strong {
    color: #3f2d22;
}

.historia-text em {
    color: #ba9444;
    font-style: italic;
    font-weight: 700;
}

.historia-text p:first-child::first-letter {
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    line-height: 0.86;
    color: #bf9b52;
}

.historia-separator {
    border: 0;
    border-top: 1px solid rgba(191, 155, 82, 0.7);
    margin: 2rem 0 1.5rem;
}

.historia-awards h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    color: #3f2c22;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
}

.historia-awards h3 i {
    color: #c7a451;
    margin-right: 8px;
}

.historia-awards ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.historia-awards li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: #4f3b31;
    font-family: "Lato", sans-serif;
    font-size: 1.12rem;
    line-height: 1.45;
}

.historia-awards li i {
    color: #c7a451;
    margin-top: 0.18rem;
    width: 18px;
    text-align: center;
}

.historia-image {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(58, 35, 24, 0.17);
    border: 1px solid rgba(80, 53, 39, 0.12);
}

.historia-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.historia-values {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.historia-card {
    background: #fffaf2;
    border: 1px solid #d9bb81;
    border-radius: 12px;
    padding: 1rem 0.95rem;
    box-shadow: 0 8px 20px rgba(121, 90, 45, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.historia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(121, 90, 45, 0.14);
    background: #fff6e8;
}

.historia-card h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Playfair Display", serif;
    color: #4a3327;
    font-size: 1.4rem;
    font-weight: 600;
}

.historia-card h3 i {
    color: #c9a24c;
    font-size: 0.78em;
}

.historia-card p {
    margin: 0.55rem 0 0;
    color: #4f3b31;
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 1.4;
}

.bloque-info {
    background: var(--carrusel-surface);
    padding: 56px 20px;
}

.bloque-info--contacto {
    background: linear-gradient(
        180deg,
        var(--carrusel-surface) 0%,
        var(--carrusel-surface-strong) 100%
    );
}

.bloque-info__inner {
    width: min(100%, var(--carrusel-max-width));
    margin: 0 auto;
    text-align: center;
}

.bloque-info h2,
.joyeria-categorias h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: #3f2b21;
}

.bloque-info p {
    margin: 0.95rem auto 0;
    max-width: 800px;
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    color: #4d3a2f;
    line-height: 1.6;
}

.joyeria-categorias {
    background: #ffffff;
    padding: 58px 20px 64px;
}

.joyeria-categorias__inner {
    width: min(100%, var(--carrusel-max-width));
    margin: 0 auto;
    text-align: center;
}

.joyeria-categorias__grid {
    margin-top: 1.3rem;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.joyeria-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #ccb190;
    background: #fff8ed;
    color: #533d2e;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes carruselFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes historiaFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive: carrusel ── */

@media (max-width: 980px) {
    .carrusel-hero {
        min-height: 76vh;
    }

    .carrusel-arrow {
        width: 48px;
        height: 48px;
        margin-top: -24px;
        font-size: 1.2rem;
    }

    .carrusel-arrow-left {
        left: 16px;
    }

    .carrusel-arrow-right {
        right: 16px;
    }
}

@media (max-width: 760px) {
    .carrusel-hero {
        min-height: 500px;
    }

    .carrusel-content {
        width: min(100% - 28px, 100%);
    }

    .carrusel-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .carrusel-content .carrusel-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }

    .carrusel-actions {
        margin-top: 1.4rem;
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .carrusel-btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .carrusel-arrow {
        display: none;
    }

    .carrusel-controls {
        bottom: 18px;
        gap: 6px;
    }

    .carrusel-dot {
        width: 28px;
        height: 5px;
    }
}

@media (max-width: 560px) {
    .carrusel-hero {
        min-height: 420px;
    }

    .carrusel-content h1 {
        font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    }

    .carrusel-content .carrusel-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }

    .carrusel-actions {
        margin-top: 1rem;
    }

    .carrusel-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
        max-width: 260px;
    }

    .carrusel-controls {
        bottom: 12px;
        gap: 5px;
    }

    .carrusel-dot {
        width: 20px;
        height: 4px;
    }
}
