/* =========================================================
   DONATA PASTAS FRESCAS - CSS ORDENADO Y EDITABLE
   ========================================================= */

/* 1. VARIABLES */
:root {
  --bordo: #711515;
  --bordo-oscuro: #541010;
  --bordo-suave: #8f2b22;
  --crema: #fbf3e4;
  --manteca: #fff8ea;
  --masa: #ead7b9;
  --texto: #2f211d;
  --texto-suave: #6d5a51;
  --blanco: #ffffff;
  --sombra: 0 18px 45px rgba(84, 33, 21, 0.16);
  --radio: 24px;
  --max: 1160px;
}

/* 2. RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Rubik', sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* 3. UTILIDADES */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; text-align: center; }
.section-pad { padding: 92px 0; }
.section-kicker {
  color: var(--bordo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'Rubik', sans-serif;
}

h1, h2, h3 { line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); color: var(--bordo-oscuro); }
h3 { font-size: 1.45rem; color: var(--bordo); }
p { color: var(--texto-suave); font-size: 1.05rem; }


/* 4. HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 10px 5vw;
  background: var(--bordo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(50, 13, 10, 0.18);
}
.brand img { width: 200px; height: auto; }
.site-nav { display: flex; gap: 25px; align-items: center; }
.site-nav a {
  color: var(--manteca);
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-nav a:hover { opacity: 0.70; }
.nav-cta {
  background: var(--manteca);
  color: var(--bordo) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover {
  opacity: 1;
  background: var(--blanco);
}
.nav-toggle { display: none; }

/* 5. HERO */
.hero {
  position: relative;
    min-height: clamp(520px, 86vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px; /* altura del header */
  text-align: center;
  color: var(--blanco);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(65, 15, 12, .52), rgba(65, 15, 12, .26), rgba(65, 15, 12, .66)),
    url('../assets/hero-ravioles.jpg') center / cover no-repeat;
  transform: scale(1.06);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  padding: 15px 20px;
}
.hero .eyebrow { color: var(--manteca); }
.hero h1 { color: var(--blanco); text-shadow: 0 7px 22px rgba(0,0,0,.26);
font-weight: 550; }
.hero-text {
  margin: 22px auto 30px;
  max-width: 640px;
  color: #fff2df;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* 6. BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform .25s ease, background .25s ease, color .25s ease;
   text-transform: uppercase;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bordo); color: var(--manteca); }
.btn-primary:hover { background: var(--bordo-oscuro); }
.btn-secondary { background: rgba(255, 248, 234, .92); color: var(--bordo); }
.btn-secondary:hover { background: var(--manteca); }

/* 7. INTRO */
.intro {
  background: var(--manteca);
  position: relative;
}

.intro-editorial {
  max-width: 980px;
  text-align: center;
  padding: 70px 20px;
}

.intro-editorial h2 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.intro-editorial p:last-child {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.75;
}

/* 8. SPLIT EXPERIENCIA */
.split { background: var(--crema); }
.split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.split-copy {
  max-width: 440px;
}
.split-copy p:last-child {
  margin-top: 18px;
  line-height: 1.8;
}
.image-card {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--masa);
}
.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 8B. EXPERIENCIA DONATA */
.experiencia-section {
  background: var(--crema);
  position: relative;
  overflow: hidden;
}

.experiencia-section::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(113, 21, 21, 0.10);
  border-radius: 25px;
  pointer-events: none;
}

.experiencia-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.experiencia-copy {
  max-width: 560px;
}

.experiencia-copy h2 {
  margin-bottom: 22px;
}

.experiencia-copy p:last-child {
  max-width: 520px;
  line-height: 1.85;
  font-size: 1.12rem;
}

.experiencia-pilares {
  display: grid;
  gap: 16px;
}

.experiencia-pilar {
  position: relative;
  padding: 24px 26px 24px 78px;
  border-radius: 22px;
  background: rgba(255, 248, 234, 0.72);
  box-shadow: 0 14px 34px rgba(84, 33, 21, 0.08);
  border: 1px solid rgba(113, 21, 21, 0.08);
}

.pilar-numero {
  position: absolute;
  left: 24px;
  top: 25px;
  color: var(--bordo);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.45;
}

.experiencia-pilar h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.experiencia-pilar p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* 9. PRODUCTOS */
.products { background: var(--manteca); }
.section-heading { text-align: center; margin-bottom: 42px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border-radius: 18px;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.product-card div { padding: 16px; }
.product-card p { margin-top: 10px; }

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* 10. MAYORISTA */
.mayorista { background: var(--crema); }
.mayorista-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.mayorista-copy p {
  margin: 18px 0 26px;
  max-width: 560px;
}

/* 11. NOSOTROS */
.nosotros { background: var(--manteca); }
.nosotros p:last-child { margin-top: 18px; }

/* 12. REWARDS */
.rewards {
  background:
    linear-gradient(rgba(122, 30, 30, .65), rgba(88, 19, 19, .70)),
    url('../assets/fideos-pesto.jpg') center / cover no-repeat;
}
.rewards-box {
  max-width: 820px;
  text-align: center;
  background: rgba(255, 248, 234, .94);
  border-radius: var(--radio);
  padding: 84px 44px;
  box-shadow: var(--sombra);
}
.rewards-box p:last-child { margin-top: 14px; }

/* 13. CONTACTO */
.order { background: var(--crema); 
padding: 124px 64px;

}
.order .btn { margin-top: 24px; 
margin-bottom: 24px;}





/* 14. FOOTER */
.site-footer {
  background: var(--bordo);
  color: var(--manteca);
  text-align: center;
  padding: 34px 20px;
}

.site-footer img { 
  width: 120px; /* Ajusta el tamaño máximo del logo */
  margin: 0 auto 14px; 
}

.site-footer p { 
  color: var(--manteca); 
  font-family: 'Rubik', sans-serif; 
  font-size: .9rem; 
}

.credito-web {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
}

.credito-web a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto cuando el ratón pasa por encima del enlace */
.credito-web a:hover {
  color: #f8c100; /* Color dorado para resaltar */
  transform: scale(1.1); /* Efecto de ampliación */
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.7); /* Resplandor dorado */
  animation: glow 1.5s ease-in-out infinite; /* Aplicar animación de resplandor */
}


