/* ====================================================
   YELLOW KINGDOM — Main Stylesheet
   Tema: negro profundo + blanco, cinematográfico
   Fuentes: Raleway (títulos) + Nunito Sans (cuerpo)
   Parallax: JS-driven al 20% de velocidad de scroll
   ==================================================== */

:root {
  --dark:  #242424;
  --dark1: #2b2b2b;
  --dark2: #343434;
  --dark3: #3c3c3c;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --dim:   rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.12);
  --img-dark: url('/yk/yk-background.png');
  --img-color: url('/yk/yk-banner.png');
}

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

/* Base font escala con el viewport: 16px en 1440, 20px en pantallas grandes */
html { scroll-behavior:smooth; font-size: clamp(16px, 1.15vw, 20px) }

body {
  font-family: 'Nunito Sans','Helvetica Neue',Arial,sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

img   { max-width:100%; height:auto; display:block }
a     { color:inherit; text-decoration:none }
ul    { list-style:none }
strong{ font-weight:700 }
em    { font-style:italic }

.container { width:90%; max-width:1280px; margin:0 auto }

/* ---- NAVBAR ---- */
.navbar {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  padding:1.2rem 0;
  transition:background .35s, box-shadow .35s;
}
.navbar.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 24px rgba(0,0,0,.5);
}
.nav-container {
  width:90%; max-width:1280px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo img { height:36px; width:auto; filter:brightness(0) invert(1); opacity:.92 }
.nav-logo .logo-fallback {
  display:none;
}
.nav-menu ul { display:flex; align-items:center; gap:2.2rem }
.nav-link {
  font-family:'Raleway',sans-serif; font-size:.68rem; font-weight:600;
  letter-spacing:2.5px; text-transform:uppercase;
  color:rgba(255,255,255,.75); transition:color .2s;
  position:relative; padding-bottom:3px;
}
.nav-link::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1px; background:var(--white); transition:width .3s;
}
.nav-link:hover { color:var(--white) }
.nav-link:hover::after { width:100% }
.nav-lang {
  border:1px solid rgba(255,255,255,.4); padding:4px 14px;
  border-radius:2px; transition:all .2s;
}
.nav-lang:hover { background:var(--white); color:var(--dark) }
.nav-lang::after { display:none!important }
.nav-toggle {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.nav-toggle span { display:block; width:24px; height:1.5px; background:var(--white); transition:all .3s }
.nav-toggle.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg) }
.nav-toggle.open span:nth-child(2) { opacity:0 }
.nav-toggle.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg) }

/* ---- HERO ---- */
.hero {
  min-height:100vh; position:relative;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; background:var(--dark);
}
.hero-bg {
  position:absolute; inset:0;
  background-image: var(--img-color);
  background-size:cover; background-position:center 50%;
  /* Sin background-attachment:fixed — el parallax lo maneja JS */
  will-change: background-position;
  opacity:1; z-index:0;
}

/* hero-content vacío en el HTML — se mantiene por si acaso */
.hero-content { display:none }

.scroll-arrow {
  position:absolute; bottom:2.5rem; left:50%; transform:translateX(-50%);
  z-index:1; color:rgba(255,255,255,.4);
  animation:bounce 2.3s infinite; transition:color .2s;
}
.scroll-arrow:hover { color:var(--white) }

/* ---- PARALLAX STRIPS ---- */
.parallax-strip {
  height:600px;
  background-size:cover; background-position:center 50%;
  /* Sin background-attachment:fixed — el parallax lo maneja JS */
  will-change: background-position;
}
.strip-dark  { background-image:var(--img-dark); filter:contrast(1.4) brightness(.8) }
.strip-color { background-image:var(--img-color) }

/* ---- SECTIONS ---- */
.section { padding:130px 0; position:relative }
.section-nosotros  { background:var(--dark1) }
.section-jorge     { background:var(--dark2) }
.section-foco      { background:var(--dark1) }
.section-portfolio { background:var(--dark3) }
.section-contacto  { background:var(--dark2) }

.section-label {
  font-family:'Raleway',sans-serif; font-size:.68rem; font-weight:700;
  letter-spacing:4px; color:var(--dim); text-transform:uppercase;
  margin-bottom:1.2rem;
}
.section-heading {
  font-family:'Raleway',sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight:700; letter-spacing:5px; text-transform:uppercase;
  color:var(--white); line-height:1.15; margin-bottom:1rem;
}
.section-heading.centered { text-align:center }
.section-rule { width:32px; height:1px; background:rgba(255,255,255,.35); margin-bottom:2.4rem }
.section-rule.centered { margin:0 auto 2.4rem }

.section-body {
  color:var(--muted); font-size:1.37rem; line-height:1.9; margin-bottom:1.2rem;
}
.section-body--lead { color:var(--white); font-weight:600; font-size:1.46rem }
.section-body:last-child { margin-bottom:0 }
.nosotros-content { max-width:760px }

/* ---- JORGE / EQUIPO ---- */
.jorge-inner { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center }
.jorge-photo {
  border:1px dashed rgba(255,255,255,.12); border-radius:2px;
  min-height:460px; display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.18); font-size:.82rem; text-align:center;
  padding:2rem; background:rgba(255,255,255,.02);
}
.jorge-photo img { width:100%; height:100%; object-fit:cover; border-radius:2px }

