/* 
* DIHA TROPICAL - CSS PRINCIPAL
* Versión: 2.0 Responsive
* Estructura ordenada por componentes
*/

/* ===== VARIABLES GLOBALES ===== */
:root {
    /* Colores principales */
    --color-principal: rgba(41, 3, 86, 1.00);
    --color-principal-rgb: 41, 3, 86;
    --color-fondo: rgba(245, 245, 235, 1.00);
    --color-texto: rgba(41, 3, 86, 1.00);
    --color-borde: rgba(131, 131, 131, 0.5);
    
    /* Sombras */
    --sombra-suave: 0 20px 30px -10px rgba(121, 121, 121, 0.7);
    --sombra-fuerte: 0 20px 30px 7px rgba(121, 121, 121, 0.8);
    --sombra-hover: 0 20px 35px -10px rgba(139, 69, 19, 0.25);
    
    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-circle: 50%;
    
    /* Tipografía */
    --fuente-titulos: 'Athene Voyage', serif;
    --fuente-texto: 'Atlan', sans-serif;
    
    /* Tamaños responsive */
    --container-max-width: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transiciones */
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: var(--color-fondo);
    font-family: var(--fuente-texto);
    line-height: 1.6;
    color: var(--color-texto);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILIDADES ===== */
.contenedor {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CONTENEDOR 1 - HERO SECTION ===== */
.cont_1 {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.cont_1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.cont_1 .overlay-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 12, 0.5);
    z-index: 2;
    pointer-events: none;
}

.cont_1 .text {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.cont_1 .text h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-fondo);
    margin: 0 auto;
    max-width: 90%;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CONTENEDOR 2 - HISTORIA ===== */
.cont_2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) 0;
    padding: 0 5%;
    gap: 4%;
    flex-wrap: wrap;
}

.cont_2 .img {
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 250px;
}

.cont_2 .img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--sombra-suave);
    transition: var(--transition-normal);
}

.cont_2 .img img:hover {
    transform: scale(1.02);
}

.cont_2 .text {
    flex: 1 1 400px;
    max-width: 500px;
    padding: 2%;
}

.cont_2 .text h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cont_2 .text p {
    font-family: var(--fuente-texto);
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--color-principal);
    line-height: 1.6;
    text-align: justify;
}

/* ===== CONTENEDOR 3 - PROCESO DEL GRANO A LA BARRA ===== */
.cont_3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3%;
    padding: 5% 2%;
    background-image: url("../img/Textura blanco fondo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.cont_3 h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 0 var(--spacing-sm);
}

.cont_3 > p {
    font-family: var(--fuente-texto);
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: var(--color-principal);
    text-align: center;
    max-width: 600px;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.cont_3 .box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin: 20px auto;
    padding: 10px;
    max-width: var(--container-max-width);
    width: 100%;
}

.cont_3 .box .sub_box {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    width: clamp(150px, 50%, 300px);
    flex: 1 1 250px;
    align-items: center;
    justify-content: flex-start;
    border-radius: var(--border-radius-md);
    box-shadow: var(--sombra-fuerte);
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    transition: var(--transition-normal);
    margin: 0 2% 4%;
}

.cont_3 .box .sub_box:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.cont_3 .box .sub_box h2 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 10px 0;
    text-align: center;
    line-height: 1.3;
}

.cont_3 .box .sub_box p {
    font-family: var(--fuente-texto);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: var(--color-principal);
    text-align: center;
    margin: 10px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.cont_3 .box .sub_box .img {
    width: 100%;
    max-width: 180px;
    height: 140px;
    margin: 15px auto 5px;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.cont_3 .box .sub_box .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.cont_3 .box .sub_box .img img:hover {
    transform: scale(1.1);
}

/* ===== CONTENEDOR 4 - RECONOCIMIENTOS/CARRUSEL ===== */
.cont_4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 15px auto;
    padding: var(--spacing-xl) 8px;
}

.cont_4 h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    margin: 8px 0;
    line-height: 1.5;
}

.cont_4 > h2 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    margin: 4px auto;
    font-weight: 400;
    line-height: 1.4;
}

.cont_4 > p {
    font-family: var(--fuente-texto);
    color: var(--color-principal);
    font-size: clamp(0.875rem, 2vw, 1rem);
    max-width: 500px;
    width: 100%;
    margin: 5px 0 10px;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.6;
}

.cont_4_footer {
    font-family: var(--fuente-texto);
    color: var(--color-principal);
    font-size: 0.875rem;
    margin: 3% 0;
    text-align: center;
}

