/*Root & fuentes*/
@import url('https://fonts.googleapis.com/css2?family=Diphylleia&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
:root{
    --width_componente: 99rem;
    --height_componente: 40rem; 
    --centrar_margin: 0 auto;
    /*Fuentes*/
    --dyphylleia: "Diphylleia", serif;
    --IBM: "IBM Plex Serif", serif;
    /*Paleta*/
    --limonero: #fffff0;
    --atencion:  #ff7730 ;
    --negroide: #4F3A3A;

}
/*REMs*/
html {
    font-size: 62.5%;
    box-sizing: border-box; /*Quitar el borde de default*/
}
body {
    font-size: 16px;
    padding: 0;   
    margin: 0;
    color: var(--negroide);
    }

*, *:before, *::after{
    box-sizing: inherit;
}
/*Utilidades*/
body{
    text-align: center;
    background-color: var(--limonero);
    font-size: 1.8rem;
}
h1, h2, h3, h4, h5 {
    font-family: var(--dyphylleia);
}
p {
    font-family: var(--IBM);
    color: var(--negroide);
}
img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* --- Menú de redes --- */
.redes {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 1rem;
  margin: var(--centrar_margin);
  width: var(--width_componente);
  height: 6rem;
  max-width: 100vw;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.redes_menu img{
 height: 4rem;
 width: auto;
}
.redes_toggle {
  display: none;
  font-size: 8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--negroide);
}
.redes_menu{
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    width: 100%;
}

.redes_menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--IBM);
  font-size: 2rem;
  color: var(--negroide);
}


/* Versión móvil */
@media (max-width: 989px) {
  .redes_toggle {
    display: block;
  }

  .redes_menu {
    display: none;
    flex-direction: column;
    background: var(--atencion);
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    margin: 2rem 0;
  }
  .redes_menu a{
    color: var(--limonero) !important;
  }

  .redes_menu.activo {
    display: flex;
  }
}


