@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
 }

 body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-x: auto;
    overflow-y: scroll;
}

/* HEADER sticky */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color:#D9BF77;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

/* Logo */
.logo-container {
  width:100%;
  height: 100%;
  max-width: 100px;
  overflow: hidden;
  position: relative; 
}

.logo-image {
  width: 100%; /* La imagen ocupa el 100% del ancho del contenedor */
  height: 100%; /* La imagen ocupa el 100% del alto del contenedor */
  object-fit: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  /*  Otras opciones para object-fit:
      - contain: Ajusta la imagen para que quepa dentro, manteniendo la proporción
      - fill: Estira la imagen para que llene el contenedor (puede distorsionar)
      - none: Muestra la imagen a su tamaño original*/
  object-position: center; /* Centra la imagen dentro del contenedor */
  /*  Otras opciones para object-position:
      - top, bottom, left, right, top left, etc.
      - Puedes usar valores porcentuales o píxeles para mayor precisión
  */
}

/* NAV */
nav ul {
  justify-content: center;
  list-style: none;
  display: flex;
  gap: 25px;
  transition: all 0.3s ease-in-out;
}

nav ul li a {
  text-decoration: none;
  color: #3C3C3C;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: #aa3a2f;
  color: #ffffff;
  transform: scale(1.05);
}

/* Toggle (menú hamburguesa) */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: #F0F7F4;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: #f39c12;
}

