/* =========================
   Variables de diseño
   ========================= */
:root {
  --cafe-oscuro: #5A3E2B;
  --cafe-medio: #8B5E3C;
  --cafe-claro: #C4A484;
  --blanco: #FFFFFF;
  --crema: #F9F5F0;
  --rosa-pastel: #F6E6E6;
  --lavanda-pastel: #F0E6F6;
  --verde-pastel: #E6F6EA;

  --fuente-titulos: 'Playfair Display', serif;
  --fuente-texto: 'Lora', serif;

  --container-max: 1100px;
  --header-height: 70px;
}

/* =========================
   Reset básico
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-texto);
  background-color: var(--crema);
  color: var(--cafe-oscuro);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   Utilidades
   ========================= */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-title {
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--cafe-oscuro);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--cafe-medio);
  margin-bottom: 2rem;
}

.section-text {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--cafe-oscuro);
}

/* Botones base */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--cafe-medio);
  color: var(--blanco);
}

.btn-primary:hover {
  background-color: var(--cafe-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(90, 62, 43, 0.25);
}

.btn-secondary {
  background-color: var(--rosa-pastel);
  color: var(--cafe-oscuro);
}

.btn-secondary:hover {
  background-color: var(--lavanda-pastel);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(90, 62, 43, 0.15);
}

/* =========================
   Header / Navegación
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--crema);
  border-bottom: 2px solid rgba(139, 94, 60, 0.25);
  box-shadow: 0 4px 18px rgba(90, 62, 43, 0.08);
}

.header-inner {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.header-decor-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 0.5rem;
}

/* Adornos PNG */
.header-decor {
  position: absolute;
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.header-decor-bunny {
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
}

.header-decor-butterfly {
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cafe-oscuro);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  margin-left: 1.6rem;
}

.logo-text {
  font-family: "Gabriola", "Palace Script MT", cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cafe-oscuro);
}

/* Navegación desktop */
.main-nav {
  margin-right: 1.6rem;
}

.main-nav ul {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cafe-oscuro);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  background-color: var(--rosa-pastel);
  color: var(--cafe-medio);
  box-shadow: 0 4px 14px rgba(90, 62, 43, 0.12);
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cafe-oscuro);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================
   Menú móvil
   ========================= */
@media (max-width: 767px) {
  .site-header {
    position: relative;
  }

  .header-decor {
    width: 27px;
    height: 27px;
  }

  .logo {
    margin-left: 1.2rem;
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Menú cerrado por defecto */
  .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(249, 245, 240, 0.98);
    border-bottom: 1px solid rgba(196, 164, 132, 0.4);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    backdrop-filter: blur(6px);
    z-index: 999;
    margin: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, border-left-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }

  .main-nav a:hover {
    background-color: var(--rosa-pastel);
    border-left-color: var(--cafe-medio);
  }

  /* Menú abierto */
  .main-nav.nav-open {
    max-height: 400px;
    padding: 0.5rem 0 1rem 0;
    overflow: visible;
  }

  .nav-toggle.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 5rem 1rem;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(189, 123, 110, 0.9), transparent 60%),
    radial-gradient(1000px 500px at 10% 120%, rgba(146, 204, 74, 0.6), transparent 60%),
    linear-gradient(180deg, var(--crema) 0%, #926259 100%);
  overflow: hidden;
}

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 3.5rem 1.5rem 3rem 1.5rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, rgba(255, 247, 253, 0.95), rgba(249, 245, 240, 0.95));
  border: 1px solid rgba(196, 164, 132, 0.35);
  box-shadow:
    0 20px 50px rgba(90, 62, 43, 0.12),
    inset 0 0 0 1px rgba(218, 142, 200, 0.6);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

/* Ajustar el contenido del hero para que esté en dos columnas */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  margin: 0;
}

.hero-title {
  font-family: "High Tower Text", "Times New Roman", serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--cafe-oscuro);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--cafe-medio);
  margin-bottom: 1.5rem;
}

/* Wrapper del 3D */
.hero-3d-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.hero-3d {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  perspective: 1200px !important;
  margin: 0 auto !important;
}

.hero-3d-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.18),
    0 0 0 1px rgba(181,101,118,0.15) inset !important;
}

/* Manchas de acuarela */
.hero-watercolor {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 1.7;
  pointer-events: none;
  mix-blend-mode: normal;
}


.hero-watercolor-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(247, 166, 195, 0.9), rgba(226, 210, 246, 0) 70%);
  bottom: -140px;
  right: -100px;
  transform: rotate(10deg);
}


