/* ===========================
   PALETA ARTESANAL CÁLIDA
   =========================== */

:root {
  --crema: #faf7f2;
  --crema-alt: #f3eee7;
  --texto: #3a2f28;
  --muted: #7a6f67;
  --terracota: #c46a3a;
  --terracota-soft: rgba(196, 106, 58, 0.15);
  --marron: #5a4638;
  --border: #e5ddd4;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --hero-overlay: rgba(0, 0, 0, 0.45);
}

/* ===========================
   RESET
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--crema);
  color: var(--texto);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   HEADER
   =========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

@media (max-width: 600px) {
  .logo img {
    height: 40px;
  }
}

/* NAV */
.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--terracota);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===========================
   HERO GLOBAL
   =========================== */

.hero,
.hero-servicios,
.hero-cursos,
.hero-catering,
.hero-benditopan,
.hero-elexplo,
.hero-chicha,
.hero-contacto {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  background-size: contain;
  background-color: var(--crema-alt);
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* ===========================
   HERO ESPECÍFICOS
   =========================== */

.hero { background-image: url("img/imagen1.jpg"); }
.hero-servicios { background-image: url("img/imagen2.jpg"); }
.hero-cursos { background-image: url("img/imagen4.jpg"); }
.hero-catering { background-image: url("img/imagen3.jpg"); }
.hero-benditopan { background-image: url("img/imagen6.jpeg"); }
.hero-elexplo { background-image: url("img/elexplo.jpg"); }
.hero-chicha { background-image: url("img/chicha.jpg"); }
.hero-contacto { background-image: url("img/contacto.jpg"); }

/* ===========================
   BOTONES
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--terracota);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #a8562f;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===========================
   SECCIONES
   =========================== */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--crema-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ===========================
   GRID
   =========================== */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===========================
   CARDS
   =========================== */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: var(--marron);
}

.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--terracota);
  font-weight: 600;
}

.card-brand {
  text-align: center;
}

/* ===========================
   CONTACTO
   =========================== */

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

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
}

.contact-info {
  background: var(--crema-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li {
  margin-bottom: 0.6rem;
  color: var(--marron);
}

.contact-note {
  margin-top: 1rem;
  color: var(--muted);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--crema-alt);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracota);
}

.footer-sub {
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--marron);
  font-weight: 600;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===========================
   ANIMACIONES
   =========================== */

.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    flex-direction: column;
    background: var(--crema);
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 1rem;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

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