:root {
  --bg: #F8F4FA;
  --bg-soft: #F1E8F5;
  --primary: #6D3A91;
  --primary-dark: #4B1F6F;
  --secondary: #2A0F3D;
  --text: #241A2C;
  --muted: #74677C;
  --white: #ffffff;
  --border: #E3D6E9;
  --shadow: 0 20px 45px rgba(75, 31, 111, 0.15);
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

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

/* HEADER */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 248, 243, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 217, 207, 0.8);
  transition: 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(75, 31, 111, 0.12);
}

.navbar {
  width: min(1180px, 92%);
  margin: auto;
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-btn {
  padding: 0.8rem 1.2rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 999px;
}

.nav-btn:hover {
  background: var(--primary-dark);
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--white);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(75, 31, 111, 0.12);
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--secondary);
  border-radius: 5px;
  transition: 0.3s;
}

/* HERO */

.hero {
  min-height: 100vh;
  width: min(1180px, 92%);
  margin: auto;
  padding: 130px 0 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.tag,
.section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1,
.section h2,
.banner h2 {
  font-family: "Playfair Display", serif;
  color: var(--secondary);
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  margin-bottom: 1.2rem;
}

.hero-text {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(109, 58, 145, 0.35);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn.secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 85%;
  background: var(--bg-soft);
  border-radius: 45% 55% 50% 50%;
  right: -20px;
  bottom: -20px;
  z-index: -1;
}

.hero-image img {
  height: 620px;
  object-fit: cover;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

/* FEATURES */

.features {
  width: min(1000px, 92%);
  margin: -30px auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  padding: 1.7rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(75, 31, 111, 0.08);
}

.feature-card h3 {
  font-size: 2rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--muted);
}

/* GENERAL */

.section {
  width: min(1180px, 92%);
  margin: auto;
  padding: 85px 0;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-heading h2,
.about h2,
.order h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.section-heading p,
.about-content p,
.order-content p {
  color: var(--muted);
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  height: 560px;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.about-content p {
  margin-bottom: 1rem;
}

.about-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.about-list div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.about-list span {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.about-list p {
  margin: 0;
  color: var(--text);
}

/* PRODUCTS */

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 15px 40px rgba(75, 31, 111, 0.08);
  transition: 0.3s ease;
}

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

.product-card img {
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.3rem;
}

.product-info h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.price-row span {
  font-weight: 700;
  color: var(--primary-dark);
}

.small-btn {
  border: none;
  background: var(--bg-soft);
  color: var(--primary-dark);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

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

/* BANNER */

.banner {
  width: min(1180px, 92%);
  margin: 30px auto;
  padding: 3rem;
  border-radius: 36px;
  background:
    linear-gradient(rgba(50, 36, 31, 0.72), rgba(50, 36, 31, 0.72)),
    url("https://images.unsplash.com/photo-1521305916504-4a1121188589?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.banner p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.85);
}

/* GALLERY */

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

.gallery-grid img {
  height: 310px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(75, 31, 111, 0.1);
  transition: 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* PROCESS */

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

.process-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(75, 31, 111, 0.08);
}

.process-card span {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

.process-card h3 {
  color: var(--secondary);
  margin: 0.7rem 0;
}

.process-card p {
  color: var(--muted);
}

/* TESTIMONIALS */

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(75, 31, 111, 0.08);
}

.testimonial-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  color: var(--secondary);
}

/* ORDER */

.order {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  margin-top: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info p {
  margin-bottom: 0.6rem;
}

.order-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.order-form label {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  outline: none;
  background: #fffdfb;
  color: var(--text);
  resize: none;
}

.order-form textarea {
  min-height: 140px;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--primary);
}

/* FOOTER */

.footer {
  background: #3a2a24;
  color: var(--white);
  padding: 4rem 0 1.5rem;
  margin-top: 50px;
}

.footer-grid {
  width: min(1180px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer a {
  display: block;
  margin-bottom: 0.55rem;
  transition: 0.3s;
}

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

.footer-bottom {
  width: min(1180px, 92%);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* TOAST */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 1.3rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(130%);
  opacity: 0;
  transition: 0.4s ease;
  z-index: 2000;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ANIMACIONES */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .hero,
  .about,
  .order {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-image img,
  .about-image img {
    height: 480px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 82%;
    height: calc(100vh - 78px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.2rem;
    box-shadow: -20px 0 40px rgba(75, 31, 111, 0.12);
    transition: 0.35s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .features,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid img {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-image img,
  .about-image img {
    height: 360px;
    border-radius: 32px;
  }

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

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

  .gallery-grid img {
    height: 280px;
  }

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

  .banner {
    padding: 2rem;
  }

  .order-form {
    padding: 1.4rem;
  }
}
/* Ajustes finales para navegación y decoraciones en móvil */
body {
  overflow-x: hidden;
}

@media (max-width: 760px) {
  .nav-links {
    right: 0;
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 560px) {
  .hero-image::before {
    right: 0;
    bottom: -10px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    transform: none;
  }

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