/* Estilo para el grid de productos */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Grilla flexible */
  gap: 15px;
  
}

/* Estilo para las tarjetas */
.product-card {
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column; /* Esto asegura que los elementos se apilen verticalmente */
  height: 430px; /* Mantén la altura consistente */
}

/* Efecto hover en la tarjeta */
.product-card:hover {
  transform: translateY(-5px);
}

/* Imagen de la tarjeta */
.product-card img {
  width: 100%;
  height: 160px; /* Mantén la altura de la imagen para que todo se vea alineado */
  object-fit: cover;
  border-bottom: 2px solid var(--bordo);
}

/* Contenedor del contenido dentro de la tarjeta */
.product-card div {
  padding: 15px;
  text-align: center;
  flex-grow: 1; /* Asegura que el contenido ocupe todo el espacio disponible */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribuye el contenido para que el enlace quede al final */
}

/* Título de la tarjeta */
.product-card h3 {
  font-size: 1.5rem;
  margin: 3px 0;
  color: var(--bordo);
}

/* Descripción del producto */
.product-card p {
  font-size: 1rem;
  color: var(--texto-suave);
  margin-bottom: 10px;
}

/* Enlace "Ver más" al final de la tarjeta */
.btn-link {
  display: inline-block;
  color: var(--bordo); /* Color que combina con el diseño */
  font-weight: 600;
  text-transform: uppercase;
  margin-top: auto; /* Alinea el enlace al final */
  text-decoration: none; /* Elimina el subrayado */
  transition: color 0.3s ease, transform 0.3s ease;
  margin-bottom: 10px; /* Añade un poco de espacio abajo */
}

/* Efecto hover sobre el enlace "Ver más" */
.product-card .btn-link:hover {
  color: var(--bordo-oscuro);
  transform: scale(1.05);
}

/* Estilos para la página de "Sección en construcción" */
.construction-message {
  text-align: center;
  padding: 50px;
  margin-top: 20%;
}

.construction-message h1 {
  font-size: 2rem;
  color: var(--bordo);
  font-weight: bold;
}

.construction-message p {
  font-size: 1.2rem;
  color: var(--texto-suave);
}
/* Animación de resplandor (glow) */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #f8c100, 0 0 10px #f8c100, 0 0 15px #f8c100;
  }
  50% {
    text-shadow: 0 0 10px #f8c100, 0 0 20px #f8c100, 0 0 30px #f8c100;
  }
  100% {
    text-shadow: 0 0 5px #f8c100, 0 0 10px #f8c100, 0 0 15px #f8c100;
  }
}

/* 15. ANIMACIONES */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Definición de la animación de rebote */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}




/* 16. RESPONSIVE */
@media (max-width: 900px) {
  .section-pad { padding: 70px 0; }
  .split-grid, .product-grid, .mayorista-grid, .experiencia-grid { grid-template-columns: 1fr; }
  .product-card img { height: 240px; }
  .experiencia-grid { gap: 34px; }
  .experiencia-pilar { padding: 22px 22px 22px 70px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 8px 20px; }
  .brand img { width: 92px; }
  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--manteca);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--bordo); }
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bordo);
    padding: 8px 20px 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
  .hero { min-height: 76vh; }
  .hero-bg { background-position: center; }
  .hero-content { padding: 34px 0; }
  .container { width: min(100% - 30px, var(--max)); }
  .product-card img { height: 220px; }
}

@media (max-width: 460px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.9rem; }
  .section-pad { padding: 58px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .product-card img { height: 200px; }
  .rewards-box { padding: 38px 22px; }
  .experiencia-section::before { inset: 10px; border-radius: 24px; }
  .experiencia-pilar { padding: 22px; }
  .pilar-numero { position: static; display: block; margin-bottom: 8px; }
  .order::before {
    inset: 10px;
    border-radius: 22px;}
}

.experiencia-image {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--masa);
}

.experiencia-image img {
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  object-fit: cover;
}
/* HOVER EXPERIENCIA - EFECTO PREMIUM */
.experiencia-image {
  position: relative;
  overflow: hidden;
}

.experiencia-image img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* capa sutil oscura */
.experiencia-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 15, 10, 0.15);
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* hover */
.experiencia-image:hover img {
  transform: scale(1.15);
  filter: brightness(0.92);
}

.experiencia-image:hover::after {
  opacity: 1;
}
/* BORDE ESTILO EXPERIENCIA EN MAYORISTA */
.mayorista {
  position: relative;
  overflow: hidden;
}

.mayorista::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(113, 21, 21, 0.10);
  border-radius: 25px;
  pointer-events: none;
}

/* BORDE ESTILO DONATA EN CONTACTO */
.order {
  position: relative;
  overflow: hidden;
}

.order::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(113, 21, 21, 0.22);
  border-radius: 25px;
  pointer-events: none;
}
