/* ============================================================
   THE SUNS — Global Stylesheet
   Aesthetic: Dark luxury editorial · Rojo sangre & Negro profundo
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */


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

:root {
  --red:        #C0111F;
  --red-light:  #E8293A;
  --red-dim:    #7A0A13;
  --red-text:   #E8293A;   /* rojo más claro para texto pequeño (mejor contraste) */
  --red-glow:   rgba(192,17,31,0.18);
  --black:      #080808;
  --black-2:    #0F0F0F;
  --black-3:    #161616;
  --black-4:    #1E1E1E;
  --black-5:    #272727;
  --white:      #F2EDE8;
  --white-dim:  #A09890;
  --white-faint:#8B837B;
  --ft: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', sans-serif;
  --nav-h: 68px;
  --px: 1.25rem;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media(min-width:640px)  { :root { --px: 2rem; } }
@media(min-width:1024px) { :root { --px: 3rem; } }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: default;
}

/* Custom cursor — solo en dispositivos con mouse */
#cursor, #cursor-ring { display:none; }
@media (hover:hover) and (pointer:fine) {
  body * { cursor:none !important; }
  #cursor, #cursor-ring { display:block; }
}
#cursor {
  position: fixed; top:0; left:0; z-index:9999;
  width:12px; height:12px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  transition: width .2s var(--ease), height .2s var(--ease), background .2s;
}
#cursor-ring {
  position: fixed; top:0; left:0; z-index:9998;
  width:36px; height:36px;
  border: 1px solid rgba(192,17,31,.5);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  transition: transform .12s var(--ease), opacity .2s;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--fb); }
img { display:block; max-width:100%; height:auto; }
.nav-logo { display:flex; align-items:center; }
.nav-logo img { width:52px; height:auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--red-dim); }

/* ════════════════════════════
   NAV
   ════════════════════════════ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--px);
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192,17,31,.15);
  transition: background .3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  max-width: var(--max); margin: 0 auto; width:100%;
}
.nav-logo {
  font-family: var(--ft);
  font-size: 1.35rem; font-weight: 900;
  color: var(--white); letter-spacing: .5px;
}
.nav-logo span { color: var(--red); }

.nav-links { display:none; list-style:none; gap:0; }
@media(min-width:768px) { .nav-links { display:flex; } }
.nav-links a {
  display:block; padding: 8px 16px;
  font-size: .7rem; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 500;
  color: var(--white-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute;
  bottom:4px; left:16px; right:16px;
  height:1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display:flex; flex-direction:column; gap:5px;
  width:38px; height:38px; background:transparent;
  border:1px solid rgba(192,17,31,.3);
  padding:9px 8px; align-items:center; justify-content:center;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--red); }
.hamburger span { display:block; width:18px; height:1.5px; background:var(--red); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media(min-width:768px) { .hamburger { display:none; } }

/* Mobile drawer */
.mob-menu {
  position:fixed; top:var(--nav-h); left:0; right:0; z-index:190;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(16px);
  border-bottom:1px solid rgba(192,17,31,.15);
  max-height:0; overflow:hidden;
  transition: max-height .35s var(--ease), opacity .3s;
  opacity:0;
}
.mob-menu.open { max-height:520px; opacity:1; }
.mob-menu ul { list-style:none; padding:1rem var(--px) 1.8rem; }
.mob-menu a {
  display:block; padding:14px 0;
  font-size:.82rem; letter-spacing:3px;
  text-transform:uppercase; color:var(--white-dim);
  border-bottom:1px solid rgba(192,17,31,.08);
  transition: color .2s, padding-left .2s;
}
.mob-menu li:last-child a { border-bottom:none; }
.mob-menu a:hover, .mob-menu a.active { color:var(--red); padding-left:10px; }
@media(min-width:768px) { .mob-menu { display:none; } }

/* ════════════════════════════
   SECTION BASE
   ════════════════════════════ */
section {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display:flex; flex-direction:column; justify-content:center;
}
.inner {
  max-width: var(--max);
  margin: 0 auto;
  width:100%;
  padding: 4rem var(--px);
}
@media(min-width:768px) { .inner { padding: 5rem var(--px); } }

.eyebrow {
  font-size: .62rem; letter-spacing:6px;
  color: var(--red-text); text-transform:uppercase;
  font-weight:500; margin-bottom:.7rem;
}
.big-title {
  font-family: var(--ft);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight:900; line-height:1;
  color: var(--white);
}
.big-title em { font-style:italic; color:var(--red); }
.section-rule {
  width:48px; height:2px; background:var(--red);
  margin: 1.2rem 0 2.5rem;
}
.section-rule.center { margin-left:auto; margin-right:auto; }
.body-text {
  font-size: clamp(.85rem, 1.5vw, .95rem);
  color: var(--white-dim); line-height:1.85;
}

/* Red accent line */
.red-line {
  display:inline-block;
  width:32px; height:2px; background:var(--red);
  vertical-align:middle; margin-right:12px;
}

/* ════════════════════════════
   BUTTONS
   ════════════════════════════ */
.btn-red {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--red); color: var(--white);
  border:none; padding:13px 30px;
  font-size:.72rem; letter-spacing:2.5px;
  text-transform:uppercase; font-weight:600;
  transition: background .2s var(--ease), transform .15s;
  position:relative; overflow:hidden;
}
.btn-red::after {
  content:''; position:absolute;
  inset:0; background:rgba(255,255,255,.08);
  transform:translateX(-100%);
  transition: transform .3s var(--ease);
}
.btn-red:hover { background:var(--red-light); transform:translateY(-2px); }
.btn-red:hover::after { transform:translateX(0); }

.btn-outline {
  display:inline-flex; align-items:center; gap:8px;
  background:transparent; color:var(--red-text);
  border:1px solid var(--red); padding:12px 28px;
  font-size:.72rem; letter-spacing:2.5px;
  text-transform:uppercase; font-weight:600;
  transition: all .2s var(--ease);
}
.btn-outline:hover { background:var(--red); color:var(--white); }

/* ════════════════════════════
   FOOTER
   ════════════════════════════ */
footer {
  background: var(--black-2);
  border-top: 1px solid rgba(192,17,31,.15);
  padding: 2.5rem var(--px);
  text-align:center;
}
.footer-logo { font-family:var(--ft); font-size:1.3rem; font-weight:900; color:var(--white); margin-bottom:.5rem; }
.footer-logo span { color:var(--red); }
.footer-copy { font-size:.68rem; color:var(--white-faint); letter-spacing:2px; }

/* ════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════ */
.reveal {
  opacity:0; transform:translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }


/* ════════════════════════════
   ACCESIBILIDAD
   ════════════════════════════ */
:focus-visible { outline:2px solid var(--red-light); outline-offset:3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}
