/* =====================================================
   RESET BÁSICO
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================
   ESTILOS BASE DEL DOCUMENTO - PASTELERÍA DELICIAS
   ===================================================== */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #fef9f4;  /* Fondo crema muy suave, como un bizcocho */
  color: #3e2c1b;             /* Marrón oscuro, como el chocolate o caramelo */
}

/* =====================================================
   CONTENEDOR CENTRAL
   ===================================================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   SEPARACIÓN ENTRE BLOQUES
   ===================================================== */
header,
section,
footer {
  margin-bottom: 40px;
}

/* =====================================================
   HEADER - STICKY CON FONDO DULCE
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  background-color: #ffffffda;    /* Blanco semitransparente para efecto "glaseado" */
  backdrop-filter: blur(8px);      /* Difumina el fondo al hacer scroll */
  z-index: 100;
  padding: 15px 0;
  border-bottom: 3px solid #e6c9a8; /* Línea color caramelo */
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Contenido interno del header */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo / nombre con estilo pastelero */
.logo {
  font-size: 2.5rem;
  font-weight: 400;
  font-family: 'Times New Roman', Georgia, serif; /* Tipografía clásica para tradición */
  letter-spacing: 2px;
  color: #7b4b2d; /* Marrón medio, como azúcar morena */
  text-shadow: 2px 2px 0 #f3e1c2; /* Sombra suave que da relieve */
}

.anno {
  font-size: 1.2rem;
  color: #b67e4c;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 300;
  margin-left: 5px;
}

/* =====================================================
   NAVEGACIÓN - SABORES DEL MENÚ
   ===================================================== */
.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #5a3e2b;
  font-weight: 600;
  font-size: 1.1rem;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav a:hover {
  color: #c73d2b; /* Rojo terracota, como frutos rojos */
  border-bottom: 2px solid #e6a57e; /* Melocotón */
}

/* =====================================================
   SECCIÓN SOBRE PASTELES (antes "Sobre mí")
   ===================================================== */
#sobre-pasteles {
  background: #ffffffc4;
  padding: 30px 30px;
  border-radius: 40px 40px 20px 20px; /* Bordes redondeados como un pastel */
  box-shadow: 0 8px 18px rgba(110, 70, 40, 0.08);
  border: 1px solid #f5dbb1;
}

#sobre-pasteles h2 {
  font-family: 'Times New Roman', serif;
  font-size: 2.2rem;
  color: #a1582b;
  border-left: 8px solid #e6b17e;
  padding-left: 20px;
  margin-bottom: 20px;
}

#sobre-pasteles p {
  max-width: 800px;
  margin-top: 15px;
  font-size: 1.05rem;
  color: #4f3a27;
  background: #fefaf5;
  padding: 15px 20px;
  border-radius: 20px;
  line-height: 1.7;
}

#sobre-pasteles p strong {
  color: #a5482b;
  font-weight: 700;
}

/* =====================================================
   SECCIÓN PRODUCTOS (antes PROYECTOS)
   ===================================================== */
#productos h2 {
  font-family: 'Times New Roman', serif;
  font-size: 2.2rem;
  color: #a1582b;
  border-left: 8px solid #e6b17e;
  padding-left: 20px;
  margin-bottom: 30px;
}

.proyectos-grid {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.proyecto-link {
  text-decoration: none;
  color: inherit;
  flex: 1 1 250px; /* Mínimo 250px, luego se ajusta */
  cursor: pointer;
}

.proyecto {
  background-color: #fffaf2;     /* Fondo crema */
  color: #422c1a;
  padding: 25px 20px;
  border-radius: 30px 30px 15px 15px;
  border: 1px solid #eed6b0;
  box-shadow: 0 6px 14px rgba(160, 100, 60, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.proyecto h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  font-family: 'Times New Roman', serif;
  font-weight: 500;
  color: #a7552b;
  border-bottom: 2px dotted #e6b17e;
  padding-bottom: 8px;
}

.proyecto p {
  font-size: 1rem;
  color: #5f4a34;
  line-height: 1.5;
  flex-grow: 1;
}

.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px rgba(175, 120, 70, 0.15);
  background-color: #fff3e4;
  border-color: #dba477;
}

/* =====================================================
   SECCIÓN CONTACTO - CON DETALLES DE PASTELERÍA
   ===================================================== */
#contacto {
  background: #ffe6d5; /* Fondo de melocotón suave */
  padding: 30px 30px;
  border-radius: 80px 20px 80px 20px; /* Forma orgánica, divertida */
  box-shadow: inset 0 -2px 0 #eecbad;
}

#contacto h2 {
  font-family: 'Times New Roman', serif;
  font-size: 2.2rem;
  color: #7b4326;
  margin-bottom: 15px;
}

#contacto p {
  margin-top: 8px;
  font-size: 1.1rem;
  color: #3f2c1b;
}

#contacto a {
  color: #b4572a;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #b87a4b;
}

#contacto a:hover {
  color: #c92f0a;
  border-bottom: 2px solid #c92f0a;
}

/* Burbuja informativa de pedidos */
#contacto p:last-of-type {
  background: #fcf1e7;
  border-radius: 50px;
  padding: 12px 18px;
  border: 1px solid #d9ad82;
  font-style: italic;
  box-shadow: 0 2px 6px #e7c9ae;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  font-size: 1rem;
  color: #8b6f50;
  text-align: center;
  border-top: 1px dashed #dcb48b;
  padding-top: 20px;
  margin-top: 40px;
}

/* =====================================================
   RESPONSIVE (TABLET Y MÓVIL)
   ===================================================== */
@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .proyectos-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    font-size: 2rem;
  }

  #sobre-pasteles {
    padding: 20px 15px;
  }
}