/* Decoraciones */
.hero-decor {
  position: absolute;
  width: 96px;
  height: 96px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.hero-decor.decor-left {
  left: 1rem;
  bottom: 1rem;
  transform: rotate(-10deg);
}

.hero-decor.decor-right {
  right: 1rem;
  bottom: 1rem;
  transform: rotate(10deg);
}

/* Desktop */
@media (min-width: 768px) {
  .hero {
    padding: 6rem 1rem 7rem 1rem;
  }

  .hero-canvas {
    padding: 4.5rem 2.5rem 4rem 2.5rem;
    border-radius: 1.6rem;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-decor {
    width: 110px;
    height: 110px;
  }
}

/* Móvil: una columna */
@media (max-width: 767px) {
  .hero-canvas {
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem 2rem 1rem;
    gap: 1.5rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-3d {
    aspect-ratio: 3 / 2 !important;
  }
}

/* ============================================
   HERO 3D - Wrapper para la imagen destacada
   ============================================ */

.hero-3d-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.hero-3d {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  perspective: 1200px !important;
  margin: 0 auto !important;
}

.hero-3d-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.18),
    0 0 0 1px rgba(181,101,118,0.15) inset !important;
}

@media (min-width: 900px) {
  .hero-3d-wrapper,
  .hero-3d,
  .hero-3d-img {
    max-width: 100% !important;
    max-height: 100% !important;
  }
}

@media (max-width: 600px) {
  .hero-3d {
    aspect-ratio: 3 / 2 !important;
  }
  .hero-3d-img {
    max-height: 100% !important;
  }
}

/* =========================
   Intro arte
   ========================= */
.intro-arte {
  padding: 3.5rem 1rem;
  background-color: var(--blanco);
  border-top: 1px solid rgba(196, 164, 132, 0.35);
  border-bottom: 1px solid rgba(196, 164, 132, 0.35);
  position: relative;
  overflow: hidden;
}

.intro-arte-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-decor {
  position: absolute;
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.section-decor-bunny-left {
  left: 0;
  top: 10%;
  transform: rotate(-8deg);
}

.section-decor-butterfly-right {
  right: 0;
  bottom: 10%;
  transform: rotate(8deg);
}

.section-decor-butterfly-left {
  left: 0;
  top: 15%;
  transform: rotate(-8deg);
}

.section-decor-bunny-right {
  right: 0;
  bottom: 15%;
  transform: rotate(8deg);
}

/* =========================
   Galería
   ========================= */
.galeria {
  padding: 4rem 1rem 5rem 1rem;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(246, 230, 230, 0.7), transparent 60%),
    linear-gradient(180deg, #F7F2EB 0%, #EFE7DE 100%);
  border-top: 1px solid rgba(196, 164, 132, 0.35);
  position: relative;
  overflow: hidden;
}

.galeria-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.obra-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}

.obra-frame {
  position: relative;
  background: var(--blanco);
  padding: 0.3rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(139, 94, 60, 0.25);
  box-shadow:
    0 6px 18px rgba(90, 62, 43, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center center;
  transform-style: preserve-3d;
}

/* Efecto 3D al pasar el mouse */
.obra-card:hover .obra-frame {
  transform: perspective(1000px) rotateX(8deg) rotateY(-8deg) translateZ(15px);
  box-shadow:
    0 20px 40px rgba(90, 62, 43, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.obra-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--rosa-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.2rem;
}

.obra-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.obra-card:hover .obra-img img {
  transform: scale(1.05);
}

.obra-hanger {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 6px;
  background: radial-gradient(ellipse at center, rgba(90, 62, 43, 0.35), transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.8;
}

.obra-info {
  text-align: center;
  padding: 0.9rem 0.4rem 0.2rem 0.4rem;
}

.obra-titulo {
  font-family: var(--fuente-titulos);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cafe-oscuro);
  margin-bottom: 0.3rem;
}

.obra-tecnica,
.obra-precio {
  font-size: 0.9rem;
  color: var(--cafe-medio);
  margin-bottom: 0.2rem;
}

.obra-vendida {
  margin: 0.15rem 0 0.35rem;
  color: #a52a2a;
  font-family: var(--fuente-titulos);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
}

.galeria-cta {
  text-align: center;
}

@media (min-width: 768px) {
  .galeria-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }

  .obra-frame {
    padding: 0.5rem;
  }

  .obra-hanger {
    width: 35%;
  }
}

/* =========================
   Sobre Ruby
   ========================= */
.sobre-ruby {
  padding: 4rem 1rem;
  background-color: var(--crema);
  position: relative;
  overflow: hidden;
}

.sobre-ruby-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.sobre-ruby-text {
  position: relative;
  z-index: 2;
}

.sobre-ruby-img {
  position: relative;
  z-index: 2;
}

.sobre-ruby-img img {
  border-radius: 1.2rem;
  box-shadow: 0 12px 32px rgba(90, 62, 43, 0.14);
  border: 1px solid rgba(196, 164, 132, 0.35);
  background-color: var(--blanco);
  padding: 0.4rem;
}

.sobre-ruby-img::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 1.4rem;
  border: 1px dashed rgba(139, 94, 60, 0.25);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .intro-arte-inner {
    padding: 1rem 2rem;
  }

  .section-decor {
    width: 60px;
    height: 60px;
  }

  .sobre-ruby-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .sobre-ruby-img::before {
    inset: -12px;
  }
}

/* =========================
   Contacto
   ========================= */
.contacto {
  padding: 4rem 1rem 5rem 1rem;
  background-color: var(--crema);
  border-top: 1px solid rgba(196, 164, 132, 0.35);
  position: relative;
  overflow: hidden;
}

.contacto-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.contacto-info {
  background: transparent;
  padding: 1rem 0.5rem;
}

.contacto-info p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.contacto-info a {
  color: var(--cafe-medio);
  text-decoration: underline;
}

.contacto-card {
  position: relative;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, #FFFDF8 0%, #F9F5F0 100%);
  border: 1px solid rgba(139, 94, 60, 0.25);
  border-radius: 0.8rem;
  padding: 1.4rem;
  box-shadow:
    0 14px 36px rgba(90, 62, 43, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  background-image:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(196, 164, 132, 0.04) 0px,
      rgba(196, 164, 132, 0.04) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(180deg, #FFFDF8 0%, #F9F5F0 100%);
}

.contacto-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 0.6rem;
  border: 1px dashed rgba(139, 94, 60, 0.25);
  pointer-events: none;
}

.contacto-form {
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cafe-oscuro);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 94, 60, 0.35);
  background-color: #FDFBF8;
  color: var(--cafe-oscuro);
  font-family: var(--fuente-texto);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(90, 62, 43, 0.06);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cafe-medio);
  background-color: #FFF;
  box-shadow:
    inset 0 1px 2px rgba(90, 62, 43, 0.08),
    0 0 0 3px rgba(139, 94, 60, 0.12);
}

