html{
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1 rem igual a 10 pixeles */
}

*, *::before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
}

h1{
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    color: #08a0a0;           

        }

h1 span{
    font-family: 'Roboto', sans-serif;
    color: rgb(11, 103, 119);
    font-weight: lighter;
    font-size: 6rem;
}  

h2 span{
    
    color: #08a0a0;   


}

h1, h2, h3, h4, h5, h6{
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; /* muy fina y elegante */
    margin: 0 0 1rem 0;
}

h1 {
    font-size: 8rem;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    color: #373737;
              
}

h3 {
    font-size: 3rem;
    
}

p {

    font-size: 1.4rem;
   font-weight: 600;
   
}

/* esto el titulo de la web*/
.nombre-sitio{
    margin-top: 0rem;    
    margin-bottom: 0rem;
    text-align: center;    

}
/* logotipo */

.logo {
  width: 160px;
  margin-left: 2rem;
  margin-bottom: 0; /* elimina espacio extra debajo del logo */
}



.nav-principal{
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 2rem;

}


/* menu cambia de color*/

.nav-principal a {
    color: #333;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.nav-principal a:hover {
    color: #08a0a0;   /* color al pasar el ratón */
    font-weight: bold;
}


/* categorias */
.listado-categorias{
    display: grid ;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;


}

.categorias {
    padding-top: 5rem;
    font-weight: 600;  /* un poco negrita */
    line-height: 1.5;          /* reduce el interlineado */

}


/* esto es una utilidad */
.text-center {
    margin-top: 0rem;    
    margin-bottom: 0rem;
    text-align: center; 
}

.subtitle {
  display: block;          /* hace salto de línea */
  font-size: 4rem;       /* opcional, más pequeño que el título */
  margin-top: 1rem;  
  margin-bottom: 2rem;    /* espacio muy pequeño entre título y subtítulo */
  font-weight: 300;        /* opcional: más ligero */
  color: #08a0a0;           /* color distinto */
  line-height: 1.1;        /* reduce espacio entre líneas */
}

.max-width-30 {
    max-width:30rem;
}


.categorias h2{
    text-align: center;
}

.categoria a {
    text-align: center;
    display: block;
    padding: 2rem;
    font-size: 2rem;

}

.categoria a:hover{
    background-color: rgb(145, 230, 230);
    color: #ffffff;
    border-bottom-right-radius: 8px;
}


.header {
  display: flex;
  align-items: center;
}


