/* =========================================================
   Dr. Gonzalo Rodríguez Saudel — Static site
   Single-file CSS, no build step. Edit values freely.
   ========================================================= */

:root {
  --bg:           hsl(220 15% 4%);
  --fg:           hsl(0 0% 88%);
  --muted:       hsl(0 0% 45%);
  --secondary:    hsl(0 0% 70%);
  --border:       hsl(220 10% 15%);

  --gold:         hsl(40 55% 50%);
  --gold-light:   hsl(40 50% 65%);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Layout helpers ===== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
@media (min-width: 768px) { .container { padding: 0 4rem; } }
@media (min-width: 1024px){ .container { padding: 0 6rem; } }
.container.narrow {max-width: 80rem;}
.center { display: flex; justify-content: center; align-items: center; }

/* ===== Decorative lines / glows ===== */
.line-gold {
  height: 1px;
  background: linear-gradient(90deg, hsl(40 55% 50% / .8), hsl(40 50% 65% / .3), transparent);
}
.line-gold-center {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(40 55% 50% / .6), transparent);
}
.line-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(40 55% 50% / .15), transparent);
}
.vertical-line {
  position: absolute; top: 25%; bottom: 25%; left: 1.5rem; width: 1px;
  background: linear-gradient(to bottom, transparent, hsl(40 55% 50% / .2), transparent);
}
@media (min-width: 768px){ .vertical-line { left: 4rem; } }
@media (min-width: 1024px){ .vertical-line { left: 6rem; } }

.gold-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(120px);
  background: hsl(40 55% 50% / .05);
}
.gold-glow--bottom-left  { bottom: 0; left: 0;  width: 600px; height: 400px; }
.gold-glow--bottom-right { bottom: 0; right: 0; width: 600px; height: 400px; }
.gold-glow--top-right    { top: 0; right: 0; width: 300px; height: 300px; filter: blur(100px); background: hsl(40 55% 50% / .03); }
.gold-glow--bottom-left2 { bottom: 0; left: 25%; width: 200px; height: 200px; filter: blur(80px); background: hsl(40 55% 50% / .02); }

/* ===== Typography ===== */
.title-xl {
  font-size: clamp(3.25rem, 3.8vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.title-m {
  font-size: clamp(2.4rem, 4.55vw, 3.25rem);
  line-height: 1.2;
}
.quote {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 1.625rem);
  color: hsl(40 50% 65% / .8);
  text-shadow: 0 0 30px hsl(40 55% 50% / .15);
  max-width: 36rem;
}
.body {
  font-size: 1rem;
  line-height: 2;
  color: var(--secondary);
  font-weight: 300;
}
@media (min-width: 768px){ .body { font-size: 1.125rem; } }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.8vw, 2.44rem);
  line-height: 1.6;
  color: var(--fg);
}
.text-gold {
  background: linear-gradient(135deg, hsl(40 55% 50%), hsl(40 50% 65%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow labels */
.eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.eyebrow p, .eyebrow-center p, .kicker, .kicker-center {
  font-family: var(--font-sans);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: hsl(40 55% 50% / .99);
}
.eyebrow .bar { width: 2rem; height: 1px; background: hsl(40 55% 50% / .6); }
.eyebrow .diamond,
.diamond { width: .5rem; height: .5rem; transform: rotate(45deg); border: 1px solid hsl(40 55% 50% / .4); display: inline-block; }
.diamond.solid { background: hsl(40 55% 50% / .4); border: none; }

.eyebrow-center {display: flex;align-items: center;justify-content: center;gap: 1rem;margin-bottom: 3rem;margin-top: 15rem;}
.eyebrow-center .line-fade-right { width: 3rem; height: 1px; background: linear-gradient(to right, transparent, hsl(40 55% 50% / .4)); }
.eyebrow-center .line-fade-left  { width: 3rem; height: 1px; background: linear-gradient(to left,  transparent, hsl(40 55% 50% / .4)); }

.kicker-center { display: block; text-align: center; margin-bottom: .75rem; }
.kicker {font-family: var(--font-serif);letter-spacing: .12em;color: hsl(40 55% 50% / .99);margin-bottom: 1.5rem;}

/* ===== Buttons ===== */
.btn-gold {
  position: relative;
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--fg);
  border: 1px solid hsl(40 55% 50% / .4);
  border-radius: 999px;
  padding: 1rem 2rem;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all .5s ease;
}
.btn-gold:hover {
  border-color: hsl(40 55% 50% / .7);
  box-shadow: 0 0 30px -5px hsl(40 55% 50% / .4);
}
.btn-gold .arrow {
  display: inline-block; width: 1rem; height: 1px; background: hsl(40 55% 50% / .6);
  transition: width .5s ease;
}
.btn-gold:hover .arrow { width: 1.5rem; }
.btn-gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, hsl(40 55% 50% / 0), hsl(40 55% 50% / .1), hsl(40 55% 50% / 0));
  transform: translateX(-100%);
  transition: transform 1.2s ease-out;
}
.btn-gold:hover::before { transform: translateX(100%); }
.btn-gold > * { position: relative; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}
@media (min-width: 768px){ .hero { padding-bottom: 6rem; } }

