/**
 * ============================================================
 * HOME LEAVES — Decoración de Hojas Esmeralda
 * Verde Encanto · Diseño Visual Premium
 * 
 * Hojas SVG vectoriales como decoración de fondo
 * Opacidad controlada para no competir con contenido
 * Respeta prefers-reduced-motion
 * ============================================================
 */

/* ── Tokens locales para hojas ── */
:root {
  --leaf-opacity-light: 0.04;
  --leaf-opacity-medium: 0.08;
  --leaf-opacity-strong: 0.15;
  --leaf-color-emerald: #1B5E20;
  --leaf-color-light: #2E7D32;
  --leaf-color-accent: #4CAF50;
}

/* ── Hoja decorativa base ── */
.ve-leaf {
  position: absolute;
  pointer-events: none;
  opacity: var(--leaf-opacity-medium);
  z-index: 0;
}

/* ── Variantes de tamaño ── */
.ve-leaf--sm { width: 80px; height: 120px; }
.ve-leaf--md { width: 120px; height: 180px; }
.ve-leaf--lg { width: 160px; height: 240px; }
.ve-leaf--xl { width: 200px; height: 300px; }

/* ── Variantes de opacidad ── */
.ve-leaf--light { opacity: var(--leaf-opacity-light); }
.ve-leaf--strong { opacity: var(--leaf-opacity-strong); }

/* ── Rotaciones naturales ── */
.ve-leaf--rotate-15 { transform: rotate(15deg); }
.ve-leaf--rotate-30 { transform: rotate(30deg); }
.ve-leaf--rotate-45 { transform: rotate(45deg); }
.ve-leaf--rotate-negative-15 { transform: rotate(-15deg); }
.ve-leaf--rotate-negative-30 { transform: rotate(-30deg); }

/* ── Flip horizontal para variedad ── */
.ve-leaf--flip { transform: scaleX(-1); }
.ve-leaf--flip.rotate-30 { transform: scaleX(-1) rotate(30deg); }

/* ═══════════════════════════════════════════════════════
   HERO — Hojas EsmeraldaDecorativas
   ═══════════════════════════════════════════════════════ */

.ve-hero-main {
  overflow: hidden;
}

/* Hojas traslúcidas en el hero */
.ve-hero-main::before,
.ve-hero-main::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
}

.ve-hero-main::before {
  top: -10%;
  left: -5%;
  width: 40%;
  height: 60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M100 0 C60 50 20 120 30 200 C35 240 60 280 100 300 C140 280 165 240 170 200 C180 120 140 50 100 0 Z' fill='%231B5E20'/%3E%3Cpath d='M100 20 L100 280' stroke='%230D3310' stroke-width='2' fill='none'/%3E%3Cpath d='M100 80 Q70 100 50 120' stroke='%230D3310' stroke-width='1.5' fill='none'/%3E%3Cpath d='M100 140 Q130 160 150 180' stroke='%230D3310' stroke-width='1.5' fill='none'/%3E%3Cpath d='M100 200 Q70 220 50 240' stroke='%230D3310' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-15deg);
}

.ve-hero-main::after {
  bottom: -15%;
  right: -8%;
  width: 45%;
  height: 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M100 0 C60 50 20 120 30 200 C35 240 60 280 100 300 C140 280 165 240 170 200 C180 120 140 50 100 0 Z' fill='%232E7D32'/%3E%3Cpath d='M100 20 L100 280' stroke='%231B5E20' stroke-width='2' fill='none'/%3E%3Cpath d='M100 60 Q140 80 160 100' stroke='%231B5E20' stroke-width='1.5' fill='none'/%3E%3Cpath d='M100 120 Q60 140 40 160' stroke='%231B5E20' stroke-width='1.5' fill='none'/%3E%3Cpath d='M100 180 Q140 200 160 220' stroke='%231B5E20' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(20deg) scaleX(-1);
}

/* Hojas flotantes adicionales en hero */
.ve-hero-leaf-top-left {
  position: absolute;
  top: 5%;
  left: -2%;
  width: 180px;
  height: 260px;
  opacity: 0.08;
  transform: rotate(-20deg);
  z-index: 1;
  pointer-events: none;
}

.ve-hero-leaf-bottom-right {
  position: absolute;
  bottom: 8%;
  right: -3%;
  width: 200px;
  height: 280px;
  opacity: 0.07;
  transform: rotate(25deg) scaleX(-1);
  z-index: 1;
  pointer-events: none;
}