/*Brand*/
.brand{
    display: flex;
    flex-direction: row;
    width: var(--width_componente);
    height: var(--height_componente);
    margin: var(--centrar_margin);
    margin-top: 2rem;
    margin-bottom: 8rem;
    text-align: start;

    
}
.brand_principal{
    width: 49.5rem;
    height: 40rem;
    padding-left:1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.brand_display{
    width: 49.5rem;
    height: 40rem;
    padding-left: 1rem;
}
.brand_display img{
    width: 49.5rem;
    height: 40rem;
}
.brand_principal_filete{
    height: 1rem;
    width: 15rem;
    background-color: black;
}
.brand p{
    margin-bottom: 4rem;
}

.brand a{
    background-color: var(--atencion);
    font-size: 2rem;
    color: var(--limonero);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;

}
@media screen and (max-width: 989px){
    .brand{
        flex-direction: column;
        height: auto;
        width: 100vw;
        max-width: 50rem;
        text-align: center;
        margin-bottom: 8rem;
    }
    .brand_principal{
        height: auto;
        width: 100%;
        padding:  0 2rem;
        margin-bottom: 4rem;
    }
    .brand_display{
        width: auto;
        max-width: 95%;   
        padding: 0;     
    }
    .brand_display img{
        width: auto;
        max-width: 95%;
        object-fit: cover;
        margin-top: 4rem;
    }
}
/*Galería*/
.galeria{
   
    width: var(--width_componente);
    height: auto;
    margin: var(--centrar_margin);
    margin-top: 2rem;
    margin-bottom: 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-columns: 100%;
    gap: 2rem;
}
.galeria img {
    width: 100%;
    border-radius: 15px;
}
.galeria_principal{
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
}
@media screen and (max-width: 989px){
    .galeria{
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100vw;
        max-width: 50rem;
        height: auto;
        padding: 0 1rem;
    }
    .galeria_principal{
        grid-column-start: 1;
        grid-column-end:3;
        grid-row-start: 3;
        grid-row-end: 4;
    }
}
/*Breves*/
.breves{
    margin: var(--centrar_margin);
    margin-bottom: 8rem;
    width: var(--width_componente);
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.breves_card{
    width: 25%;
}
.breves_card_cabeza{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
.breves_card_cabeza h2 {  
    font-family: var(--IBM);  
    font-size: 2rem;
}
.breves_card_cabeza p{
    font-size: 1.6rem;
}
.breves_card_cabeza img{
    width: 40px;
    height: 40px;
    color: var(--atencion);
}
@media screen and (max-width: 989px){
    .breves{
        flex-direction: column;
        width: 100vw;
        max-width: 50rem;
        margin-bottom: 2rem;
    }
    .breves_card{
        width: 100vw;
        max-width: 50rem;
    }
    .breves_card_cabeza{
        justify-content: center;
    }
    .breves_card_cabeza img{
        margin-right: 3rem;
    }
}
/*Pleca*/
.pleca{
   
    margin: var(--centrar_margin);
    width: var(--width_componente);
    height: 1rem;
    margin-top: 2rem;
    margin-bottom: 8rem;
    
}
.pleca_filete{
    background-color: black;
    height: 1rem;
    width: 30rem;
}
@media screen and (max-width: 989px){
    .pleca{
        max-width: 100vw;
    }
    .pleca_filete{
        max-width: 100vw;
        width: 20rem;
    }
}
/*Producto*/
.productos{
   
    width: var(--width_componente);
    height: auto;
    margin: var(--centrar_margin);
    margin-bottom: 8rem;
}
.productos_card{
    width: var(--width_componente);
    height: auto;    
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr 1fr 1fr;
}
.productos_titulos{
    margin-bottom: 8rem;
}
.productos_card_maquina{
    width: 100%;    
    height: 25rem;
    padding: 0 3rem;
}
.productos_card_maquina_titulo{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;   
    align-items: center;
    justify-content: space-around;
}
.productos_card_maquina_titulo img{
    width: 7rem;
    height: 7rem;
}
@media screen and (max-width: 989px){
    .productos{
        width:100vw;
        max-width: 50rem; 
        margin-bottom: 0;       
    }
    .productos_card{
        width: 100%;
        grid-template-columns: 1fr  ;
    }
    
    }
    /*Carrusel*/
    
.carrusel {
    position: relative;
    max-width: 100%;
    margin: auto auto;
    overflow: hidden;
    border-radius: 12px;
    width: 99rem;
    height: 55.7rem;        
    }
@media screen and (max-width: 989px){
    .carrusel{
        width: 100%;
        height: auto;
        border-radius: 0;
    }
}

.carrusel_slider {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.carrusel_slider img {
  width: 100%;
  flex-shrink: 0;
}

/* Flechas */
.carrusel .prev,
.carrusel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

.carrusel .prev { left: 15px; }
.carrusel .next { right: 15px; }

/* Indicadores */
.carrusel .indicadores {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.carrusel .indicadores span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.carrusel .indicadores .active {
    background: #fff;
}

.testimonios {
    text-align: center;
    padding: 50px 20px;  
    position: relative;
    height: 50rem;
    
}
@media screen and (max-width: 989px){
    .testimonios {
        height: 72rem;
    }

}


.testimonios h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    color: var(--negroide);
    font-family: var(--dyphylleia);
}

.testimonios_slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    min-height: 150px;
}

.testimonio {
  display: none;
  font-size: 3rem;
  line-height: 1.6;
  color: #444;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonio.activo {
    display: block;
    opacity: 1;
}

.testimonio h4 {
    margin-top: 15px;
    font-weight: bold;
    color: #222;
}

.testimonios_indicadores {
    margin-top: 20px;
}

.testimonios_indicadores span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonios_indicadores .activo {
    background: #28a745; /* mismo verde del botón flotante */
}


/*Pie*/
.pie{
    width: var(--width_componente);
    margin: var(--centrar_margin);
    margin-bottom: 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}
.pie div {
    display: flex;
    flex-direction: column;
   
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.pie img{
    width: 12rem;
    height: auto;
    margin: var(--centrar_margin);
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.pie a, .pie code{
    margin-top: 2rem;
}
.pie h3{
    margin-bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media screen and (max-width: 989px){
    .pie{
    grid-template-columns: 1fr;
    max-width: 100%;        
    }
}

/*Llamar*/
.llamar-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999; /* siempre encima */
    width: 33rem;
    padding: 1rem;
}

.llamar-flotante a {
  display: inline-block;
  background: #28a745; /* verde llamativo */
  color: var(--limonero);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 3.6rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}