.bg-image {
  position: absolute; left: 0; right: 0; top: -10rem; bottom: -10rem;
  background-size: cover; background-position: top center;
  will-change: transform;
}
.overlay-top {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), hsl(220 15% 4% / .7), transparent);
}
.overlay-left {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsl(220 15% 4% / .5), transparent);
}
.hero__content { max-width: 64rem; padding-bottom: 0; }

/* ===== Trajectory ===== */
.trajectory {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
@media (min-width: 768px){ .trajectory {padding: 7rem 0;} }

.grid-2 {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 4rem;
  margin-top: 5rem;
}
@media (min-width: 768px){
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 6rem; }
}
.col-line {
  display: none;
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, hsl(40 55% 50% / .1), transparent);
}
.center-gem {
  display: none;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: hsl(40 55% 50% / .2);
  font-size: 2.5rem;
}
@media (min-width: 768px){
  .col-line, .center-gem { display: block; }
}
.stack > p + p { margin-top: 2rem; }

/* ===== Vision ===== */
.vision {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
@media (min-width: 768px){ .vision { padding: 12rem 0; } }

.overlay-full {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), hsl(220deg 15% 4% / 41%), hsl(220deg 15% 4% / 34%));
}
.overlay-sides {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(220 15% 4% / .6), transparent, hsl(220 15% 4% / .6));
}
.corner { position: absolute; width: 4rem; height: 4rem; z-index: 2; }
.corner--tl { top: 3rem; left: 3rem; border-top: 1px solid hsl(40 55% 50% / .15); border-left: 1px solid hsl(40 55% 50% / .15); }
.corner--br { bottom: 3rem; right: 3rem; border-bottom: 1px solid hsl(40 55% 50% / .15); border-right: 1px solid hsl(40 55% 50% / .15); }

.divider-diamonds {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 3rem;
}
.divider-diamonds .hr { width: 4rem; height: 1px; background: hsl(40 55% 50% / .2); }

/* ===== Philosophy ===== */
.philosophy {
  position: relative;
  padding: 8rem 0;
  min-height: 90vh;
  overflow: hidden;
}
@media (min-width: 768px){ .philosophy { padding: 12rem 0; } }

.bg-lines { position: absolute; inset: 0; opacity: .03; pointer-events: none; }
.bg-lines span { position: absolute; left: 0; right: 0; height: 1px; background: var(--gold); }
.bg-lines span:nth-child(1) { top: 20%; }
.bg-lines span:nth-child(2) { top: 35%; }
.bg-lines span:nth-child(3) { top: 50%; }
.bg-lines span:nth-child(4) { top: 65%; }
.bg-lines span:nth-child(5) { top: 80%; }

.pull-quote {
  margin-top: 3rem;
  margin-bottom: 5rem;
  padding-left: 1.5rem;
  border-left: 2px solid hsl(40 55% 50% / .3);
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 2.1rem);
  line-height: 1.5;
  color: var(--fg);
  text-shadow: 0 0 30px hsl(40 55% 50% / .15);
}
.pull-quote .diamond-mark {
  position: absolute; left: -5px; top: 0;
  width: .5rem; height: .5rem; transform: rotate(45deg);
  background: hsl(40 55% 50% / .5);
}