.ve-hero-leaf-middle-left {
  position: absolute;
  top: 45%;
  left: 2%;
  width: 120px;
  height: 180px;
  opacity: 0.05;
  transform: rotate(-10deg);
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   CATEGORÍAS — Fondo con Hojas
   ═══════════════════════════════════════════════════════ */

.ve-jewelry-categories {
  position: relative;
  overflow: hidden;
}

/* Hojas decorativas en esquinas */
.ve-jewelry-categories::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -8%;
  width: 35%;
  height: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E%3Cpath d='M100 10 C70 60 30 130 40 200 C45 240 70 270 100 280 C130 270 155 240 160 200 C170 130 130 60 100 10 Z' fill='%231B5E20' opacity='0.05'/%3E%3Cpath d='M100 30 L100 260' stroke='%231B5E20' stroke-width='1.5' opacity='0.08'/%3E%3Cpath d='M100 90 Q60 110 45 130' stroke='%231B5E20' stroke-width='1' opacity='0.06'/%3E%3Cpath d='M100 150 Q140 170 155 190' stroke='%231B5E20' stroke-width='1' opacity='0.06'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.ve-jewelry-categories::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 30%;
  height: 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 260'%3E%3Cpath d='M90 5 C65 55 30 120 38 185 C42 220 65 250 90 260 C115 250 138 220 142 185 C150 120 115 55 90 5 Z' fill='%232E7D32' opacity='0.04'/%3E%3Cpath d='M90 25 L90 240' stroke='%232E7D32' stroke-width='1.5' opacity='0.06'/%3E%3Cpath d='M90 80 Q55 100 40 115' stroke='%232E7D32' stroke-width='1' opacity='0.05'/%3E%3Cpath d='M90 140 Q125 160 140 175' stroke='%232E7D32' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

.ve-jewelry-categories > .ve-container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   ÍNDICE DE PRODUCTOS — Hojas Sutiles
   ═══════════════════════════════════════════════════════ */

.ve-jewelry-index {
  position: relative;
  overflow: hidden;
}

.ve-jewelry-index::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 40%;
  height: 60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 320'%3E%3Cpath d='M110 0 C70 55 25 130 35 210 C40 255 65 295 110 320 C155 295 180 255 185 210 C195 130 150 55 110 0 Z' fill='%231B5E20' opacity='0.035'/%3E%3Cpath d='M110 15 L110 300' stroke='%230D3310' stroke-width='1.5' opacity='0.05'/%3E%3Cpath d='M110 100 Q70 120 50 140' stroke='%230D3310' stroke-width='1' opacity='0.04'/%3E%3Cpath d='M110 180 Q150 200 170 220' stroke='%230D3310' stroke-width='1' opacity='0.04'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-12deg);
}

.ve-jewelry-index::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -8%;
  width: 35%;
  height: 55%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 290'%3E%3Cpath d='M100 5 C75 50 35 120 42 190 C46 230 68 265 100 290 C132 265 154 230 158 190 C165 120 125 50 100 5 Z' fill='%232E7D32' opacity='0.03'/%3E%3Cpath d='M100 20 L100 270' stroke='%231B5E20' stroke-width='1.5' opacity='0.04'/%3E%3Cpath d='M100 90 Q140 110 158 130' stroke='%231B5E20' stroke-width='1' opacity='0.04'/%3E%3Cpath d='M100 170 Q60 190 42 210' stroke='%231B5E20' stroke-width='1' opacity='0.04'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(18deg) scaleX(-1);
}

.ve-jewelry-index > .ve-container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   SWITCHER / COLECCIONES — Hojas Laterales
   ═══════════════════════════════════════════════════════ */

.ve-jewelry-switcher {
  position: relative;
  overflow: hidden;
}

.ve-jewelry-switcher::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5%;
  width: 30%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 400'%3E%3Cpath d='M90 0 C60 60 20 140 28 220 C32 270 55 310 90 330 C125 310 148 270 152 220 C160 140 120 60 90 0 Z' fill='%231B5E20' opacity='0.04'/%3E%3Cpath d='M90 20 L90 310' stroke='%230D3310' stroke-width='2' opacity='0.06'/%3E%3Cpath d='M90 120 Q50 140 35 160' stroke='%230D3310' stroke-width='1.5' opacity='0.05'/%3E%3Cpath d='M90 200 Q130 220 145 240' stroke='%230D3310' stroke-width='1.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(8deg);
}

.ve-jewelry-switcher::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5%;
  width: 28%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 380'%3E%3Cpath d='M85 5 C60 65 25 145 32 225 C36 270 58 305 85 325 C112 305 134 270 138 225 C145 145 110 65 85 5 Z' fill='%232E7D32' opacity='0.035'/%3E%3Cpath d='M85 25 L85 300' stroke='%231B5E20' stroke-width='1.5' opacity='0.05'/%3E%3Cpath d='M85 110 Q120 130 135 150' stroke='%231B5E20' stroke-width='1' opacity='0.04'/%3E%3Cpath d='M85 190 Q50 210 35 230' stroke='%231B5E20' stroke-width='1' opacity='0.04'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-10deg) scaleX(-1);
}

.ve-jewelry-switcher > .ve-container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCIAS — Hojas Inferiores
   ═══════════════════════════════════════════════════════ */

.ve-experiences {
  position: relative;
  overflow: hidden;
}

.ve-experiences::before {
  content: '';
  position: absolute;
  bottom: -8%;
  left: 10%;
  width: 25%;
  height: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 240'%3E%3Cpath d='M80 0 C55 50 20 115 26 175 C30 210 50 235 80 240 C110 235 130 210 134 175 C140 115 105 50 80 0 Z' fill='%231B5E20' opacity='0.05'/%3E%3Cpath d='M80 15 L80 225' stroke='%230D3310' stroke-width='1.5' opacity='0.07'/%3E%3Cpath d='M80 80 Q50 100 35 115' stroke='%230D3310' stroke-width='1' opacity='0.05'/%3E%3Cpath d='M80 150 Q110 170 125 185' stroke='%230D3310' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-15deg);
}

