/* ===== Creaciones Palmadera — estilos complementarios a Tailwind ===== */

/* Navbar con fondo al hacer scroll */
#navbar {
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: blur(10px);
}
#navbar.scrolled {
  background: rgba(250, 247, 241, 0.95);
  box-shadow: 0 6px 24px rgba(43, 33, 25, 0.1);
}

/* Enlaces de navegación con subrayado dorado */
.nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: #b8923a;
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #9a742a;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Menú móvil como overlay de pantalla completa */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f5f0e6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-link {
  display: block;
  padding: 0.6rem 0;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: #6a4e22;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover,
.mobile-link:active {
  color: #9a742a;
  padding-left: 0.5rem;
}

/* Botón hamburguesa */
.menu-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #6a4e22;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#menu-btn.open .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Botón dorado (principal) — acabado metálico como el logo */
.btn-gold {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2b2119;
  background: linear-gradient(135deg, #e6c25c 0%, #c9a24b 45%, #a67c2e 100%);
  box-shadow: 0 6px 18px rgba(184, 146, 58, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #edcf74 0%, #d0aa4f 45%, #b3862f 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(184, 146, 58, 0.45);
}

/* Botón crema (sobre el banner oscuro) */
.btn-cream {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2b2119;
  background: #faf7f1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-cream:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Título del hero con escala fluida */
.hero-title {
  font-size: clamp(2.75rem, 9vw, 4.4rem);
}

/* Tarjeta de imagen del hero */
.hero-card {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(43, 33, 25, 0.18);
  background: #ece4d4;
}
/* Imagen vertical (retrato) — la mayoría de fotos del cliente son verticales */
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .hero-card {
    max-width: 440px;
    margin-inline-start: auto;
  }
}

/* Punto decorativo detrás de la imagen (como en la referencia) */
.hero-dot {
  position: absolute;
  right: -14px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: #b8923a;
  z-index: -1;
}

/* Flechas del carrusel del hero */
.slider-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2.6rem;
  background: rgba(250, 247, 241, 0.95);
  color: #2b2119;
  font-size: 1.05rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.slider-btn:hover {
  background: #9a742a;
  color: #faf7f1;
}

/* Tarjetas de características */
.feature-card {
  text-align: center;
  padding: 0 0.5rem;
}
.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #ece4d4;
  color: #9a742a;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: translateY(-4px);
  background: #ddd2bc;
}
.feature-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

/* Filtros del catálogo */
.filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: rgba(43, 33, 25, 0.6);
  transition: all 0.25s ease;
}
.filter-btn:hover {
  color: #9a742a;
  background: rgba(184, 146, 58, 0.12);
}
.filter-btn.active {
  background: #9a742a;
  color: #faf7f1;
  font-weight: 500;
}

/* Tarjetas de producto */
.product-card {
  background: #faf7f1;
  border-radius: 1.25rem;
  padding: 0.7rem;
  box-shadow: 0 4px 16px rgba(43, 33, 25, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(43, 33, 25, 0.14);
}
.product-frame {
  overflow: hidden;
  border-radius: 0.9rem;
}
.product-card .product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.06);
}
.product-card.hidden-card {
  display: none;
}
.product-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0.5rem 0.5rem;
}
.card-arrow {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9999px;
  border: 1px solid rgba(43, 33, 25, 0.2);
  color: #2b2119;
  transition: all 0.25s ease;
}
.card-arrow:hover {
  background: #9a742a;
  border-color: #9a742a;
  color: #faf7f1;
  transform: translateX(3px);
}

/* Mosaico de proyectos */
.project-tile {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(43, 33, 25, 0.12);
}
.project-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-tile:hover img {
  transform: scale(1.07);
}
.project-tile figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(36, 28, 20, 0.88), transparent);
  display: flex;
  flex-direction: column;
}
.project-tile figcaption span {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #faf7f1;
}
.project-tile figcaption small {
  color: #e6c25c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Banner CTA — espresso oscuro con brillo dorado, evoca el logo */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 12% 40%, rgba(201, 162, 75, 0.18), transparent 45%),
    linear-gradient(120deg, #241c14, #3d2f1c);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 50px rgba(43, 33, 25, 0.35);
}
.cta-banner .btn-cream {
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-banner {
    gap: 2rem;
  }
  .cta-banner .btn-cream {
    width: auto;
  }
}

/* Formulario */
.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(43, 33, 25, 0.55);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: #f5f0e6;
  border: 1px solid rgba(43, 33, 25, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  color: #2b2119;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-input::placeholder {
  color: rgba(43, 33, 25, 0.35);
}
.form-input:focus {
  border-color: #b8923a;
  background: #faf7f1;
}
.form-input.error {
  border-color: #c0563e;
}

.contact-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #b8923a;
  flex-shrink: 0;
}

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* Redes sociales del footer */
.social-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(43, 33, 25, 0.2);
  color: #6a4e22;
  transition: all 0.25s ease;
}
.social-link:hover {
  background: #9a742a;
  border-color: #9a742a;
  color: #faf7f1;
  transform: translateY(-2px);
}
.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Animación de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
