/* assets/css/nuestros_productos.css */

/* ===== PRODUCTS HERO SECTION ===== */
.products-hero {
    background: var(--color-crema);
    padding: 10px 0;
    position: relative;
}

.products-title {
    font-size: var(--titulo-xl);
    font-family: 'Anton', sans-serif;
    color: var(--color-verde-oscuro);
    margin-bottom: var(--esp-2);
    letter-spacing: 1px;
    position: relative;
    text-align: center;
}

.hero-divider {
    width: 88px;
    height: 3px;
    background: var(--color-verde);
    margin: 0 auto var(--esp-5) auto;
    border-radius: 2px;
}

/* ===== PRODUCTS CONTENT ===== */
.products-content {
    background: var(--color-crema);
    padding: 0;
}

/* ===== PRODUCT SECTIONS ===== */
.product-section {
    margin-bottom: var(--bloque-y);
}

.product-info {
    padding: var(--esp-3) var(--esp-2);
}

.product-title {
    font-size: var(--titulo-lg);
    color: var(--color-verde-oscuro);
    margin-bottom: var(--esp-3);
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--color-verde);
    border-radius: 2px;
}

.product-subtitle {
    font-size: var(--texto-md);
    color: var(--color-verde-oscuro);
    font-weight: 700;
    margin-bottom: var(--esp-2);
}

.product-description {
    font-size: var(--texto-md);
    line-height: 1.75;
    color: var(--color-negro);
    margin-bottom: var(--esp-3);
    max-width: var(--medida);
    text-align: left;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--esp-1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--esp-2);
    padding: 6px 0;
}

.feature-item i {
    color: var(--color-verde-oscuro);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: var(--texto-base);
    color: var(--color-negro);
    font-weight: 400;
}

/* ===== PRODUCT CAROUSEL ===== */
.product-carousel {
    padding: var(--esp-2) 0 42px; /* espacio inferior para los indicadores */
    position: relative;
}

.product-card {
    background: #fff;
    border-radius: var(--radio-card);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    position: relative;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-card-content {
    padding: var(--esp-3);
    position: relative;
}

.product-card-content h4 {
    font-size: var(--titulo-sm);
    color: var(--color-verde-oscuro);
    margin-bottom: var(--esp-1);
    padding-right: 92px; /* deja lugar al badge */
}

.product-card-content p {
    font-size: var(--texto-sm);
    color: var(--color-negro);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: none;
}

.product-badge {
    position: absolute;
    top: var(--esp-3);
    right: var(--esp-3);
    background: var(--color-verde-oscuro);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ===== PRODUCT IMAGE ===== */
.product-image {
    position: relative;
    border-radius: var(--radio-img);
    overflow: hidden;
    box-shadow: var(--sombra-card-alta);
}

.product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ===== SHIPPING SECTION ===== */
.shipping-section {
    margin-top: var(--bloque-y);
}

.shipping-card {
    background: #fff;
    border-radius: var(--radio-card);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: var(--sombra-card-alta);
    border: 1px solid var(--color-borde);
}

.shipping-header {
    text-align: center;
    margin-bottom: var(--esp-4);
}

.shipping-icon {
    width: 64px;
    height: 64px;
    background: var(--color-verde-oscuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--esp-2);
}

.shipping-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.shipping-header h2 {
    font-size: var(--titulo-lg);
    color: var(--color-verde-oscuro);
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    margin-bottom: 0;
}

.shipping-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: var(--color-verde);
    border-radius: 2px;
}

.shipping-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radio-img);
    display: block;
}

.shipping-details {
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--esp-2);
    margin-bottom: var(--esp-2);
    padding: var(--esp-2);
    background: rgba(112, 199, 71, 0.06);
    border-radius: 10px;
}

.detail-item i {
    font-size: 1.35rem;
    color: var(--color-verde-oscuro);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item h5 {
    font-size: var(--texto-base);
    color: var(--color-verde-oscuro);
    margin-bottom: 2px;
}

.detail-item p {
    font-size: var(--texto-sm);
    color: var(--color-negro);
    margin: 0;
    max-width: none;
}

/* Verde oscuro pleno: el texto blanco sobre el verde de marca daba 2.11:1 */
.shipping-cta {
    background: var(--color-verde-oscuro);
    padding: var(--esp-3);
    border-radius: 12px;
    color: #fff;
    margin-top: var(--esp-3);
}

.cta-text {
    font-size: var(--texto-md);
    margin-bottom: var(--esp-2);
    font-weight: 700;
    max-width: none;
}

.cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-list li {
    padding: 4px 0 4px 26px;
    position: relative;
}

.cta-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* ===== CAROUSEL CUSTOMIZATION ===== */
.carousel-inner {
    border-radius: var(--radio-card);
    overflow: hidden;
}

.carousel-item {
    border-radius: var(--radio-card);
    overflow: hidden;
}

/* Indicadores debajo de la tarjeta: antes caían encima de la descripción */
.carousel-indicators {
    bottom: -34px;
    margin: 0;
    align-items: center;
}

.carousel-indicators li {
    background-color: #948d7a;
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 1;
    transition: background-color 0.2s ease;
}

.carousel-indicators .active {
    background-color: var(--color-verde-oscuro);
    width: 12px;
    height: 12px;
}

/* Botones sólidos sobre la imagen: las flechas verdes sobre crema eran
   prácticamente invisibles. 44px es el mínimo de área táctil. */
.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 150px; /* centro vertical de la imagen de 300px */
    transform: translateY(-50%);
    background: var(--color-verde-oscuro);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-control-prev { left: 10px; }
.carousel-control-next { right: 10px; }

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
}

.carousel-control-prev-icon::before {
    transform: translate(-50%, -50%) rotate(-135deg);
    margin-left: -1px;
}

.carousel-control-next-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
    margin-left: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 991.98px) {
    .shipping-content {
        flex-direction: column;
        gap: var(--esp-4);
    }

    .shipping-image {
        order: 1;
    }

    .shipping-info {
        order: 2;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .products-hero {
        padding: 0 0 10px 0;
    }

    .hero-divider {
        margin: 0 auto var(--esp-3) auto;
    }

    .products-title {
        margin-top: 0;
        margin-bottom: var(--esp-1);
    }

    .products-content {
        padding: var(--esp-3) 0;
    }

    /* El título se centra, así que el divisor lo acompaña */
    .product-title {
        text-align: center;
    }

    .product-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .product-subtitle {
        text-align: center;
    }

    .product-info {
        padding: var(--esp-2) 0;
    }

    /* Los párrafos siguen a la izquierda: centrar 5 líneas cuesta leerlas */
    .product-description {
        text-align: left;
    }

    .product-features {
        align-items: flex-start;
    }

    .product-card img {
        height: 240px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: 120px;
    }

    .product-image img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 210px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: 105px;
    }

    .product-image img {
        height: 240px;
    }

    .product-card-content h4 {
        padding-right: 84px;
    }
}