.ve-experiences::after {
  content: '';
  position: absolute;
  top: 5%;
  right: 5%;
  width: 22%;
  height: 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 230'%3E%3Cpath d='M75 5 C52 52 20 118 26 172 C29 205 48 228 75 235 C102 228 121 205 124 172 C130 118 98 52 75 5 Z' fill='%232E7D32' opacity='0.04'/%3E%3Cpath d='M75 18 L75 218' stroke='%231B5E20' stroke-width='1.5' opacity='0.06'/%3E%3Cpath d='M75 90 Q105 110 118 125' stroke='%231B5E20' stroke-width='1' opacity='0.05'/%3E%3Cpath d='M75 160 Q45 180 32 195' stroke='%231B5E20' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: rotate(12deg) scaleX(-1);
}

.ve-experiences > .ve-container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   PATRÓN DE HOJAS REPETIDAS — Fondos sutiles
   ═══════════════════════════════════════════════════════ */

/* Patrón diagonal de hojas pequeñas para fondos claros */
.ve-leaves-pattern {
  position: relative;
}

.ve-leaves-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 5 C45 30 20 70 25 100 C28 110 42 115 60 118 C78 115 92 110 95 100 C100 70 75 30 60 5 Z' fill='%231B5E20' opacity='0.025'/%3E%3Cpath d='M60 15 L60 110' stroke='%231B5E20' stroke-width='1' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.ve-leaves-pattern > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   RAMAS DECORATIVAS — Elementos flotantes fijos
   ═══════════════════════════════════════════════════════ */

/* Rama superior izquierda */
.ve-branch-tl {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cpath d='M0 0 Q80 50 120 120 T200 180' stroke='%231B5E20' stroke-width='3' fill='none' opacity='0.15'/%3E%3Cpath d='M120 120 Q100 80 80 60' stroke='%231B5E20' stroke-width='2' fill='none' opacity='0.12'/%3E%3Cpath d='M160 150 Q190 120 220 130' stroke='%231B5E20' stroke-width='2' fill='none' opacity='0.12'/%3E%3Cellipse cx='80' cy='55' rx='25' ry='15' fill='%232E7D32' opacity='0.08' transform='rotate(-30 80 55)'/%3E%3Cellipse cx='225' cy='125' rx='22' ry='14' fill='%232E7D32' opacity='0.08' transform='rotate(20 225 125)'/%3E%3Cellipse cx='115' cy='115' rx='28' ry='16' fill='%231B5E20' opacity='0.06' transform='rotate(15 115 115)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 999;
  opacity: 0.7;
}

/* Rama inferior derecha */
.ve-branch-br {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3E%3Cpath d='M320 320 Q240 270 200 200 T120 140' stroke='%231B5E20' stroke-width='3' fill='none' opacity='0.15'/%3E%3Cpath d='M200 200 Q220 240 240 260' stroke='%231B5E20' stroke-width='2' fill='none' opacity='0.12'/%3E%3Cpath d='M160 170 Q130 200 100 190' stroke='%231B5E20' stroke-width='2' fill='none' opacity='0.12'/%3E%3Cellipse cx='245' cy='255' rx='24' ry='15' fill='%232E7D32' opacity='0.08' transform='rotate(30 245 255)'/%3E%3Cellipse cx='95' cy='195' rx='20' ry='13' fill='%232E7D32' opacity='0.08' transform='rotate(-20 95 195)'/%3E%3Cellipse cx='195' cy='205' rx='26' ry='16' fill='%231B5E20' opacity='0.06' transform='rotate(-15 195 205)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 999;
  opacity: 0.7;
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Ajustes para móvil
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .ve-hero-leaf-top-left,
  .ve-hero-leaf-bottom-right,
  .ve-hero-leaf-middle-left {
    display: none;
  }
  
  .ve-branch-tl,
  .ve-branch-br {
    width: 180px;
    height: 180px;
    opacity: 0.5;
  }
  
  .ve-jewelry-categories::before,
  .ve-jewelry-categories::after,
  .ve-jewelry-index::before,
  .ve-jewelry-index::after,
  .ve-jewelry-switcher::before,
  .ve-jewelry-switcher::after,
  .ve-experiences::before,
  .ve-experiences::after {
    opacity: 0.5;
  }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION — Accesibilidad
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ve-leaf,
  .ve-hero-main::before,
  .ve-hero-main::after,
  .ve-jewelry-categories::before,
  .ve-jewelry-categories::after,
  .ve-jewelry-index::before,
  .ve-jewelry-index::after,
  .ve-jewelry-switcher::before,
  .ve-jewelry-switcher::after,
  .ve-experiences::before,
  .ve-experiences::after {
    animation: none !important;
    transition: none !important;
  }
}