/* Responsive */
@media (max-width: 600px)
{
  .menu-toggle {
    display: flow-root;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 30px;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.3s forwards;
  }

  nav ul.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  nav ul li a {
    color: #2c6e49;
    padding: 12px;
    border-radius: 8px;
    text-align: right;
  }

  nav ul li a:hover {
    background-color: #f39c12;
    color: #ffffff;
  }


/* Animación de entrada */
@keyframes fadeIn 
{
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 .carniceria .card-container{
    grid-template-columns: 1fr !important; /* apila en lista */
  }

  /* 2) Mantén una “ancho/dimensiones” consistente y centrado (opcional) */
  .carniceria .card{
    max-width: 560px;        /* ancho cómodo en móviles grandes */
    margin-inline: auto;      /* céntralo si el contenedor es más ancho */
  }

  /* 3) Ajusta la proporción de imagen para que la card se sienta equilibrada */
  .carniceria .card .media{
    aspect-ratio: 10 / 3;     /* un poco más alta que 16:9 en móvil se ve mejor */
  }

  /* 4) Da más aire al texto en móvil para que no “se coma” contenido */
  .carniceria .card .card-text.clamp-3{
    -webkit-line-clamp: 10;   /* muestra hasta 5 líneas en móvil */
  }

  /* 5) Tip extra de legibilidad en móvil */
  .carniceria .card .card-content{
    padding: 18px;           /* un pelín más de respiración */
  }
}


.hero {
  background-image: url('images/hero_supermercado_villasmarket.webp');
  background-size: cover;
  background-position: center;
  /*height: 500px;
  display: flex;*/
  /*align-items: center;
  justify-content: flex-start;
  padding-left: 30px;
  position: relative;*/
  padding: 80px 20px;
  text-align: center;
  text-decoration: solid;
}

.hero::after {
  background: rgba(0, 0, 0, 0.4);
  content:none;
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero h1 {
    /*display: flex;*/
    font-family: Lobster;
    font-size: 10vw;
    color: #519872;
    margin-bottom: auto;
    text-shadow: 5px 5px 5px rgba(10, 4, 4, 5.8);
    top:auto;
}

.hero p {
  font-size: 40px;
  color: #aa3a2f;
  margin-bottom: 20px;
  border: 2px solid #F39C12; /* grosor, estilo, color */
  padding: 10px;
  border-radius: 5px; /* opcional: bordes redondeados */
}

h2
 {
    font-size: 3vw;
    font-weight: 500;
    unicode-bidi: initial;
    color: #FFFFFF;
    text-shadow: 5px 5px 5px rgba(10, 4, 4, 5.8);
  }
.btn-cta {
  background-color: #f39c12;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #aa3a2f;
}

.section_especiales{
  background-color: #519872d9;
  padding: 150px 60px;
  text-align: center;
  display: block;
  unicode-bidi: isolate;
}

.card-special {
  display: inline-table;
  max-width: 400px;
  margin: 20px;
  background-color: #D9BF77;
  border-radius: 10px;
  overflow: hidden;
  text-align: justify;
  box-shadow: 0 7px 13px rgba(0, 0, 0, 1.2);
}

.card-special img 
{  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px
  /*overflow-clip-box: content-box;*/
}

/* Carrusel con CSS scroll-snap */


.carousel-section{ padding: 40px 20px; }

.carousel-head{
text-align: center;
  max-width: 100%;
  margin: 0 auto 30px;

}

.carousel-section h2{ 
   font-size: clamp(26px, 8.5vw, 90px);
  margin: 0 0 6px;
  letter-spacing: .4px;
  color: #ffae00;
  text-align: center;
    font-family: Lobster;
    font-weight: 500;
    unicode-bidi: initial;
 }
.carousel{
  display: grid; grid-auto-flow: column; gap: 14px;
  grid-auto-columns: minmax(260px, 30%);
  overflow-x: auto; padding: 6px 10px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 10px;
}
.carousel::-webkit-scrollbar{ height: 8px; }
.carousel::-webkit-scrollbar-thumb{ background: #1b2741; border-radius: 99px; }
.slide{
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.slide img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.slide h3{ margin: 10px; }

.carousel-hints{
  display: flex; gap: 10px; justify-content: center; align-items: center;
  color: var(--muted); font-weight: 600; margin-top: 8px;
}
.carousel-hints span:first-child,
.carousel-hints span:last-child{ font-size: 18px; }

/* Grid de recetas */
.recipes{ padding: 48px 20px; }
.recipes h2{ text-align: center; margin: 0 0 20px; }
.cards{
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1200px; margin: 0 auto;
}


.carniceria {
  background-image: url(images/Fondo01.webp);
  background-size: cover;
  background-repeat: no-repeat;
  font-family:sans-serif;
  font-size: medium;
  padding: 50px 20px;
}

.card-container{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch; /* estira las cards a igual altura dentro de su fila */
  justify-content: center;
  max-width: 1805px;
  margin: 20px auto;
  padding: 40px 20px;
}

/* Unificar .card: usar flex columna y ocupar 100% de alto */
.card{
  /* Anula definiciones previas (inline-table, max-width:400, etc.) */
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;

  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 7px 13px rgba(0,0,0,.12); /* un poco más suave */
}

/* Zona de imagen con proporción fija para que TODAS se vean iguales */
.card .media{
  width: 100%;
  aspect-ratio: 16 / 9;       /* MISMA ALTURA para todas las imágenes */
  overflow: hidden;
}
.card .media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* recorta de forma uniforme */
}

/* Contenido flexible: empuja los botones al final */
.card-content{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-head{
  text-align: center;
  max-width: 100%;
  margin: 0 auto 28px;
}
/* Título + texto con justificado y opción de “clamp” para igualar alturas */
.card-title{
  margin: 0;
  padding: 5px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}
.card-text{
  margin: 0;
  text-align: justify;
  line-height: 1.6;
  color: #1f2937;
}
/* Si quieres forzar que todos los resúmenes tengan el mismo alto: */
.card-text.clamp-3{
  display: -webkit-box;
  -webkit-line-clamp: 10;          /* 3 líneas visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

/* Acciones pegadas abajo para todas */
.card-actions{
  margin-top: auto;               /* se va al fondo */
  display: flex;
  gap: 10px;
}

/* Ajustes de elementos previos que causaban saltos */
.caja-color{ width: 100% !important; } 

.h2-card_tiitle{ 
font-size: clamp(26px, 10.5vw, 90px);
  letter-spacing: .4px;
  color: #ffae00;
  text-align: center;
    font-family: Lobster;
    font-weight: 500;
   
}




.pedido-btn {
  background-color: #e67e22;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

footer {
  background-color: #2C3E50;
  color: #ECF0F1;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h2,
.footer-section h3 {
  margin-bottom: 10px;
  color: #F39C12;
}

.footer-section a {
  color: #ECF0F1;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}
.social-icons {
  /*max-width: 100%;
  width: 100%;*/
  display: flex;
  flex-direction: column;
  gap: 8px;
  /*flex-wrap:wrap;*/
}

.icon {
  display: inline-block;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.app-as {
 background-image: url('images/AppStore.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width:200px;
  height: 100%;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 50px;
}   

.app-ps {
background-image: url('images/PLAYSTORE.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 200px;
    height: 100%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
  }

/*

social-icons a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: #ECF0F1;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
  margin-bottom: 8px;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.icon.fb {
  background-color: #3b5998;
}

.icon.ig {
  background-color: #e1306c;
}

.icon.wa {
  background-color: #25D366;
}
*/
.market-button {
    display: inline-block;
    margin-right: 14px;
    margin-bottom: 14px;
    padding: 5px 14px 5px 45px;
    transition: background-color .3s;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-position: center left 12px;
    background-color: #fff;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    text-decoration: none;
}

.site-footer .widget {
    margin-bottom: 10px;
}
.widget {
    margin-bottom: 40px;
}

.social-icons svg {
  width: 20px;
  height: 10px;
  margin-right: 8px;
  /*margin-top: center;*/
  fill: white;
}

.icon.fb:hover { background-color: #3b5998; }
.icon.ig:hover { background-color: #e1306c; }

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid #7F8C8D;
  padding-top: 15px;
}
