/* Fuentes: carta + manuscrita */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Cormorant+Garamond:wght@400;600&family=Caveat:wght@600;700&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  overflow-x: hidden;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Cursor pincel (opcional: brush.png) */
  cursor: url("brush.png") 2 28, auto;
}
a{ cursor: url("brush.png") 2 28, pointer; }

/* Fondo + parallax suave */
.fondo{
  position: fixed;
  inset: 0;
  background: url("bg.jpg") center/cover no-repeat;
  background-attachment: fixed; /* parallax simple */
  z-index: 0;
}
.fondo::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.10);
}

/* Textura de lienzo (opcional: canvas.png) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("canvas.png") center/cover no-repeat;
  opacity: .12;
  mix-blend-mode: overlay;
  z-index: 6;
}

/* Título */
.titulo{
  position: relative;
  z-index: 4;
  padding: 18px 22px 0;
}
.firma{
  font-family: "Dancing Script", cursive;
  font-size: clamp(26px, 3.6vw, 54px);
  color: rgba(255, 245, 210, .98);
  text-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.nota-rapida{
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .70;
  color: rgba(255,255,255,.85);
}

/* Escena */
.escena{
  position: relative;
  z-index: 3;
  height: calc(100vh - 110px);
  min-height: 720px;
}

/* Decoraciones */
.deco{ pointer-events: none; }

.cypress{
  position: fixed;
  bottom: -30px;
  width: 240px;
  opacity: .55;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.55));
  z-index: 1;
}
.cypress.left{ left: -40px; }
.cypress.right{ right: -40px; transform: scaleX(-1); }

.sunflower{
  position: absolute;
  width: 150px;
  opacity: .95;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
  z-index: 5;
}
.s-left{ top: 120px; left: 10px; transform: rotate(-8deg); }
.s-right{ top: 410px; right: 30px; transform: rotate(10deg); }

/* Cuadros */
.cuadro{ position: absolute; }

.marco{
  background: linear-gradient(135deg, #7a552c, #5d3b1b);
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  position: relative;
}
.marco::before{
  content:"";
  position:absolute;
  inset: 10px;
  border: 2px solid rgba(0,0,0,.32);
  border-radius: 4px;
  pointer-events:none;
}
.marco img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: 2px;
}

/* Leyenda manuscrita cerca del cuadro */
.leyenda{
  margin-top: 10px;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 22px;
  color: rgba(0,0,0,.75);
  background: rgba(255,255,255,.55);
  border: 2px solid rgba(0,0,0,.45);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  transform: rotate(-2deg);
}

/* Palabras: aparecen al hover */
.palabras{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) translateY(10px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.cuadro:hover .palabras{
  opacity: 1;
  transform: translate(-50%,-50%) translateY(0);
  pointer-events: auto;
}

/* Botones tipo pincelada */
.brush{
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 30px;
  font-weight: 700;
  color: rgba(10,10,10,.90);
  text-decoration: none;

  padding: 10px 18px;
  border-radius: 18px 10px 22px 8px;
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: 0 10px 25px rgba(0,0,0,.20);

  position: relative;
  transform: rotate(-2deg);
}

/* bordes irregulares de pintura */
.brush::before{
  content:"";
  position:absolute;
  inset:-6px -10px;
  background: inherit;
  border-radius: 26px 14px 30px 10px;
  opacity: .9;
  z-index:-1;
}

/* Colores por sección */
.brush.notas{ background: rgba(120, 190, 255, .74); }
.brush.musica{ background: rgba(255, 220, 70, .82); }
.brush.videos{ background: rgba(255, 160, 200, .76); }
.brush.otros{ background: rgba(160, 255, 180, .70); }

.brush:nth-child(2){ transform: rotate(2deg); }

.brush:hover{
  background: rgba(255,255,255,.92);
  transform: rotate(0deg) translateY(-2px);
}

/* POSICIONES (ajústalas libremente) */
.c1{ top: 140px; left: 80px;  width: 430px; }
.c2{ top: 320px; left: 500px; width: 460px; transform: rotate(-2deg); }
.c3{ top: 160px; left: 980px; width: 420px; transform: rotate(2deg); }

/* Responsive */
@media (max-width: 1100px){
  body::after{ opacity: .08; }
  .escena{ height: auto; min-height: 0; padding-bottom: 40px; }
  .cypress{ display:none; }
  .sunflower{ display:none; }

  .cuadro{
    position: static;
    display: block;
    margin: 18px auto;
    width: min(92vw, 520px) !important;
    transform: none !important;
  }
  .palabras{
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 10px;
  }
  .leyenda{ margin-bottom: 18px; }
}
#music-toggle{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 10;

  background: rgba(255,255,255,.75);
  border: 2px solid rgba(0,0,0,.6);
  border-radius: 50%;
  width: 44px;
  height: 44px;

  font-family: "Caveat", cursive;
  font-size: 20px;
  cursor: pointer;
  opacity: .6;
}
#music-toggle:hover{ opacity: 1; }
