/* styles.css */
:root {
  --melocoton: #FFD8CC;
  --menta: #D8F3DC;
  --lavanda: #E9D8FD;
  --gris-claro: #F8F9FA;
  --gris-oscuro: #495057;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--gris-oscuro); background: var(--gris-claro); }
header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; }
header .logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; color: var(--gris-oscuro); }
nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { text-decoration: none; font-weight: 600; color: var(--gris-oscuro); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: .5rem; background: var(--menta); color: var(--gris-oscuro); padding: .5rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600; }

.hero {
  background: var(--melocoton) url('../images/banner-2.png') center/contain no-repeat;
  color: #fff;
  text-align: center;
  aspect-ratio: 3 / 1;
  height: auto;
  padding: 0; /* Elimina padding que empuja contenido hacia abajo */
  position: relative;
}

.hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; }
.btn-catalogo { background: var(--lavanda); color: var(--gris-oscuro); padding: .75rem 1.5rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; }
.productos {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}
.card h3 { margin: 1rem 0; font-size: 1.25rem; }
.card p { font-size: .9rem; color: #6c757d; }
.card a { display: inline-block; margin: 1rem 0 1.5rem; text-decoration: none; font-weight: 600; }
.porque { background: var(--lavanda); padding: 4rem 2rem; text-align: center; }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.item h4 { margin-bottom: .5rem; font-family: 'Montserrat', sans-serif; }
.pasos { padding: 4rem 2rem; text-align: center; }
.pasos ol { display: flex; flex-wrap: wrap; justify-content: space-around; list-style: none; max-width: 1000px; margin: 0 auto; counter-reset: step; }
.pasos li { flex: 1 1 200px; margin: 1rem; }
.pasos li::before { content: counter(step); counter-increment: step; display: block; font-size: 2rem; font-weight: 700; color: var(--menta); margin-bottom: .5rem; }
.testimonios { background: var(--gris-claro); padding: 4rem 2rem; text-align: center; }
.testimonios .cita { max-width: 800px; margin: 1rem auto; font-style: italic; }
.testimonios .autor { font-weight: 600; margin-top: .5rem; }
.cta { background: var(--menta); text-align: center; padding: 3rem 2rem; }
.cta a { background: var(--gris-oscuro); color: #fff; padding: .75rem 1.5rem; border-radius: 12px; text-decoration: none; font-weight: 600; }
footer { background: #fff; padding: 2rem; text-align: center; font-size: .9rem; }
footer a { color: var(--gris-oscuro); text-decoration: none; }

/* Ajustes responsivos: contenedores e imágenes fijos en desktop */
@media (min-width: 768px) {
  .productos {
    grid-template-columns: repeat(auto-fit, 500px);
    justify-content: center;
  }
  .card {
    margin: 0;
  }
  .card img {
    width: 100%;
    height: 333px;
    object-fit: cover;
  }

  /* styles.css (fragmentos añadidos) */

/* Sección anticipación testimonios en homepage */
.home-testimonios {
  background: var(--lavanda);
  text-align: center;
  padding: 3rem 2rem;
}
.home-testimonios h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}
.home-testimonios .preview {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.home-testimonios .cta-testimonios a {
  margin: 0 .5rem;
  padding: .75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.btn-ver-todos { background: var(--gris-oscuro); color: #fff; }
.btn-dejar-resena { background: var(--menta); color: var(--gris-oscuro); }

/* Página testimonios */
.page-testimonios {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.page-testimonios h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}
.testimonio-list {
  display: grid;
  gap: 2rem;
}
.card-testimonio {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-testimonio .rating { font-size: 1.25rem; color: #f5a623; margin-bottom: .5rem; }
.card-testimonio .texto { font-style: italic; margin-bottom: .75rem; }
.card-testimonio .autor { text-align: right; font-weight: 600; }

/* Página dejar-testimonio */
.page-formulario {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.page-formulario h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
}
#form-testimonio label {
  display: block;
  margin-bottom: .25rem;
  font-weight: 600;
}
#form-testimonio input,
#form-testimonio select,
#form-testimonio textarea {
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.btn-enviar {
  background: var(--gris-oscuro);
  color: #fff;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
}

/*--------------------------------------------------*/

/* Contenedor general */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header y Nav */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
}
header .logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
}
nav ul {
  display: flex;
  gap: 1rem;
}
nav a {
  color: var(--gris-oscuro);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem;
}
nav a.active,
nav a:hover {
  color: var(--lavanda);
}

/* Main titles */
.page-formulario h1,
.page-testimonios h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* FORMULARIO: grid de campos */
.page-formulario form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.page-formulario label {
  grid-column: span 2;
  font-weight: 600;
}

/* Inputs que ocupan dos columnas */
#mensaje {
  grid-column: span 2;
}
.btn-enviar {
  grid-column: span 2;
  justify-self: center;
  padding: 0.75rem 1.5rem;
  background: var(--gris-oscuro);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* TESTIMONIOS: lista centrada */
.page-testimonios .testimonio-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}
.card-testimonio {
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card-testimonio .rating {
  color: #f5a623;
  font-size: 1.25rem;
}
.card-testimonio .texto {
  font-style: italic;
  margin: 0.75rem 0;
}
.card-testimonio .autor {
  text-align: right;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

}