/* ===== 3D floating gem ===== */
.gem-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
  will-change: transform;
}
.gem-glow {
  position: absolute; width: 500px; height: 500px;
  background: hsl(40 55% 50% / .1);
  border-radius: 50%;
  filter: blur(100px);
}
.gem-float {
  position: relative; width: 220px; height: 220px;
  perspective: 1200px;
  animation: gem-float-y 7s ease-in-out infinite;
  margin-top: -220px;
}
@media (min-width: 768px){ .gem-float { width: 300px; height: 300px; margin-top: -300px; } }
.gem-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: gem-spin 22s linear infinite;
}
.gem-face {
  position: absolute; top: 50%; left: 50%;
  width: 90px; height: 180px; margin-left: -45px; margin-top: -90px;
  background: linear-gradient(180deg,
    hsl(40 70% 65% / .55) 0%,
    hsl(40 60% 50% / .35) 50%,
    hsl(40 50% 30% / .15) 100%);
  border: 1px solid hsl(40 70% 60% / .4);
  clip-path: polygon(50% 0%, 100% 35%, 50% 100%, 0% 35%);
  box-shadow:
    inset 0 0 30px hsl(40 80% 70% / .3),
    0 0 20px hsl(40 70% 50% / .15);
}
@media (min-width: 768px){
  .gem-face { width: 120px; height: 240px; margin-left: -60px; margin-top: -120px; }
}
.gem-cap {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin-left: -20px; margin-top: -20px;
  background: radial-gradient(circle, hsl(40 80% 70% / .6), hsl(40 60% 40% / .2));
  border-radius: 50%; filter: blur(2px);
}
.gem-cap.top { transform: translateY(-90px); }
.gem-cap.bot { transform: translateY(90px); }
@media (min-width: 768px){
  .gem-cap.top { transform: translateY(-120px); }
  .gem-cap.bot { transform: translateY(120px); }
}

@keyframes gem-spin {
  from { transform: rotateY(0deg)   rotateX(15deg); }
  to   { transform: rotateY(360deg) rotateX(15deg); }
}
@keyframes gem-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* ===== Contact ===== */
.contact {
  padding: 5rem 0 8rem;
  position: relative;
}
@media (min-width: 768px){ .contact { padding: 5rem 0 12rem; } }

.contact-form {
  display: flex; flex-direction: column; gap: 1.25rem;
  max-width: 40rem; margin: 0 auto;
}
.contact-form .row {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px){ .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: .5rem; }
.contact-form label > span {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: hsl(40 55% 50% / .6);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  background: hsl(220 10% 12% / .3);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: .85rem 1rem;
  border-radius: .5rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.contact-form textarea { resize: none; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: hsl(0 0% 35%); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: hsl(40 55% 50% / .5);
  box-shadow: 0 0 0 3px hsl(40 55% 50% / .12);
}

.info-grid {
  margin-top: 6rem;
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px){ .info-grid {grid-template-columns: repeat(2, 1fr);gap: 2rem;} }
.info { font-size: .9rem; color: var(--secondary); margin-top: .25rem; }
.info.link { display: block; transition: color .3s; }
.info.link:hover { color: var(--gold-light); }

.copyright {
  margin-top: 6rem;
  display: flex; align-items: center; gap: .75rem;
}
.copyright .bar-small { width: .75rem; height: 1px; background: hsl(40 55% 50% / .3); }
.copyright p { font-family: var(--font-serif); font-size: .75rem; color: var(--muted); letter-spacing: .05em; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: hsl(220 12% 7%); color: var(--fg);
  border: 1px solid hsl(40 55% 50% / .4);
  border-radius: 999px;
  padding: .85rem 1.5rem;
  font-size: .8rem; letter-spacing: .1em;
  transition: transform .5s ease;
  z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== WhatsApp Floating Button ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.25rem .9rem 1rem;
  border-radius: 999px;
  background: hsl(220 12% 7% / .85);
  color: var(--gold-light);
  border: 1px solid hsl(40 55% 50% / .5);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px -10px hsl(40 55% 50% / .35), 0 0 0 1px hsl(40 55% 50% / .05);
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  border-color: hsl(40 55% 50% / .85);
  box-shadow: 0 14px 50px -8px hsl(40 55% 50% / .55);
}
.whatsapp-fab svg { flex: none; }
@media (max-width: 520px) {
  .whatsapp-fab__label { display: none; }
  .whatsapp-fab { padding: .85rem; }
}
