/* =========================
   Variables de color y estilos base
   ========================= */
:root{
  --green:#2a7c52;       /* Verde corporativo */
  --orange:#f47b08;      /* Naranja corporativo */
  --text:#2a2a2a;        /* Color de texto principal */
  --muted:#808f2e;       /* Color de texto secundario */
  --marble1:#f7f7f7;     /* Mármol claro */
  --marble2:#ededed;     /* Mármol oscuro */
  --radius:22px;         /* Radio de borde general */
  --shadow:0 14px 36px rgba(0,0,0,.10); /* Sombra estándar */
}

/* =========================
   Reset y configuración global
   ========================= */
*{box-sizing:border-box}
html, body{height: 100%;}
body{
  position: relative;                /* Necesario para el pseudo-elemento de fondo */
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  background-color: #fafafa;         /* Color de respaldo */
  z-index: 0;
}

/* Fondo global con opacidad */
body::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/background-6.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.3;                      /* 30% de opacidad */
  z-index: -1;                       /* Coloca el fondo detrás de todo */
}

/* =========================
   Contenedor principal
   ========================= */
.wrap{width:min(1000px,92vw); margin:0 auto}

/* =========================
   Secciones con fondo mármol semitransparente
   ========================= */
.section{padding:36px 0; position:relative; z-index:0;}
.marble{ position:relative; z-index:0; }
.marble::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 5%,
              rgba(255,255,255,0.95) 0 35%,
              rgba(247,247,247,0.85) 36% 60%,
              rgba(237,237,237,0.75) 61% 100%);
  z-index:-1;
  pointer-events:none;
}

/* =========================
   Tipografía y textos
   ========================= */
h1{font-size:30px; line-height:1.2; color:var(--green); margin:0 0 10px; font-weight:800}
h2{font-size:26px; color:var(--green); margin:0 0 8px; font-weight:800}
h3{font-size:26px; color:var(--green); margin:0 0 6px; font-weight:800}
p{margin:0 0 10px}
ul{margin:6px 0 10px 18px}
.muted{font-size:26px;color:var(--muted);font-weight:500}
.small{font-size:26px}
.orange{color:var(--orange)}

/* =========================
   Cabecera y logo
   ========================= */
.top-band{position:relative; padding:18px 0}
.top-band .logo{position:absolute; left: 850px; top:-10px; width:250px}

/* =========================
   Sección Promesa de Calidad
   ========================= */
.intro {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  position: relative; /* agrega esto si no está */
  left: 300px;        /* desplazamiento horizontal */  
}

.serv {
  color:#5a4836;
  position: relative; /* agrega esto si no está */
  top: 0px;        /* desplazamiento vertical */  
}

.chef{
  width:250px;
  height:250px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:var(--shadow);
  position: relative; 
  left: -50px;
}

.chef:hover {
  transform: scale(1.15); /* aumenta el tamaño en 20% */
}

.bullets h3{color:#ff7a00; font-size:26px; margin:0 0 8px;  
  position: relative; 
  left: 100px;        /* desplazamiento horizontal */
  top: 50px;
}
.bullets ul{font-size: 20px;
  position: relative; /* agrega esto si no está */
  left: 50px;     
  top: 50px;   /* desplazamiento vertical */
}
.serv ul{list-style:none; padding:0; margin:0}
.serv li{font-size:20px; margin:2px 0}


/* =========================
   Galería de platillos (3 columnas)
   ========================= */
.row3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:14px}
.thumb{aspect-ratio:16/11; border-radius:8px; overflow:hidden; background:#ddd; box-shadow:var(--shadow)}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}
.thumb:hover {
  transform: scale(1.1); /* aumenta el tamaño en 20% */
}

/* =========================
   Sección Soluciones Integrales (mosaico)
   ========================= */

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 22px;
}
    
.div1 {
    grid-row: span 2 / span 2;
}

.div1 img {
  width: auto;    
  height: 640px;
  border-radius:8px;
  box-shadow:var(--shadow);
}

.div1:hover {
  transform: scale(1.05); /* aumenta el tamaño en 20% */
}

.div2 {
    grid-column: span 2 / span 2;
}

.div3 {
    grid-column-start: 2;
    grid-row-start: 2;
}

.div3 img {
  width: auto;     /* ocupa el 80% del ancho del div4 */
  height: 300px;
  border-radius:8px;
  box-shadow:var(--shadow);
}

.div3:hover {
  transform: scale(1.05); /* aumenta el tamaño en 20% */
}

.div4 {
    grid-column-start: 3;
    grid-row-start: 2;
}
   
.div4 img {
  width: auto;     /* ocupa el 80% del ancho del div4 */
  height: 300px;
  border-radius:8px;
  box-shadow:var(--shadow);
}
.div4:hover {
  transform: scale(1.05); /* aumenta el tamaño en 20% */
}

           
/* =========================
   Sección Compras Inteligentes
   ========================= */
.compras{display:grid; grid-template-columns:.9fr 1.1fr; gap:24px; align-items:center}
.compras-left{display:grid; grid-template-rows:1fr 1fr; gap:20px}
.mini{border-radius:8px; overflow:hidden; box-shadow:var(--shadow); aspect-ratio:16/9; background:#ddd}
.mini img{width:100%; height:100%; object-fit:cover; display:block}
.mini:hover {
  transform: scale(1.05); /* aumenta el tamaño en 20% */
}

/* =========================
   Sección de Contacto
   ========================= */
.contact-grid{
  display:flex;
  grid-template-columns:1fr 1fr;
  gap:24px;justify-content:center;
}

.contact-card{
  background:#6e8f5f33;
  border:1px solid #cfe0c8;
  padding:32px;
  border-radius:8px;
  box-shadow:var(--shadow);
  margin-right: 30px;
  display: flex;
  align-items: center;  /* centra verticalmente logo y texto */
  justify-content: center;  /* centra horizontalmente */
  gap: 20px;             /* espacio entre logo y texto */
  width: 100%;           /* ocupa todo el ancho */
  text-align: center;
}

.contact-logo {
  width: 150px;           /* ajusta tamaño del logo */
  height: auto;
}



.contact-title{font-size:36px;font-weight:700; color:var(--green)}

/* =========================
   Bandas de imagen superior e inferior
   ========================= */
.band-img{width:100%; height:170px; object-fit:cover; display:block}


/* =========================
   Estilos responsivos para móviles
   ========================= */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .top-band .logo {
    position: static;
    display: block;
    margin: 0 auto 20px;
    width: 180px;
  }

  .intro {
    left: 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bullets h3,
  .bullets ul {
    position: static;
    margin-top: 16px;
  }

  .chef {
    left: 0;
    margin: 0 auto;
  }
}

/* Teléfonos */
@media (max-width: 768px) {
  h1 { font-size: 22px; }
  h2, h3 { font-size: 20px; }
  .muted, .small { font-size: 16px; }

  .row3 {
    grid-template-columns: 1fr;
  }

  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .div1, .div2, .div3, .div4 {
    grid-column: auto;
    grid-row: auto;
  }

  .div3 img,
  .div4 img {
    width: 100%;
    height: auto;
  }

  .compras {
    grid-template-columns: 1fr;
  }

  .compras-left {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .contact-logo {
    width: 100px;
  }

  .band-img {
    height: 100px;
  }
}