.contacto-form .btn {
  margin-top: 0.4rem;
}

@media (min-width: 768px) {
  .contacto-content {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
  }

  .contacto-card {
    padding: 1.8rem 1.6rem;
    border-radius: 1rem;
  }

  .contacto-card::before {
    inset: 10px;
    border-radius: 0.8rem;
  }
}

/* =========================
   Footer
   ========================= */
.site-footer {
  padding: 2.5rem 1rem 3rem 1rem;
  background:
    linear-gradient(180deg, rgba(90, 62, 43, 0.95), rgba(70, 48, 32, 0.98)),
    repeating-linear-gradient(
      45deg,
      rgba(196, 164, 132, 0.06) 0px,
      rgba(196, 164, 132, 0.06) 2px,
      transparent 2px,
      transparent 6px
    );
  color: var(--crema);
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(196, 164, 132, 0.35);
}

.footer-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.footer-text {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-small {
  font-size: 0.85rem;
  opacity: 0.85;
  font-style: italic;
}

.footer-decor {
  position: absolute;
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.footer-bunny-1 {
  left: 8%;
  bottom: 18%;
  transform: rotate(-10deg);
}

.footer-bunny-2 {
  right: 8%;
  bottom: 12%;
  transform: rotate(10deg);
}

.footer-butterfly-1 {
  left: 15%;
  top: 25%;
  transform: rotate(-8deg);
}

.footer-butterfly-2 {
  right: 15%;
  top: 20%;
  transform: rotate(8deg);
}

@media (min-width: 768px) {
  .footer-decor {
    width: 65px;
    height: 65px;
  }

  .footer-bunny-1 {
    left: 12%;
    bottom: 22%;
  }

  .footer-bunny-2 {
    right: 12%;
    bottom: 16%;
  }

  .footer-butterfly-1 {
    left: 20%;
    top: 30%;
  }

  .footer-butterfly-2 {
    right: 20%;
    top: 24%;
  }
}

/* =========================
   Galería en index.html
   ========================= */
#galeria .galeria-wall {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 2rem;
}

#galeria .obra-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

#galeria .obra-frame {
  width: 100%;
  padding: 0.5rem;
  background: #F9DCE8 !important;
  border: 1px solid rgba(233, 150, 180, 0.4);
  box-shadow: 0 8px 22px rgba(90, 62, 43, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Efecto 3D intermedio para la galería específica */
#galeria .obra-card:hover .obra-frame {
  transform: perspective(800px) rotateX(14deg) rotateY(-14deg) translateZ(25px);
  box-shadow:
    0 30px 60px rgba(90, 62, 43, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* Transición más rápida */
#galeria .obra-frame {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#galeria .obra-img {
  width: 100%;
  aspect-ratio: auto !important;
  height: auto !important;
  display: block;
  background-color: transparent;
  overflow: visible;
}

#galeria .obra-img img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: 360px;
  object-fit: contain !important;
  border-radius: 0.2rem;
}

@media (max-width: 767px) {
  #galeria .galeria-wall {
    width: 92%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0.8rem;
  }

  #galeria .obra-card {
    max-width: 170px;
  }

  #galeria .obra-card:hover .obra-frame {
    transform: translateY(-4px);
  }
}

/* ============================================
   HERO 3D - Wrapper para la imagen destacada
   ============================================ */

.hero-3d-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 1.5rem auto 0 !important;
}

.hero-3d {
  position: relative !important;
  width: 100% !important;
  max-width: 420px !important;
  aspect-ratio: 4 / 3 !important;
  perspective: 1200px !important;
  margin: 0 auto !important;
}

.hero-3d-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 420px !important;
  max-height: 315px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.18),
    0 0 0 1px rgba(181,101,118,0.15) inset !important;
}

@media (min-width: 900px)