:root {
  --pc-wine: #74163f;
  --pc-deep: #2a0e1c;
  --pc-plum: #301121;
  --pc-rose: #d5a1b0;
  --pc-rose-deep: #b14d6e;
  --pc-blush: #f5e2e7;
  --pc-ivory: #fffaf6;
  --pc-sage: #9aaa86;
  --pc-ink: #3a2129;
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--pc-ink);
  background: #fdeef0;
  font-family: var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(177,77,110,.28); color: var(--pc-wine); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #f3d9df; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pc-rose), var(--pc-wine)); border-radius: 8px; }

/* ===== Lienzo 3D del jardin (fondo global, claro) ===== */
#garden3d { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100vh; display: block; background: #fdeef0; }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 30%{transform:translate(3%,-8%)} 60%{transform:translate(-6%,4%)} 100%{transform:translate(0,0)} }
.vignette { position: fixed; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 200px 30px rgba(116,22,63,.12); }

/* ===== Loader (claro) ===== */
#loader { position: fixed; inset: 0; z-index: 200; background: #fdeef0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
#loader img { height: 66px; width: auto; }
.lbarwrap { width: min(320px, 60vw); height: 2px; background: rgba(116,22,63,.16); border-radius: 2px; overflow: hidden; }
.lbar { height: 100%; width: 0; background: linear-gradient(90deg, var(--pc-rose), var(--pc-wine)); box-shadow: 0 0 16px var(--pc-rose); }
.lnum { position: absolute; bottom: 7vh; right: 7vw; font: 400 clamp(3rem,9vw,7rem) var(--display); color: rgba(116,22,63,.1); }

.prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 130; background: linear-gradient(90deg, var(--pc-rose), var(--pc-sage), var(--pc-wine)); box-shadow: 0 0 14px rgba(177,77,110,.5); }

/* ===== Navbar flotante de cristal ===== */
.unav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 140;
  width: min(1240px, 94vw); display: flex; align-items: center; gap: 24px;
  padding: 11px 14px 11px 26px; border-radius: 22px;
  background: linear-gradient(118deg, rgba(74,15,42,.92), rgba(116,22,63,.86) 52%, rgba(48,17,33,.94));
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(245,226,231,.2);
  box-shadow: 0 20px 54px rgba(34,9,17,.42), inset 0 1px 0 rgba(255,255,255,.14);
  transition: top .35s ease, padding .35s ease, background .35s ease, box-shadow .35s ease, width .35s ease;
}
.unav::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213,161,176,.7), transparent); }
.unav.scrolled { top: 10px; width: min(1180px, 92vw); padding: 7px 12px 7px 24px;
  background: linear-gradient(118deg, rgba(48,17,33,.96), rgba(116,22,63,.94) 52%, rgba(38,12,26,.97));
  box-shadow: 0 14px 42px rgba(34,9,17,.52), inset 0 1px 0 rgba(255,255,255,.16); }
.unav .brand { display: flex; align-items: center; }
.unav .brand img { height: 44px; width: auto; transition: height .35s ease; }
.unav.scrolled .brand img { height: 38px; }
.unav-links { display: flex; gap: 30px; margin-left: auto; }
.unav-links a { position: relative; font: 600 14px var(--body); letter-spacing: .2px; color: rgba(255,250,246,.76); padding: 5px 2px; transition: color .25s; }
.unav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pc-rose), var(--pc-blush)); transition: right .32s cubic-bezier(.2,1,.32,1); }
.unav-links a:hover { color: #fff; }
.unav-links a:hover::after, .unav-links a.active::after { right: 0; }
.unav-links a.active { color: #fff; }
.unav-right { display: flex; align-items: center; gap: 12px; }
.unav-ig { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px;
  color: var(--pc-blush); border: 1px solid rgba(245,226,231,.28); background: rgba(255,250,246,.07); transition: .3s; }
.unav-ig:hover { background: rgba(255,250,246,.16); color: #fff; transform: translateY(-2px); }
.unav-ig .ic { width: 19px; height: 19px; }
.unav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #fff, var(--pc-blush)); color: var(--pc-wine);
  font: 800 13px var(--body); letter-spacing: .3px; transition: transform .3s, box-shadow .3s; will-change: transform;
  box-shadow: 0 8px 22px rgba(34,9,17,.3); }
.unav-cta .ic { width: 16px; height: 16px; }
.unav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(213,161,176,.45); }
.unav-cta:hover .ic { transform: translateX(3px); }
@media (max-width: 920px) { .unav-links { display: none; } }

/* ===== Escenas inmersivas (jardin 3D claro detras, texto vino) ===== */
.scene { position: relative; z-index: 5; min-height: 100vh; display: flex; align-items: center; padding: clamp(120px,16vh,180px) clamp(24px,7vw,104px); overflow: hidden; color: var(--pc-ink); }
.scene .veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,250,246,.62) 0%, rgba(255,250,246,.28) 42%, rgba(255,250,246,.62) 100%);
}
.scene .veil.left {
  background: linear-gradient(90deg, rgba(255,250,246,.92) 0%, rgba(255,250,246,.62) 42%, rgba(255,250,246,.06) 76%),
             linear-gradient(180deg, transparent 55%, rgba(255,250,246,.4) 100%);
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; position: relative; }
/* halo marfil para que el texto resalte sobre las fotos flotantes */
.scene .eyebrow, .scene h1.big, .scene h2.big, .scene .lead, .scene .sub,
.scene .num, .scene .scroll-cue, .ctaband h2, .cinfo .val, .cinfo .lab {
  text-shadow: 0 1px 18px rgba(255,250,246,.92), 0 0 4px rgba(255,250,246,.85);
}
.num { position: absolute; top: -6vh; right: 0; font: 600 14px var(--body); letter-spacing: 5px; color: var(--pc-rose-deep); text-transform: uppercase; }

