/* =========================
   PÁGINA DE INICIO — Rincón de Kari
   ========================= */

/* ── HERO ── */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

/* Contenido superpuesto */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 680px;
    padding: 20px;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0 0 16px;
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: 400;
    color: #f0c898; /* Tono tierra cálido */
}

.hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px;
}

.hero-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #fff;
    color: #3d2b1f;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero-btn:hover {
    background: #8b5a2b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-decoration: none;
}

/* ── BANNER FINO ── */
.thin-banner {
    background-color: #8b5a2b;
    color: #fff;
    padding: 14px 20px;
}

.thin-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.thin-banner-text {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
}
.thin-banner-text strong { font-weight: 700; color: #fff; }

.thin-banner-btn {
    background: #fff;
    color: #8b5a2b;
    padding: 8px 22px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.thin-banner-btn:hover {
    background: #fdf7f0;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── DESTACADOS ── */
.destacados-section {
    max-width: 1200px;
    margin: 64px auto;
    padding: 0 20px;
}

.destacados-header-nuevo {
    text-align: center;
    margin-bottom: 40px;
}
.destacados-header-nuevo h2 {
    font-size: 30px;
    font-weight: 800;
    color: #3d2b1f;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.destacados-header-nuevo p {
    font-size: 15px;
    color: #9a7a65;
    margin: 0;
    font-style: italic;
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 20px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
}
.carousel-item .card__image-wrap { height: 200px; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid rgba(139,90,43,0.25);
    border-radius: 50%;
    font-size: 16px;
    color: #8b5a2b;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.carousel-btn:hover {
    background: #8b5a2b;
    color: #fff;
    border-color: #8b5a2b;
    transform: translateY(-50%) scale(1.05);
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ── FEATURES ── */
.features-section {
    background: #fffbf6;
    border-top: 1px solid rgba(160,120,80,0.12);
    border-bottom: 1px solid rgba(160,120,80,0.12);
    padding: 50px 20px;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card { padding: 24px 20px; }

.feature-icon {
    width: 64px;
    height: 64px;
    background: #f5ede0;
    color: #8b5a2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(139,90,43,0.15);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #3d2b1f;
    margin: 0 0 10px;
}

.feature-card p {
    font-size: 14px;
    color: #7a5c45;
    line-height: 1.65;
    margin: 0;
}

/* ── SOBRE KARINA ── */
.about-section {
    padding: 80px 20px;
    background: #f9f4ee;
}

.about-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Imagen con marco decorativo */
.about-img-wrap {
    position: relative;
}
.about-img {
    width: 100%;
    border-radius: 4px;
    display: block;
    box-shadow: 0 8px 30px rgba(100,70,40,0.12);
}
.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: 14px;
    bottom: 14px;
    border: 2px solid rgba(139,90,43,0.3);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
}
.about-img-wrap img { position: relative; z-index: 1; }


.about-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: #3d2b1f;
    margin: 0 0 20px;
    line-height: 1.15;
}

.about-text p {
    font-size: 15px;
    color: #5e4535;
    line-height: 1.8;
    margin: 0 0 16px;
}
.about-text p:first-of-type {
    font-size: 17px;
    font-style: italic;
    color: #8b5a2b;
    font-weight: 500;
}

/* Botón Instagram */
.about-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 20px;
    background: #8b5a2b;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
}
.about-ig-btn:hover {
    background: #7a4f26;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* En mobile la foto va abajo */
    .about-img-wrap { order: 2; }
    .about-text     { order: 1; }

    .about-img-wrap::before { display: none; }
    .about-text h2 { font-size: 28px; }

    .thin-banner-inner { flex-direction: column; gap: 12px; }

    .carousel-btn  { display: none; }
    .carousel-wrapper { padding: 0; }
}

@media (max-width: 600px) {
    .hero-section { min-height: 55vh; }
    .destacados-section { margin: 44px auto; }
    .features-section { padding: 40px 20px; }
    .about-section { padding: 50px 20px; }
}