/* ---- NUESTRO FOCO ---- */
.foco-intro { text-align:center; max-width:760px; margin:0 auto 3.5rem }
.foco-grid  { display:flex; flex-wrap:wrap; gap:1.5rem; justify-content:center }
.foco-card  {
  flex:0 0 calc(33.333% - 1rem); padding:2rem 1.6rem;
  border:1px solid var(--border); border-radius:2px;
  transition:border-color .3s, background .3s;
}
.foco-card:hover { border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.04) }
.foco-title {
  font-family:'Raleway',sans-serif; font-size:.7rem; font-weight:700;
  letter-spacing:3px; color:var(--white); text-transform:uppercase; margin-bottom:1.1rem;
}
.foco-card p { color:var(--muted); font-size:1.27rem; line-height:1.85 }

/* ---- PORTFOLIO — grilla 3×3 ---- */
.portfolio-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-top:1rem }
.portfolio-item { overflow:hidden; border-radius:2px; position:relative }
.portfolio-item img {
  width:100%; height:260px; object-fit:cover;
  filter:brightness(1); transition:transform .5s ease, filter .4s ease; display:block;
}
.portfolio-item:hover img { transform:scale(1.05); filter:brightness(1) }
.portfolio-caption {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent, rgba(0,0,0,.75));
  padding:.8rem 1rem .7rem;
  font-family:'Raleway',sans-serif; font-size:.65rem; font-weight:600;
  letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,.85);
  opacity:0; transition:opacity .3s;
}
.portfolio-item:hover .portfolio-caption { opacity:1 }

/* ---- CONTACT ---- */
.contact-inner { max-width:600px; margin:0 auto }
.contact-form  { display:flex; flex-direction:column; gap:1rem; margin-top:2.5rem }
.honey { position:absolute; opacity:0; height:0; width:0; pointer-events:none }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem }
.form-group input,
.form-group textarea {
  width:100%; background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14); border-radius:2px;
  padding:1rem 1.1rem; color:var(--white);
  font-family:inherit; font-size:.95rem; outline:none;
  resize:vertical; transition:border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:rgba(255,255,255,.28) }
.form-group input:focus,
.form-group textarea:focus { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.08) }
.form-group input.error,
.form-group textarea.error { border-color:rgba(220,60,60,.6) }
.form-submit { display:flex; justify-content:center; margin-top:.6rem }
.btn {
  display:inline-block; padding:.9rem 3rem;
  font-family:'Raleway',sans-serif; font-size:.7rem; font-weight:700;
  letter-spacing:3px; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.7); background:transparent;
  color:var(--white); border-radius:2px; cursor:pointer; transition:all .25s;
}
.btn:hover { background:var(--white); color:var(--dark) }
.btn:disabled { opacity:.5; cursor:not-allowed }
.form-success,
.form-error { display:none; text-align:center; padding:1rem; border-radius:2px; font-size:.9rem }
.form-success { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.8) }
.form-error   { background:rgba(210,50,50,.1); border:1px solid rgba(210,50,50,.35); color:rgba(255,140,140,.9) }
.form-success.visible,
.form-error.visible { display:block }

/* ---- FOOTER ---- */
.footer { background:#000; padding:4rem 0 2.5rem }
.footer-inner {
  width:90%; max-width:1280px; margin:0 auto;
  display:flex; flex-direction:column; align-items:center; gap:1.6rem; text-align:center;
}
.footer-logo img { height:30px; filter:brightness(0) invert(1); opacity:.65 }
.footer-logo .logo-fallback {
  display:none;
}
.footer-sep   { width:40px; height:1px; background:rgba(255,255,255,.12) }
.footer-info p  { color:rgba(255,255,255,.38); font-size:.83rem; margin-bottom:.25rem }
.footer-info a  { color:rgba(255,255,255,.38); transition:color .2s }
.footer-info a:hover { color:var(--white) }
.footer-links a { color:rgba(255,255,255,.38); font-size:.8rem; letter-spacing:.5px; transition:color .2s }
.footer-links a:hover { color:var(--white) }
.footer-copy  { font-size:.7rem; color:rgba(255,255,255,.18) }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp { from{ opacity:0; transform:translateY(32px) } to{ opacity:1; transform:translateY(0) } }
@keyframes bounce {
  0%,100% { transform:translateX(-50%) translateY(0) }
  50%      { transform:translateX(-50%) translateY(9px) }
}
.fade-in { opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease }
.fade-in.visible { opacity:1; transform:translateY(0) }

/* ---- RESPONSIVE ---- */
@media(max-width:1024px) {
  .foco-card { flex:0 0 calc(50% - .75rem) }
  .portfolio-grid { grid-template-columns:repeat(2,1fr) }
}

@media(max-width:768px) {
  .nav-toggle { display:flex }
  .nav-menu {
    position:fixed; top:0; right:-100%; width:270px; height:100vh;
    background:var(--dark1); border-left:1px solid var(--border);
    padding:5rem 2rem 2rem; transition:right .35s; z-index:999;
    box-shadow:-4px 0 20px rgba(0,0,0,.4);
  }
  .nav-menu.open { right:0 }
  .nav-menu ul { flex-direction:column; align-items:flex-start; gap:1.6rem }
  .nav-link { font-size:.85rem }
  .jorge-inner { grid-template-columns:1fr; gap:2.5rem }
  .jorge-photo { min-height:220px }
  .foco-card { flex:0 0 calc(50% - .75rem) }
  .portfolio-grid { grid-template-columns:repeat(2,1fr) }
  .form-row { grid-template-columns:1fr }
  .section { padding:80px 0 }
  .parallax-strip { height:340px; background-attachment:scroll }
  .hero { min-height:60vh }
  .hero-bg { background-attachment:scroll; background-size:cover; background-repeat:no-repeat; background-position:center }
}

@media(max-width:480px) {
  .foco-card { flex:0 0 100% }
  .portfolio-grid { grid-template-columns:1fr }
  .section { padding:60px 0 }
  .section-heading { letter-spacing:3px }
  .portfolio-item img { height:200px }
}