.eyebrow { display: inline-flex; align-items: center; gap: 11px; font: 700 13px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--pc-wine); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc-sage); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: 0; line-height: 1; color: var(--pc-wine); }
h1.big { font-size: clamp(54px, 7.4vw, 116px); line-height: .92; max-width: 16ch; }
h2.big { font-size: clamp(42px, 5.6vw, 86px); line-height: .96; margin-bottom: 16px; }
.big em { font-style: italic; color: var(--pc-rose-deep); }
.lead { max-width: 56ch; font-size: clamp(1.05rem,1.35vw,1.32rem); line-height: 1.7; color: rgba(58,33,41,.82); margin-top: 8px; }
.sub { margin-top: 24px; max-width: 52ch; font-size: clamp(1rem,1.2vw,1.18rem); line-height: 1.7; color: rgba(58,33,41,.78); }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta { display: inline-flex; align-items: center; gap: 11px; min-height: 56px; padding: 16px 38px; border-radius: 999px; background: var(--pc-wine); color: #fff; font: 800 15px var(--body); letter-spacing: .2px; will-change: transform; box-shadow: 0 18px 46px rgba(116,22,63,.32); transition: box-shadow .4s; }
.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; transition: transform .4s; }
.cta:hover .ic { transform: translateX(5px); }
.cinfo .ci .ic { width: 20px; height: 20px; }
.cta.ghost { background: transparent; color: var(--pc-wine); border: 1px solid rgba(116,22,63,.4); box-shadow: none; }
.cta.ghost:hover { background: rgba(116,22,63,.07); }
.cta.dark { background: var(--pc-wine); color: #fff; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; font: 600 10px var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--pc-wine); }
.scroll-cue .bar { width: 1px; height: 42px; background: linear-gradient(var(--pc-wine), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0%,100%{opacity:.3;transform:scaleY(.5)} 50%{opacity:1;transform:scaleY(1)} }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 36px; } }

/* ===== Paneles solidos de contenido ===== */
.panel { position: relative; z-index: 5; padding: clamp(86px,10vw,140px) clamp(24px,7vw,104px); background: var(--pc-ivory); color: var(--pc-ink); }
.panel.soft { background: linear-gradient(180deg, #fff8f3, #f6e8df); }
.section-heading { max-width: 880px; }

/* tarjetas de servicio */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; margin-top: 54px; }
@media (max-width: 940px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }
.scard { position: relative; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid rgba(116,22,63,.1); box-shadow: 0 26px 70px rgba(58,33,41,.12); transition: transform .5s cubic-bezier(.2,1,.32,1), box-shadow .5s; will-change: transform; }
.scard:hover { box-shadow: 0 36px 90px rgba(58,33,41,.2); }
.scard .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.scard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s ease; }
.scard:hover .ph img { transform: scale(1.06); }
.scard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(40,14,28,.55)); }
.scard .body { position: absolute; left: 0; bottom: 0; padding: 26px 28px; z-index: 2; color: #fff; }
.scard .n { font: 400 46px var(--display); color: var(--pc-rose); line-height: 1; }
.scard h3 { font-size: clamp(26px,2.4vw,34px); margin: 4px 0 8px; color: #fff; }
.scard p { font-size: .96rem; line-height: 1.55; color: rgba(255,250,246,.88); }

/* banda de estadisticas */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; width: 100%; }
@media (max-width: 640px) { .statband { grid-template-columns: 1fr 1fr; } }
.statband .n { font: 500 clamp(2.8rem,5vw,4.6rem) var(--display); color: var(--pc-wine); }
.statband .l { color: rgba(58,33,41,.72); font-size: .92rem; margin-top: 6px; letter-spacing: .04em; }

/* montaje real */
.room-image { position: relative; }
.room-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; border-radius: 20px; border: 1px solid rgba(116,22,63,.14); box-shadow: 0 40px 100px rgba(58,33,41,.28); }
.room-image::after { content: ""; position: absolute; inset: 8% -4% -8% 10%; z-index: -1; border-radius: 20px; border: 1px solid rgba(177,77,110,.3); }

