/*
1 Grl
2 Glass card
3 Zic zac
  seccion de la entrada rectangular-fabrica dxn 
  Seccion de las flechas solución
  Sección de los 4 pilares
  Seccion de las secciones dinamicas de una vida saludable 
  Sección del miniform de afíliate a DXN
4 botones

*/


:root{
   --c1: #daa520;
   --c2: #ffd700;
   --c3: #b8860b; 
   --c4: #ffdf00;

    --c5:#FFFFFF;
    --c6:#333;

    --golden: linear-gradient(135deg, var(--c1),  var(--c2),  var(--c3),  var(--c4),  var(--c1));
    --golden-inv: linear-gradient(135deg, var(--c4),  var(--c3),  var(--c2),  var(--c1),  var(--c1));

    --s: 0 3px 6px rgba(0, 0, 0, 0.3);
    --s2: 0 8px 20px rgba(0, 0, 0, 0.4);
    --txt-sh: 2px 2px 4px rgba(0, 0, 0, 0.4);

    --rad: 15px;
    --rad2: 25px;
    --pad: 10px 12px;

    --card-width: 350px;
    --image-height: 200px;
    --content-min-height: 300px;
}

* , body{
  margin: 0;
  padding: 0;
}
*{
  box-sizing: border-box;
}
.corp{
  padding-top:65px;
  width:100%;
  overflow-x:hidden;
}
button{
  cursor: pointer;
}
@media (max-width: 768px) {
   :root {
    --card-width: 300px;
    --image-height: 180px;
   }
   .corp{
     padding-top:50px;
   }
}






/*1. Gral*/
.auto{
    margin:auto;
}
.autoX{
    margin:0 auto;
}
.column2, .column3, .auto{
    display: flex;
}
.column2{
    flex-direction: column;
}
.column3{
    justify-content:center;
}