/* Carrusel */
.cont_4 .carrusel-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 2%;
    padding: 4px 0;
}

.cont_4 .carrusel-track-wrapper {
    overflow: hidden;
    margin: 0 3.5rem;
    padding: 0.7rem 0;
}

.cont_4 .carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.cont_4 .carrusel-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 240px;
    transition: var(--transition-normal);
}

.cont_4 .sub_box {
    background-color: rgba(245, 245, 235, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: var(--transition-normal);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.cont_4 .sub_box:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-hover);
    background-color: rgba(245, 245, 235, 0.5);
}

.cont_4 .sub_box img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.cont_4 .sub_box:hover img {
    transform: scale(1.02);
}

.cont_4 .sub_box .text {
    width: 100%;
    text-align: center;
    padding: 4px 8px;
}

.cont_4 .sub_box .text h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.cont_4 .sub_box .text h4 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: 0.75rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

.cont_4 .sub_box .text p {
    font-family: var(--fuente-texto);
    color: var(--color-principal);
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    line-height: 1.5;
    opacity: 0.85;
}

/* Botones del carrusel */
.cont_4 .carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 15;
    transition: var(--transition-normal);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cont_4 .carrusel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background-color: #6B3410;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cont_4 .carrusel-btn.prev {
    left: 0;
}

.cont_4 .carrusel-btn.next {
    right: 0;
}

.cont_4 .carrusel-btn:focus-visible {
    outline: 3px solid #8B4513;
    outline-offset: 2px;
}

/* Dots/Indicadores */
.cont_4 .carrusel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin: 2% 0;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.cont_4 .dot {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-circle);
    background-color: rgba(139, 69, 19, 0.25);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    padding: 0;
}

.cont_4 .dot.active {
    background-color: var(--color-principal);
    width: 32px;
    border-radius: 16px;
}

.cont_4 .dot:hover {
    background-color: rgba(139, 69, 19, 0.5);
    transform: scale(1.2);
}

.cont_4 .dot:focus-visible {
    outline: 3px solid #8B4513;
    outline-offset: 2px;
}

/* ===== CONTENEDOR 5 - VALORES ===== */
.cont_5 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin: 3% auto;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    border-top: 1px solid var(--color-borde);
    border-bottom: 1px solid var(--color-borde);
}

.cont_5 .text {
    flex: 0 0 auto;
    max-width: 350px;
    text-align: left;
}

.cont_5 .text h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    font-weight: 600;
    position: relative;
}

.cont_5 .text h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-principal);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.cont_5 .text p {
    font-family: var(--fuente-texto);
    color: var(--color-principal);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.cont_5 .box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.cont_5 .box .sub_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 120px;
    transition: var(--transition-normal);
}

.cont_5 .box .sub_box:hover {
    transform: translateY(-5px);
}

.cont_5 .box .sub_box .img {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(139, 69, 19, 0.05);
    border-radius: var(--border-radius-circle);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.cont_5 .box .sub_box:hover .img {
    background-color: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.2);
    transform: scale(1.05);
}

.cont_5 .box .sub_box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: brightness(0.8) sepia(0.3) hue-rotate(330deg) saturate(1.5);
}

.cont_5 .box .sub_box:hover img {
    transform: scale(1.1);
    filter: brightness(1) sepia(0.2) hue-rotate(330deg) saturate(1.8);
}