/* galeria masonry sin estiramiento */
.gallery-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12px; gap: 20px; margin-top: 54px; }
@media (max-width: 980px) { .gallery-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-wall { grid-template-columns: 1fr; } }
.gallery-tile { overflow: hidden; border-radius: 18px; border: 1px solid rgba(116,22,63,.1); background: #fff; box-shadow: 0 20px 56px rgba(58,33,41,.12); opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.gallery-tile.is-visible { opacity: 1; transform: translateY(0); }
.gallery-tile img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .8s ease; }
.gallery-tile:hover img { transform: scale(1.07); }

/* testimonios */
.quote { border-radius: 22px; padding: 32px; background: #fff; border: 1px solid rgba(116,22,63,.1); box-shadow: 0 22px 60px rgba(58,33,41,.1); transition: transform .5s; will-change: transform; }
.quote .stars { color: var(--pc-rose-deep); margin-bottom: 12px; letter-spacing: 3px; }
.quote p { font-family: var(--display); font-size: 1.4rem; font-style: italic; line-height: 1.45; color: var(--pc-ink); }
.quote .who { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.quote .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--pc-rose), var(--pc-wine)); display: flex; align-items: center; justify-content: center; font: 800 1rem var(--body); color: #fff; }
.quote .nm { font-weight: 700; font-size: .95rem; color: var(--pc-wine); }
.quote .rl { font-size: .82rem; color: rgba(58,33,41,.55); }

/* CTA band */
.ctaband { text-align: center; width: 100%; }
.ctaband h2 { font-size: clamp(40px,6vw,84px); max-width: 18ch; margin: 0 auto 28px; color: var(--pc-wine); }
.ctaband h2 em { font-style: italic; color: var(--pc-rose-deep); }