.centrar{
    display:flex;
    align-items:center;
    justify-content:center;
}
.f-white{
    color:white;
    text-shadow: var(--txt-sh);
}
.f-med{
 font-size: 1.2rem;
}
.f-grande{
 font-size: 1.5rem;
}
.txt-sub-center{
    text-align: center;
    padding:35px 25px;
}
.txt-mini-sub{
    text-align:center;
    margin-bottom:15px;
}
.pad20{
    padding:20px;
}
.m-top{
    margin-top:20px;
}
.m-left{
    margin-left:20px;
}
.vidrio{
    background: rgba(255, 255, 255, 0.05);
     backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.blank{
    background:#f0f0f0; 
}
.blank:hover{
    background:white;
}
.gold{
    background:var(--golden);
}
.gold-inv{
    background:var(--golden-inv);
}







/*7) EFECTOS DE APARICIÓN */
/*Efecto de aparición de escala*/
.efect{
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.efect.mostrar {
    opacity: 1;
    transform: scale(1);
}
/*Efecto de aparición lateral de una sola vez*/
.efect2 {
    opacity: 0;
    transform: translateX(20%);
    transition: all 0.5s ease-in-out;
}  
.efect2.in-view {
    opacity: 1;
    transform: translateX(0);
}
/*Efecto de aparición central de una sola vez*/
.efect3 {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.efect3.in-view2 {
    opacity: 1;
    transform: scale(1);
}
/* Efecto de izquierda hacia la derecha */
.efect4 {
    transform: translateX(-100px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    will-change: transform, opacity;
}
.efect4.slide-in {
    transform: translateX(0);
    opacity: 1;
}
.efect4 {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
@media (max-width: 768px) {
    .efect4 {
        transform: translateX(-50px);
        transition-duration: 0.4s;
    }
}







/*2. cartas solas tipo entrada*/
.container-entry, .carta, .carta img{
    width: 100%;
}
.container-entry{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    padding:80px 20px;
    gap:20px;
}
.carta{
    cursor:pointer;
}
.carta {
    max-width: var(--card-width);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--s);
    transition: all 0.3s ease;
    text-align: center;
}
.carta-content h2 {
    margin: 0;
    flex-shrink: 0;
}
.carta-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin:5px;
}
.carta:hover {
    transform: translateY(-10px);
    box-shadow: var(--s2);
     background: var(--golden);
}
.carta img {
    height: var(--image-height);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.carta-content{
    flex: 1;
}
.carta-content{
   padding:20px;
}








/*3.zic zac*/
.zic{
    flex-wrap:wrap;
    padding:40px 0;
    border-radius: 0 0 0 300px;
    overflow:hidden
}
.blanco{
    background:white;
}
.tazacafe{
    width:470px;
}

.zac{
 background:var(--golden-inv);
}
.zac2{
    box-sizing: border-box;
    background:white;
    width:100%;
    padding:40px;
    border-radius: 0 300px 0 0;
    justify-content: center;
}

@media (max-width: 768px) {
    .zic{
        border-radius: 0 0 0 200px;
    }
    .zac2{
        border-radius: 0 200px 0 0;
    }
}








/* Sección de los cuadros usados en oportundiad */
.cont-1{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    z-index:-1;
}
.sqare{
    width:600px;
    border-radius:var(--rad2);
    box-shadow:var(--s);
    z-index:1;
}
.cont-1-content{
    width:600px;
    padding:20px;
    box-shadow:var(--s);
    justify-content:center;
}

@media (max-width: 768px) {
    .sqare{
        width:100%;
    }
}

.rad-der{
    border-radius:0 var(--rad2) var(--rad2) 0;
    margin-left:-20px;
    padding-left:60px;
}
.rad-izq{
    border-radius:var(--rad2) 0  0 var(--rad2);
    margin-right:-20px;
    padding-right:60px;
}









/*seccion de la entrada rectangular-fabrica dxn */
.imgCompleto{
  width:300px;
  margin:auto;
  height: 450px;
  object-fit: cover;
  display: block;
}
.imgCompleto, .textoInferior{
  width: 100%;
}
.entryImg {
  width:98%;
  box-shadow: var(--s);
  border-radius: var(--rad2);
  position:relative;
  overflow: hidden;
  cursor:pointer;
  margin:15px auto;
}
.entryImg img{
  transition:transform 0.3s ease;
}
.entryImg img:hover{
  transform:scale(1.1);
  box-shadow: var(--s2);
}
.textoInferior {
  position: absolute;
  bottom: 0;
  color:white;
  text-align: center;
  padding:7px;
  padding-bottom:20px;
}
.textoInferior h2{
    margin:0;
}
@media (max-width: 768px) {
  .tazacafe{
    width:370px;
  }
}

















    /* Seccion de las flechas solución */
.solution-container {
    gap: 30px;
    width:100%;
    align-items:Center;
}
.target-item {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0.5;
    transition: all 0.5s ease;
}
.target-item.active {
    opacity: 1;
}
.target {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}
.target-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.arrow {
    position: absolute;
    width: 80px;
    height: 8px;
    background-color: #333;
    top: 71px;
    left: -90px;
    transform-origin: right center;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.3s;
    opacity: 0;
} 
.arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 20px solid #333;
    right: -20px;
    top: -6px;
}
.target-item.active .arrow {
    transform: translateX(0);
    opacity: 1;
}
.target-text {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    transform: translateX(20px);
    transition: transform 0.5s ease;
}
.target-item.active .target-text {
    transform: translateX(0);
}
.target-text h3 {
    margin-top: 0;
    color: #333;
}
.target-text p {
    color: #666;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .solution-container {
        gap: 20px;
    }
    .target-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .arrow {
        display: none;
    }
    .target-text {
        transform: translateY(20px);
    }
    .target-item.active .target-text {
        transform: translateY(0);
    }
}
















/* Sección de los pilares */
.contenedor4pilares {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('../img/fondoCielo.avif');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.contenedorPilar {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    border-radius: 10px;
}
.contenedorPilar img {
    display: block;
    width: 100%;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease-out, transform 0.5s ease-out;
}
.contenedorPilar img.aparecer-abajo-arriba {
    opacity: 1;
    transform: translateY(0);
}
.contenidoPilar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    text-align: center;
    padding: 5% 3%;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    border-radius: 10px;
    width: 70%;
    height: 60%;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    opacity: 1;
}
.contenidoPilar h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.contenidoPilar p {
    font-size: 1em;
    line-height: 1.5;
}
@media (max-width: 767px) {
  .contenedor4pilares {
    flex-direction: column;
    align-items: center;
   }
  .contenedorPilar {
    width: 70%;
    margin: 10px 0;
    padding: 10px;
  }
  .contenidoPilar {
    width: 90%;
    height: auto;
    padding: 10px;
  }

}













/* Sección del miniform de afíliate a DXN */
.img-centrada{
    width:450px;
}
.subtitle{
    text-align:center;
    font-size:1.1rem;
    font-weight:bold;
    padding:20px;
}
.cardCode{
    max-width:1000px;
    border-radius:var(--rad2);
    border:2px solid gold;
    box-shadow: var(--s);
    margin:30px auto;
    overflow:hidden;
}
.cardCode:hover{
    box-shadow: var(--s2);
    transform:scale(1.05);
}
.benefits-code{
    padding-left:20px;
}
.lateralCode{
    justify-content:space-between; align-items:center;
}
@media (max-width: 768px) {
    .cardCode{
    width:90%;
    }
    .lateralCode{
    gap:20px;
    }
    .img-centrada{
    width:350px;
    }
}









/*4 Botones*/
.btn-load {
    padding: 7px 15px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color:white;
    z-index: 1;
    width:190px;
    justify-content: center;
    border: 2px solid white;
    margin-top:15px;
    box-shadow:var(--s);
    background: var(--golden);
}
.btn-load::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 50px;
    z-index: 0;
}
.btn-load:hover::before {
    width: 100%;
}
.btn-load > span {
    position: relative;
    z-index: 2;
    
}
.btn-load:hover {
    border-color: yellow;
    font-weight: bold;
    text-shadow: var(--txt-sh);
    box-shadow:var(--s2);
}
/*fin estilo boton*/
.orange::before{
    background: linear-gradient(120deg, maroon, gold, #e74c3c);
}
/*Verde*/
.verde::before{
    background: linear-gradient(120deg, green, rgb(0, 107, 0), rgb(0, 211, 0));
}
/*Azul*/
.azul::before{
    background: linear-gradient(120deg, rgb(0, 0, 116), blue, rgb(0, 138, 202));
}
.rojo::before{
    background: linear-gradient(120deg, rgb(116, 0, 0), red, orangered);
}









    /* Seccion de las secciones dinamicas de una vida saludable */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin:0;
    height:550px;
}
.img-group {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.slide-img {
    width: 150px;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.img-group:first-child .slide-img {
    transform: translateX(-25vw);
}
.img-group:last-child .slide-img {
    transform: translateX(25vw);
}
.imgGiratoria {
    border-radius:50%;
    width:350px;
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}



.contenido{
    display:flex;
    justify-content:center;
    align-items:center;
}
.carta2 {
    overflow: hidden;
}
.cuadro-cont{
  max-width:500px;
  border-radius:var(--rad);
  box-shadow: var(--s);
}
/* 1024px es origial pata tablets */
@media (min-width: 768px) and (max-width: 1094px) {
    .content {
        height: auto;
        padding: 20px 50px;
        margin: 0px 0;
    }
    .slide-img {
        width: 150px;
    }
    .contenido{
        flex-direction:column;
    }
    .imgGiratoria {
        width:330px;
    }
}

@media (max-width: 768px) {
    .content {
        height: auto;
        padding: 20px 0px;
        margin: 0px 0;
    }
    .slide-img {
        width: 100px;
    }
    .contenido{
        flex-direction:column;
    }
    .imgGiratoria {
        width:250px;
    }

}












.cuadro{
    border-radius:var(--rad);
    max-height:450px;
    position:relative;
    overflow:hidden;
}
.part-baja{
    border-radius:0 0 var(--rad) var(--rad);
    position:absolute;
    bottom:0;
    width:100%;
}
.cuadroImg{
    width:100%;
    object-fit:cover;
}

.cuadro{
    background-size: 400% 400%;
    animation: brilloMetal 6s ease infinite;
}
.fondoRojoMetalico {
  background: linear-gradient(135deg, #8b0000, #ff0000, #a52a2a, #800000);
}
.fondoVerdeMetalico {
  background: linear-gradient(135deg, #006400, #00ff66, #228b22, #004d00);
}
.fondoAzulMetalico {
  background: linear-gradient(135deg, #00008b, #1e90ff, #4682b4, #0000cd);
}
@keyframes brilloMetal {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}





/* Sobre nuestra empresa */
/* Seccion de cuadros utilizados para filosofia dxn y significado de colores dxn */
.s1{
        background:
        url('../img/fondoSaludab.avif') no-repeat center center fixed;
}
.s2{
        background:
        url('../img/fond-enf2.avif') no-repeat center center fixed;
}
.s3{
        background:
        url('../img/fondoSP.jpg') no-repeat center center fixed;
}
.s4{
        background:
        url('../img/ganodermaplanta.webp') no-repeat center center fixed;
}
.s5{
        background:
        url('../img/FondoNoni.jpg') no-repeat center center fixed;
}
.s6{
        background:
        url('../img/oolongplanta.avif') no-repeat center center fixed;
}
.s7{
        background:
        url('../img/sabilaplanta.webp') no-repeat center center fixed;
}
.s8{
        background:
        url('../img/cordycepsplanta.avif') no-repeat center center fixed;
}
.s9{
        background:
        url('../img/plantaMelenaDeLeon.avif') no-repeat center center fixed;
}   
.s1, .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9{
        background-size: cover;
}
.fondoMundo{
    background:linear-gradient(135deg, rgba(121, 109, 0, 0.8), rgba(255, 217, 0, 0.8), rgba(121, 109, 0, 0.8)),
    url('../img/world.avif') no-repeat center center fixed;
    background-size: cover;
}
.fondoEmpresa{
    background:linear-gradient(135deg, rgba(121, 109, 0, 0.8), rgba(255, 217, 0, 0.8), rgba(121, 109, 0, 0.8)),
    url('../img/fabricaDXN.avif') no-repeat center center fixed;
    background-size: cover;
}
.fondoProductos{
    background:
    url('../img/NuestroProductos.avif') no-repeat center center fixed;
    background-size: cover;
}
.fondoTomarCafe{
       background:linear-gradient(135deg, rgba(121, 109, 0, 0.8), rgba(255, 217, 0, 0.8), rgba(121, 109, 0, 0.8)),
    url('../img/asd2.jpg') no-repeat center center fixed;
    background-size: cover;
}