.hero {
  background-image: url("../img/principal.jpg");
  min-height: 60vh; /* altura relativa a la pantalla */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-nutricion {
  background-image: url("../img/nutricion1.jpg");
  min-height: 60vh; /* altura relativa a la pantalla */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


.contenedor{
    max-width: 120rem;
    margin: 0 auto ;

}

.contenedor-navegacion{
    border-top: 1px solid rgb(190, 190, 190);

}



.sobre-nosotros{
   
    width: 100%cover;
    padding: 0.5rem;
    /* box-sizing: border-box; */
    margin: 1.5rem;
}



a{
    text-decoration: none;
    color: rgb(78, 78, 78);
}

img{
max-width: 100%;
display: block;

}

.btn {
    background-color: #8cbc00;
    display: block;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    transition: background-color .3s ease-out;
    text-align: center;
}

.btn:hover{
    background-color: #769c02;
}


/* Bloque sobre nosotros "sobre nosotros" */
.sobre-nosotros{
    background-image: linear-gradient(to right, transparent 50%, #037bc0 50%, #037bc0 100%),
    url(../img/nosotros.jpg);
    background-position: left center;
    padding: 10rem 0 ;
    background-repeat:no-repeat;
    background-size: 100%, 120rem;

}

.sobre-nosotros-grid{
    display: flex;
    justify-content: flex-end;

}

.texto-nosotros {
    flex-basis: 50%;
    padding-left: 10rem;
    color: #ffffff;
}

/* listado de productos */

.contenido-principal {

    padding-top: 5rem;

}
.listado-productos{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
    /* gap: 2rem; se puede poner como gap para separación columnas y filas */
}

.producto:nth-child(1){
    grid-column-start: 1;
    grid-column-end: 7;
    display: grid;
    grid-template-columns: 3fr 1fr;



}

.producto:nth-child(1) img {
      height: 43rem;
      width: 100%;
      object-fit: cover;

}

.producto:nth-child(2){
    grid-column-start: 1;
    grid-column-end: 4;

}

.producto:nth-child(2) img,
.producto:nth-child(3) img {
    height: 30rem;
    width: 100%;
    object-fit: cover;
}

.producto:nth-child(3){
    grid-column-start: 4;
    grid-column-end: 7;

}

.producto:nth-child(4){
    grid-column-start: 1;
    grid-column-end: 3;

}
.producto:nth-child(5){
    grid-column-start: 3;
    grid-column-end: 5;

}
.producto:nth-child(6){
    grid-column-start: 5;
    grid-column-end: 7;

}

.producto {
    background-color: #037bc0;
}

.texto-producto {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    
}

.texto-producto h3 {
    margin: 0;
}

.texto-producto p {
    margin: 0 0 .5rem;
}


.texto-producto .precio {
    font-size: 2.8rem;
    font-weight: 900;
    
}

/* Footer */

.site-footer {
    border-top: 1px solid #e1e1e1;
    margin-top: 5rem;
    padding-top: 5rem;
}

.site-footer h3 {
    margin-bottom: .5rem ;
    color: #08A0A0;

}

.grid-footer {
    display: flex;
    gap: 2rem;

}

.grid-footer div {
    flex: 1;
}

.site-footer a {
    display: block;
    font-size: 1.5rem;

}

.copyright {
    margin-top: 5rem;
    text-align: center;
    font-size: 1rem;

}

/* nosotros */
.contenido-nosotros {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-columns: repeat(auto-fit, minmax(25rem,1fr));
    column-gap: 4rem;
   
}

.informacion-nosotros {
    /* GRACIAS EL DISPLAY FLEX HAY ACCESO A LA ALINEACION VERTICAL */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* nosotros  */

.contenido-nosotros {
display: grid;
grid-template-columns: 1fr 2fr;
/* aqui es para hacer que sea responsive para mobiles */
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
column-gap: 4rem;

}

/* BLOG */

.contenedor-blog {
    display: grid;
    grid-template-columns: 2fr 1fr;
    columns: 4rem;

}

.entrada{
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 4rem;
    margin-bottom: 2rem ;
}

.entrada:last-of-type {
 border: none;

}

.entrada-meta {
 display: flex;
 justify-content: space-between;
}

.entrada-meta p {
    font-weight: 700;


}

.entrada-meta span {
    color: #037bc0

}

.contenido-entrada-blog {
    width:60rem;
    margin: 0 auto;
}

/*.galeria {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.galeria img {
    height: 40rem;
    width: 40rem;
    object-fit: cover;
}*/

/*team*/

.team {
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Cormorant', serif; /* o la fuente que quieras */
}

.team-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 en 4 */
  gap: 2rem; /* espacio entre tarjetas */
}

.team-member {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%; /* foto redonda */
  margin-bottom: 1rem;
}

.team-member h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-weight: 500; /* un poco negrita */
}

.team-member p {
  margin: 0;
  color: #555;
  font-weight: 300;
}

/* Efecto hover */
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 en 2 en tablet */
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 en 1 en móvil */
  }
}


/*F footer */

