/* ===== PALETA DE COLORES ===== */
:root {
  --rosa-principal: #E98A97; /* NAV y FOOTER */
  --rosa-claro: #FD7889;
  --celeste: #74BEE1;
  --beige: #F9F0DF;
  --texto: #AF1F50; /* nuevo color del texto principal */
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--beige);
  color: var(--texto);
  line-height: 1.6;
  transition: all 0.3s ease-in-out;
}

/* ===== CONTENEDOR GENERAL ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--rosa-principal);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 400;
  font-family: 'Great Vibes', cursive; /* tipografía cursiva */
  color: white;
}

/* ===== NAV ===== */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--celeste);
}

/* ===== MENU HAMBURGUESA ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(to bottom right, var(--rosa-claro), var(--celeste));
  color: white;
  padding: 6rem 1rem;
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: white;
  color: var(--rosa-principal);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: var(--rosa-principal);
  color: white;
}

/* ===== MAIN GENERAL ===== */
main {
  background-color: white;
  padding-top: 70px;
  padding-bottom: 2rem;
}

/* ===== SECCIONES ===== */
section {
  padding: 5rem 1rem;
  text-align: center;
  color: var(--texto); /* aplica color principal */
}

h2 {
  font-size: 2rem;
  color: var(--texto);
  margin-bottom: 2rem;
}

/* ===== PRODUCTOS DESTACADOS ===== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.producto {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* ===== SOBRE NOSOTROS ===== */
.sobre-nosotros {
  background-color: white;
  color: var(--texto);
}

.sobre-nosotros p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--rosa-principal);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--celeste);
}

/* ===== BUSCADOR ===== */
.buscador-container {
  width: 100%;
  max-width: 400px;
  margin: 1.5rem auto 3rem auto;
  text-align: center;
}

#searchInput {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--rosa-principal);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

#searchInput:focus {
  border-color: var(--celeste);
  box-shadow: 0 0 8px rgba(116, 190, 225, 0.5);
}

#searchInput::placeholder {
  color: var(--texto);
  font-weight: 500;
}

/* ===== MAIN PEDIDOS ===== */
.pedido-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pedido-info h1 {
  font-size: 2rem;
  color: var(--texto);
  margin-bottom: 1.5rem;
}

.pedido-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.pedido-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.pedido-info ul li {
  background-color: var(--beige);
  border-left: 4px solid var(--rosa-principal);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto);
}

.pedido-contacto {
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.pedido-botones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pedido-btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--rosa-principal);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.pedido-btn:hover {
  background-color: var(--celeste);
  color: white;
}

/* ===== IMAGEN ===== */
.pedido-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ===== NOSOTROS GRID ===== */
.nosotros-grid .nosotros-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.nosotros-texto {
  display: grid;
  gap: 1rem;
}

.nosotros-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--texto);
}

.nosotros-texto strong {
  color: var(--rosa-principal);
}

.nosotros-redes h3 {
  font-size: 1.5rem;
  color: var(--rosa-principal);
  margin-bottom: 1rem;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.btn-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: var(--rosa-principal);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-redes:hover {
  background-color: var(--celeste);
  color: white;
}

/* Mini-grid y containers internos */
.nosotros-grid .container {
  background-color: white;
  padding: 4rem 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nosotros-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.nosotros-texto p strong {
  color: var(--rosa-principal);
  font-weight: 600;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

a[href^="#"] {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

section {
  scroll-margin-top: 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nosotros-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nosotros-grid .nosotros-content {
    grid-template-columns: 1fr;
  }

  .redes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pedido-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pedido-info h1 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--rosa-principal);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .redes-grid {
    grid-template-columns: 1fr;
  }
}