.cont_5 .box .sub_box p {
    font-family: var(--fuente-texto);
    color: var(--color-principal);
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== CONTENEDOR 6 - CTA FINAL ===== */
.cont_6 {
    padding: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cont_6 .text {
    max-width: 350px;
}

.cont_6 .text h1 {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: left;
    margin: 8px 0;
    line-height: 1.5;
}

.cont_6 .text a {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(0deg, rgb(40, 4, 84), rgb(66, 3, 142));
    border-radius: 30px;
    margin-top: 2%;
    padding: 4px 20px;
    color: var(--color-fondo);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cont_6 .text a:hover {
    transform: scale(1.05);
    background: linear-gradient(0deg, rgb(50, 6, 100), rgb(76, 5, 160));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cont_6 .img {
    width: 300px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(177, 209, 225, 0.3));
    transition: var(--transition-normal);
}

.cont_6 .img img:hover {
    transform: scale(1.02) translateY(-5px);
    filter: drop-shadow(0 15px 20px rgba(177, 209, 225, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cont_6:hover .img img {
    animation-play-state: paused;
}

/* ===== MEDIA QUERIES PRINCIPALES ===== */

/* Pantallas grandes (1200px+) */
@media (min-width: 1200px) {
    .cont_2 {
        max-width: var(--container-max-width);
        margin-left: auto;
        margin-right: auto;
    }
    
    .cont_3 .box {
        max-width: 1600px;
    }
    
    .cont_4 .carrusel-container {
        width: 1000px;
    }
    
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(30% - 1rem);
        max-width: 230px;
    }
    
    .cont_4 .carrusel-track-wrapper {
        margin: 0 4.5rem;
    }
    
    .cont_5 {
        max-width: var(--container-max-width);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .cont_5 .text {
        max-width: 400px;
    }
    
    .cont_5 .text h1 {
        font-size: 3rem;
    }
    
    .cont_5 .text p {
        font-size: 1.3rem;
    }
    
    .cont_5 .box .sub_box .img {
        width: 120px;
        height: 120px;
    }
    
    .cont_5 .box .sub_box img {
        width: 70px;
        height: 70px;
    }
    
    .cont_5 .box .sub_box p {
        font-size: 1.3rem;
    }
}

/* Tablets horizontales (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 993px) {
    .cont_4 .carrusel-container {
        width: 980px;
    }
    
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(30% - 1rem);
    }
    
    .cont_2 .text {
        margin-left: 2%;
    }
    
    .cont_2 .img {
        max-width: 180px;
        margin: 2% 0;
    }
    
    .cont_3 .box .sub_box {
        width: 100px;
        flex: 0 1 calc(20% - 50px);
        margin: 2%;
    }
    
    .cont_3 .box .sub_box h2 {
        font-size: 1.1rem;
    }
    
    .cont_3 .box .sub_box p {
        font-size: 0.875rem;
    }
}

/* Tablets verticales (768px - 992px) */
@media (max-width: 992px) {
    .cont_4 .carrusel-container {
        width: 80%;
    }
    
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(30% - 1rem);
        max-width: 250px;
    }
    
    .cont_4 .carrusel-track-wrapper {
        margin: 0 1.2rem;
    }
    
    .cont_4 .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .cont_5 {
        padding: var(--spacing-lg) 1.5rem;
        gap: var(--spacing-md);
    }
    
    .cont_5 .text {
        max-width: 300px;
    }
    
    .cont_5 .box {
        gap: var(--spacing-md);
    }
    
    .cont_5 .box .sub_box .img {
        width: 90px;
        height: 90px;
    }
    
    .cont_5 .box .sub_box img {
        width: 50px;
        height: 50px;
    }
    
    .cont_6 .text {
        max-width: 300px;
        text-align: left;
    }
}

/* Móviles grandes (576px - 767px) */
@media (max-width: 767px) {
    .cont_1 .text h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .cont_2 {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cont_2 .img {
        max-width: 280px;
        flex: 0;
        margin: 2% 0;
    }
    
    .cont_2 .text {
        text-align: center;
        max-width: 100%;
        margin: 4% 0;
        padding: 0;
        flex: 0;
    }
    
    .cont_2 .text h1 {
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }
    
    .cont_2 .text p {
        font-size: 0.875rem;
    }
    
    .cont_3 .box {
        gap: 20px;
    }
    
    .cont_3 .box .sub_box {
        width: 100%;
        max-width: 350px;
        flex: 0 1 100%;
    }
    
    .cont_4 h1 {
        font-size: 1.5rem;
    }
    
    .cont_4 > p {
        font-size: 0.875rem;
    }
    
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(100% - 1rem);
        min-width: 220px;
    }
    
    .cont_4 .carrusel-track-wrapper {
        margin: 0 0.8rem;
    }
    
    .cont_4 .carrusel-track {
        gap: 1rem;
    }
    
    .cont_4 {
        padding: var(--spacing-md) 0.5rem;
    }
    
    .cont_4 .sub_box {
        padding: 1.2rem 0.8rem;
    }
    
    .cont_4 .sub_box img {
        width: 150px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .cont_4 .carrusel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        background-color: var(--color-principal);
        opacity: 0.95;
    }
    
    .cont_5 {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md) 1.5rem;
        gap: var(--spacing-md);
    }
    
    .cont_5 .text {
        max-width: 100%;
        text-align: center;
    }
    
    .cont_5 .text h1::after {
        margin: 0.5rem auto 0;
    }
    
    .cont_5 .box {
        width: 100%;
        gap: var(--spacing-md);
    }
    
    .cont_5 .box .sub_box {
        min-width: 100px;
    }
    
    .cont_6 {
        flex-direction: column-reverse;
        text-align: center;
        padding: var(--spacing-md) 1.5rem;
        gap: var(--spacing-md);
    }
    
    .cont_6 .text {
        text-align: center;
        max-width: 100%;
    }
    
    .cont_6 .text h1 {
        text-align: center;
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .cont_6 .text a {
        margin: 0 auto;
        padding: 4px 30px;
        font-size: 0.875rem;
    }
    
    .cont_6 .img {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .cont_6 .img img {
        max-width: 280px;
    }
}

/* Móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    .cont_2 {
        margin: 10% 0;
    }
    
    .cont_2 .img {
        max-width: 220px;
    }
    
    .cont_2 .text {
        width: 270px;
    }
    
    .cont_2 .text p {
        font-size: 0.75rem;
    }
    
    .cont_3 {
        padding: 8% 3%;
    }
    
    .cont_3 h1 {
        font-size: 1.5rem;
    }
    
    .cont_3 > p {
        font-size: 0.75rem;
    }
    
    .cont_3 .box {
        margin-top: 3px;
    }
    
    .cont_3 .box .sub_box {
        padding: 15px 10px;
        width: 150px;
    }
    
    .cont_3 .box .sub_box .img {
        height: 120px;
    }
    
    .cont_5 {
        padding: var(--spacing-md) 1rem;
        gap: 1.5rem;
    }
    
    .cont_5 .box {
        gap: 1.5rem;
        margin-top: 20px;
        margin-bottom: 3%;
    }
    
    .cont_5 .box .sub_box .img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.75rem;
    }
    
    .cont_5 .box .sub_box img {
        width: 45px;
        height: 45px;
    }
    
    .cont_5 .box .sub_box p {
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: 200px;
    }
    
    .cont_4 .carrusel-track-wrapper {
        margin: 0 0.5rem;
    }
    
    .cont_4 .carrusel-track {
        gap: 0.5rem;
    }
    
    .cont_4 {
        padding: 1.5rem 0.3rem;
    }
    
    .cont_4 h1 {
        font-size: 1.2rem;
        max-width: 100px;
        margin: 0 auto;
    }
    
    .cont_4 h2 {
        font-size: 0.9rem;
    }
    
    .cont_4 > p {
        padding: 0 2%;
        margin: 1% 2% 1.5rem;
    }
    
    .cont_4 .sub_box {
        padding: 1rem 0.6rem;
    }
    
    .cont_4 .sub_box img {
        width: 130px;
        height: 105px;
        margin-bottom: 0.8rem;
    }
    
    .cont_4 .sub_box .text h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .cont_4 .sub_box .text h4 {
        font-size: 0.75rem;
    }
    
    .cont_4 .sub_box .text p {
        font-size: 0.7rem;
    }
    
    .cont_4 .carrusel-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        background-color: var(--color-principal);
    }
    
    .cont_4 .dot {
        width: 10px;
        height: 10px;
    }
    
    .cont_4 .dot.active {
        width: 28px;
    }
    
    .cont_5 h1 {
        font-size: 1.5rem;
    }
    
    .cont_5 p {
        font-size: 0.875rem;
    }
    
    .cont_5 .box {
        gap: 1rem;
        margin-top: 20px;
        margin-bottom: 3%;
    }
    
    .cont_5 .box .sub_box .img {
        width: 70px;
        height: 70px;
    }
    
    .cont_5 .box .sub_box img {
        width: 35px;
        height: 35px;
    }
    
    .cont_5 .box .sub_box p {
        font-size: 0.75rem;
    }
}

/* Móviles extremadamente pequeños (hasta 360px) */
@media (max-width: 360px) {
     .cont_3 {
        padding: 2rem 0.5rem; /* Reducir padding general */
    }
    
    .cont_3 h1 {
        font-size: 1.3rem; /* Título más pequeño */
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }
    
    .cont_3 > p {
        font-size: 0.7rem; /* Subtítulo más pequeño */
        margin-bottom: 1rem;
        max-width: 280px;
    }
    
    .cont_3 .box {
        gap: 12px; /* Reducir espacio entre tarjetas */
        padding: 5px;
        margin: 5px auto;
    }
    
    .cont_3 .box .sub_box {
        flex: 0 1 calc(100% - 10px); /* Una sola columna */
        max-width: 230px; /* Ancho máximo reducido */
        min-width: 180px; /* Ancho mínimo para que no se deformen */
        width: 90%; /* Ancho relativo al contenedor padre */
        padding: 12px 8px; /* Padding interno reducido */
        margin: 0 auto 12px; /* Centrado y margen inferior */
    }
    
    .cont_3 .box .sub_box h2 {
        font-size: 0.85rem; /* Texto más pequeño */
        margin: 5px 0;
        line-height: 1.2;
    }
    
    .cont_3 .box .sub_box p {
        font-size: 0.65rem; /* Texto de párrafo más pequeño */
        margin: 5px 0;
        line-height: 1.3;
        padding: 0 5px; /* Pequeño padding lateral */
    }
    
    .cont_3 .box .sub_box .img {
        max-width: 130px; /* Imagen más pequeña */
        height: 100px; /* Altura reducida */
        margin: 10px auto 5px;
    }
    
    .cont_3 .box .sub_box .img img {
        object-fit: cover; /* Mantener proporción */
    }
	
/*cont_4*/
	 .cont_4 {
        padding: 2rem 0.5rem;
        width: 100%;
        overflow-x: hidden;
		 text-align: center;
    }
    
    .cont_4 h1 {
        font-size: 15px;
        line-height: 1.3;
        margin: 0 auto 0.5rem;
        max-width: 100%;
        word-wrap: break-word;
		text-align: center;
    }
    
    .cont_4 > h2 {
        font-size: 0.9rem;
        margin: 0 auto 0.75rem;
        max-width: 90%;
        line-height: 1.3;
    }
    
    .cont_4 > p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin: 0 auto 1.25rem;
        max-width: 95%;
        padding: 0 0.25rem;
    }
    
    .cont_4_footer {
        font-size: 0.7rem;
        margin: 1.5rem auto 0;
        max-width: 95%;
    }
    
    /* Carrusel para móviles pequeños */
    .cont_4 .carrusel-container {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    .cont_4 .carrusel-track-wrapper {
        margin: 0 2rem; /* Espacio para botones */
        padding: 0.25rem 0;
        overflow: hidden;
    }
    
    .cont_4 .carrusel-track {
        gap: 1rem;
        padding: 0.25rem 0;
    }
    
    .cont_4 .carrusel-slide {
        flex: 0 0 calc(100% - 0.5rem); /* Una sola tarjeta por vez */
        min-width: 200px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cont_4 .sub_box {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .cont_4 .sub_box img {
        width: 130px;
        height: 100px;
        margin-bottom: 0.75rem;
    }
    
    .cont_4 .sub_box .text {
        padding: 0 0.25rem;
    }
    
    .cont_4 .sub_box .text h3 {
        font-size: 0.85rem;
        margin: 0 0 0.35rem;
        line-height: 1.3;
    }
    
    .cont_4 .sub_box .text h4 {
        font-size: 0.7rem;
        margin: 0 0 0.35rem;
        line-height: 1.3;
    }
    
    .cont_4 .sub_box .text p {
        font-size: 0.65rem;
        margin: 0.35rem 0 0;
        line-height: 1.4;
    }
    
    /* Botones más pequeños y centrados */
    .cont_4 .carrusel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        background-color: var(--color-principal);
        opacity: 0.9;
        top: 50%;
    }
    
    .cont_4 .carrusel-btn.prev {
        left: 0;
    }
    
    .cont_4 .carrusel-btn.next {
        right: 0;
    }
    
    .cont_4 .carrusel-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }
    
    /* Dots/Indicadores más pequeños y centrados */
    .cont_4 .carrusel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin: 1.25rem auto 0;
        padding: 0;
        width: 100%;
    }
    
    .cont_4 .dot {
        width: 8px;
        height: 8px;
        background-color: rgba(139, 69, 19, 0.25);
    }
    
    .cont_4 .dot.active {
        width: 24px;
        background-color: var(--color-principal);
    }
	
/*cont_5*/	
    
    .cont_5 .box .sub_box .img {
        width: 60px;
        height: 60px;
    }
    
    .cont_5 .box .sub_box img {
        width: 30px;
        height: 30px;
    }
    
    .cont_5 .box .sub_box p {
        font-size: 0.7rem;
    }
}

/* ===== PREFIERE MOVIMIENTO REDUCIDO ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cont_1 .text,
    .cont_4 .carrusel-track,
    .cont_4 .sub_box,
    .cont_4 .sub_box img,
    .cont_4 .dot,
    .cont_4 .carrusel-btn,
    .cont_5 .box .sub_box,
    .cont_5 .box .sub_box .img,
    .cont_5 .box .sub_box img,
    .cont_6 .img img {
        animation: none;
        transition: none;
    }
    
    .cont_6 .img img {
        transform: none;
    }
}