.footer-light {
  background-color: #ffffff;
  color: #037bc0;
  padding: 4rem 1rem 2rem;
  border-top: 1px solid #e5e7eb;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.footer-light-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
/*fuente titulo del footer*/
.footer-light-col h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.footer-light-col p,
.footer-light-col a {
  font-size: 1.2rem;
  color: #4b5563;
  line-height: 1.6;
}

.footer-light-col ul {
  list-style: none;
  padding: 0;
}

.footer-light-col ul li {
  margin-bottom: 0.6rem;
}

.footer-light-col a {
  text-decoration: none;
  position: relative;
}

.footer-light-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.footer-light-col a:hover::after {
  width: 100%;
}

.footer-light-bottom {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}



/* mapa de google*/

.contacto-mapa {
  background: #ffffff;
  padding: 40px 20px;
}

.contacto-mapa h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.mapa-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.mapa-container iframe {
  width: 100%;
  height: 320px;
  border: 0;
}


/* aviso legal*/

.legal-section {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
  line-height: 1.6;
  color: #111827;
}

.legal-header h1 {
  margin: 0 0 24px;
  font-size: 26px;
}

.legal-content h2 {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
}

.legal-content ul {
  padding-left: 20px;
}


/* para lo de nutrición la ventana con datos*/

.modal-nutricion {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-nutricion.show {
  display: block;
}

.modal-nutricion-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-nutricion-contenido {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 420px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.cerrar-nutricion {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

.categoria {
  cursor: pointer;
}

.modal-nutricion-contenido {
  font-family: 'Roboto', sans-serif;
}
.modal-nutricion-contenido h2 {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.modal-nutricion-contenido p {
  font-weight: 400;
}


/* =========================
   RESPONSIVE (móvil/tablet)
   ========================= */

/* Base útil */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* TABLET y abajo */
@media (max-width: 1024px) {

  .contenedor { padding: 0 1.5rem; }

  /* Menú */
  .nav-principal{
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
  }

  /* Categorías */
  .listado-categorias{
    grid-template-columns: repeat(2, 1fr);
  }

  /* Productos */
  .listado-productos{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }

  /* Footer */
  .grid-footer{
    flex-wrap: wrap;
  }
}

/* MÓVIL */
@media (max-width: 768px) {

  /* Header / logo */
  .header{
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .logo{
    margin-left: 0;
    width: 140px;
  }

  /* Títulos (mas pequeños para móvil) */
  h1{ font-size: 3.2rem; }
  h1 span{ font-size: 3.6rem; }
  h2{ font-size: 2.6rem; }
  h3{ font-size: 2.2rem; }
  p{ font-size: 1.4rem; }

  /* Menú en columna */
  .nav-principal{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-principal a{
    width: 100%;
    padding: 1rem;
    border-radius: .8rem;
  }

  /* Hero un poco menos alto en móvil */
  .hero,
  .hero-nutricion{
    min-height: 40vh;
  }

  /* Categorías a 1 columna */
  .listado-categorias{
    grid-template-columns: 1fr;
  }

  .categoria a{
    font-size: 1.8rem;
    padding: 1.5rem;
  }

  /* Sección "sobre nosotros" (para que se vea bien en móviles) */
  .sobre-nosotros{
    background-image: url(../img/nosotros.jpg);
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
  }

  .sobre-nosotros-grid{
    justify-content: center;
  }

  .texto-nosotros{
    flex-basis: 100%;
    padding: 0 2rem;
    text-align: center;
  }

  /* Productos: en móvil, mejor 1 columna y quitar las colocaciones por nth-child */
  .listado-productos{
    grid-template-columns: 1fr;
  }

  .producto:nth-child(1),
  .producto:nth-child(2),
  .producto:nth-child(3),
  .producto:nth-child(4),
  .producto:nth-child(5),
  .producto:nth-child(6){
    grid-column: auto;
    display: block;
  }

  .producto:nth-child(1) img,
  .producto:nth-child(2) img,
  .producto:nth-child(3) img{
    height: auto;
  }

  /* Footer en columna */
  .grid-footer{
    flex-direction: column;
  }

  .footer-light-container{
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Blog */
  .contenedor-blog{
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .entrada-meta{
    flex-direction: column;
    gap: .5rem;
  }

  .contenido-entrada-blog{
    width: 100%;
  }
}



/* cambio en mobiles para texto blanco a negro */

@media (max-width: 1024px) {
  .texto-nosotros,
  .texto-nosotros h2,
  .texto-nosotros p {
    color: #222;
  }
}



/* =========================
   AJUSTES SOLO TABLET
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Contenedor con más aire */
  .contenedor {
    padding: 0 2rem;
  }

  /* MENÚ */
  .nav-principal {
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.8rem;
  }

  /* CATEGORÍAS: mejor 2 columnas en tablet */
  .listado-categorias {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SOBRE NOSOTROS */
  .texto-nosotros {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
  }

  /* PRODUCTOS: 2 columnas en tablet */
  .listado-productos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Evitar tamaños gigantes */
  h1 {
    font-size: 5rem;
  }

  h1 span {
    font-size: 5.5rem;
  }

  h2 {
    font-size: 3.2rem;
  }

}


/* =========================
   PRODUCTOS – TABLET
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {

  .listado-productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Anulamos los layouts especiales */
  .producto {
    grid-column: auto !important;
    display: block;
  }

  .producto img {
    width: 100%;
    height: 28rem;
    object-fit: cover;
  }

  .texto-producto {
    padding: 2rem 1.5rem;
  }

  .texto-producto h3 {
    font-size: 2.2rem;
  }

  .texto-producto p {
    font-size: 1.5rem;
    line-height: 1.5;
  }
}