/* contacto */
.cform { width: min(560px,100%); padding: clamp(28px,4vw,46px); border-radius: 24px; background: rgba(255,250,246,.96); color: var(--pc-ink); border: 1px solid rgba(255,250,246,.7); box-shadow: 0 40px 110px rgba(58,33,41,.26); backdrop-filter: blur(18px); }
.cform h2 { color: var(--pc-wine); font-size: clamp(32px,4vw,48px); }
.cform label { display: block; margin-top: 18px; color: var(--pc-wine); font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; }
.cform input, .cform textarea { width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(116,22,63,.18); background: #fff; color: var(--pc-ink); font: 16px var(--body); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--pc-wine); box-shadow: 0 0 0 3px rgba(116,22,63,.1); }
.cform textarea { min-height: 130px; resize: vertical; }
.cform button { margin-top: 24px; width: 100%; justify-content: center; border: none; cursor: pointer; }
.cinfo { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.cinfo .row { display: flex; gap: 14px; align-items: center; }
.cinfo .ci { width: 50px; height: 50px; border-radius: 14px; background: rgba(116,22,63,.08); color: var(--pc-wine); display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid rgba(116,22,63,.16); }
.cinfo .lab { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(58,33,41,.55); }
.cinfo .val { font-family: var(--display); font-size: 1.3rem; color: var(--pc-wine); }

/* ===== Footer premium ===== */
.footer { position: relative; z-index: 5; overflow: hidden; color: rgba(255,250,246,.8);
  background: radial-gradient(120% 140% at 82% 0%, #8a1d4c 0%, #5a1233 45%, #2a0e1c 100%); }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 12% 100%, rgba(154,170,134,.12), transparent 60%); }
.footer-inner { position: relative; max-width: 1240px; margin: 0 auto;
  padding: clamp(58px,7vw,92px) clamp(24px,7vw,104px) 34px;
  display: grid; grid-template-columns: 1.7fr 1fr 1.3fr 1.4fr; gap: clamp(28px,4vw,58px); }
.f-word { font-family: var(--display); font-size: clamp(2rem,3vw,2.6rem); color: var(--pc-ivory); line-height: 1; }
.f-sub { font-family: var(--display); font-style: italic; letter-spacing: .18em; font-size: .9rem; color: var(--pc-rose); margin-top: 4px; }
.f-tag { margin-top: 18px; max-width: 34ch; line-height: 1.65; color: rgba(255,250,246,.6); font-size: .95rem; }
.f-social { display: flex; gap: 12px; margin-top: 24px; }
.f-social a { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,250,246,.08); border: 1px solid rgba(255,250,246,.16); color: var(--pc-blush); transition: .3s; }
.f-social a:hover { background: var(--pc-rose); color: var(--pc-wine); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(213,161,176,.3); }
.f-social .ic { width: 19px; height: 19px; }
.f-col h4 { font-family: var(--display); font-size: 1.35rem; color: var(--pc-ivory); margin-bottom: 14px; }
.f-col a, .f-col span { display: flex; align-items: center; gap: 9px; color: rgba(255,250,246,.66); font-size: .95rem; padding: 6px 0; transition: color .25s, transform .25s; }
.f-col a:hover { color: var(--pc-blush); transform: translateX(3px); }
.f-col .ic { width: 16px; height: 16px; color: var(--pc-rose); flex: none; }
.f-map { display: flex; flex-direction: column; }
.map-frame { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/11;
  border: 1px solid rgba(255,250,246,.18); box-shadow: 0 24px 60px rgba(0,0,0,.42); background: #3a1426; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; background: rgba(42,14,28,.86); color: var(--pc-blush);
  font: 700 12px var(--body); letter-spacing: .03em; backdrop-filter: blur(6px); border: 1px solid rgba(255,250,246,.18); pointer-events: none; }
.map-tag .ic { width: 14px; height: 14px; color: var(--pc-rose); }
.map-cta { margin-top: 15px; display: inline-flex; align-items: center; gap: 9px; color: var(--pc-blush); font: 800 14px var(--body); transition: gap .3s, color .3s; }
.map-cta:hover { color: #fff; gap: 13px; }
.map-cta .ic { width: 18px; height: 18px; }
.footer-bottom { position: relative; max-width: 1240px; margin: 0 auto; padding: 22px clamp(24px,7vw,104px) 40px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,250,246,.5); border-top: 1px solid rgba(255,250,246,.14); }
.f-credit { color: var(--pc-rose); font-weight: 700; text-decoration: none; transition: color .25s; }
.f-credit:hover { color: #fff; text-decoration: underline; }
@media (max-width: 940px) { .footer-inner { grid-template-columns: 1fr 1fr; } .f-brand, .f-map { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; text-align: center; } }

/* ===== Botones flotantes (FAB): WhatsApp + volver arriba ===== */
.fabs { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; padding: 0;
  box-shadow: 0 12px 30px rgba(34,9,17,.4); transition: transform .3s ease, opacity .3s ease, visibility .3s ease, box-shadow .3s ease; }
.fab .ic { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-wa { background: var(--pc-wine); color: #fff; position: relative; }
.fab-wa .ic { fill: currentColor; stroke: none; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(116,22,63,.5); animation: fab-pulse 2.4s ease-out infinite; }
.fab-wa:hover { box-shadow: 0 16px 38px rgba(116,22,63,.5); }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(116,22,63,.45); } 70% { box-shadow: 0 0 0 16px rgba(116,22,63,0); } 100% { box-shadow: 0 0 0 0 rgba(116,22,63,0); } }
.fab-top { background: rgba(255,250,246,.94); color: var(--pc-wine); border: 1px solid rgba(116,22,63,.2);
  opacity: 0; visibility: hidden; transform: translateY(12px); }
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 600px) { .fabs { right: 16px; bottom: 16px; gap: 10px; } .fab { width: 52px; height: 52px; } .fab .ic { width: 24px; height: 24px; } }

html.js .reveal { opacity: 0; }
html:not(.js) #loader { display: none; }
.scene[id], .panel[id] { scroll-margin-top: 96px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .scene { min-height: auto; padding: 120px 22px 90px; }
  .panel { padding: 72px 22px; }
  .num { position: static; display: block; margin-bottom: 12px; }
  .unav { padding: 8px 14px; }
  .unav .brand img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) *, html:not(.fx-force) *::before, html:not(.fx-force) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html:not(.fx-force) .grain { display: none; }
  html:not(.fx-force) .reveal { opacity: 1 !important; }
}
