/* ============================================
   DIVISIÓN FARMACÉUTICA PAGE - CSS CORREGIDO
   ============================================ */

/* Sección 1: Hero con imagen de fondo a ancho completo */
.division-hero {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 100px 20px;
}

.division-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.division-hero-content {
    position: relative;
    z-index: 2;
}

.division-hero-content h1 {
    font-size: 48px;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin: 0;
}

.division-hero-content h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #fff;
}

/* Sección 2: Descripción */
.division-descripcion {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.division-descripcion-texto p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Sección 3: Carrusel 3D Coverflow */
.division-carousel-wrapper {
    max-width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: #f8f9fa;
}

.carousel-3d-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 320px;
    overflow: hidden;
}

.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-3d-item {
    position: absolute;
    top: 0;
    width: 280px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.carousel-3d-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Botones carrusel */
.carousel-3d-prev, .carousel-3d-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    transition: all 0.3s;
}

.carousel-3d-prev {
    left: 10px;
}

.carousel-3d-next {
    right: 10px;
}

.carousel-3d-prev:hover, .carousel-3d-next:hover {
    background: #0084de;
}

/* Dots carrusel */
.carousel-3d-dots {
    text-align: center;
    margin-top: 20px;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #0084de;
}

/* Sección 4: Título CATÁLOGO */
.division-catalogo-titulo {
    text-align: center;
    margin: 60px 0 30px;
}

.division-catalogo-titulo h2 {
    font-size: 32px;
    color: #0C71C3;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.separador {
    width: 60px;
    height: 3px;
    background: #0084de;
    margin: 15px auto 0;
}

/* Sección 5: Grid de productos */
.division-productos {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.producto-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.producto-card a {
    text-decoration: none;
}

.producto-card img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.producto-card h4 {
    color: #0C71C3;
    font-size: 14px;
    margin: 0;
}

/* Sección 6: Banner final con imagen de fondo */
.division-banner {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 50px;
    padding: 60px 20px;
    text-align: center;
}

.division-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.division-banner-content {
    position: relative;
    z-index: 2;
}

.division-banner-content img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .division-productos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-3d-item {
        width: 240px;
    }
    
    .carousel-3d-container {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .division-hero {
        padding: 60px 20px;
    }
    
    .division-hero-content h1 {
        font-size: 32px;
    }
    
    .division-catalogo-titulo h2 {
        font-size: 26px;
    }
    
    .division-productos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-3d-item {
        width: 200px;
    }
    
    .carousel-3d-container {
        height: 240px;
    }
    
    .carousel-3d-prev, .carousel-3d-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .division-hero {
        padding: 40px 20px;
    }
    
    .division-hero-content h1 {
        font-size: 28px;
    }
    
    .division-catalogo-titulo h2 {
        font-size: 22px;
    }
    
    .division-productos {
        grid-template-columns: 1fr;
    }
    
    .producto-card img {
        max-width: 100px;
    }
    
    .division-banner-content img {
        max-width: 95%;
    }
}

/* ============================================
   CARRUSEL CORREGIDO
   ============================================ */

.division-carousel {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
    padding: 0 40px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

/* Botones */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #0084de;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Puntos de navegación */
.carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: #0084de;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .division-carousel {
        padding: 0 30px;
    }
    
    .carousel-slide img {
        height: 200px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .division-carousel {
        padding: 0 20px;
    }
    
    .carousel-slide img {
        height: 180px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}