@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --navy: #0F172A;
  --navy-dark: #0A1020;
  --gold: #C8A96A;
  --gold-light: #D4AF37;
  --gold-dark: #B88A44;
  --white: #FFFFFF;
  --bg-light: #111827;
  --bg-panel: #0F172A;
  --bg-card: #1A2438;
  --text-main: #F8FAFC;
  --text-muted: #A0AEC0;
  --text-light: #6B7280;
  --text-body: #A0AEC0;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(200, 169, 106, 0.3);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 10px 24px -18px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 14px 36px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 20px 56px -20px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: radial-gradient(circle at 20% -10%, rgba(200, 169, 106, 0.08), transparent 40%), var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.75;
}

.section-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 90px 2%;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-tag {
  justify-content: center;
}

.section-header .section-desc {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.section-title span {
  color: var(--gold);
  font-style: italic;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 50px;
}

.gold-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 30px;
}

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 16px 32px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-radius: 6px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  color: var(--white);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 3%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.nav-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(200, 169, 106, 0.35);
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.8);
}

.nav-brand-text {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand-text span {
  color: var(--gold);
  margin: 0 12px;
  font-weight: 300;
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0F172A 20%, #111827 100%);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'JR';
  position: absolute;
  top: 10%;
  right: -5%;
  font-size: 40vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 65% 30%;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: -40px auto 0;
  padding: 0 2%;
}

.hero-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: clamp(2px, 0.5vw, 3px);
  font-weight: 700;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--white);
  margin-bottom: clamp(1rem, 2.5vw, 1.8rem);
  letter-spacing: clamp(1px, 0.2vw, 2px);
  max-width: none;
  width: 100%;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 700px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.hero-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: var(--transition);
}

.hero-photo-frame:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 32px;
  left: -30px;
  background: rgba(15, 23, 42, 0.95);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
}

.hero-badge strong {
  display: block;
  font-size: 2.3rem;
  color: var(--white);
  line-height: 1;
}

.hero-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.stats-bar {
  background: var(--navy-dark);
  padding: 56px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 5px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 600;
}

#about {
  background: var(--bg-panel);
}

#empresas {
  background: #0D1527;
}

#servicios {
  background: #101b30;
}

#cta {
  background: linear-gradient(160deg, #0A1020, #0F172A);
}

#contacto {
  background: #0D1527;
}

.about-grid,
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.about-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.about-text,
.pos-desc,
.empresa-desc,
.servicio-desc,
.cta-sub {
  color: var(--text-muted);
}

.about-text {
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.about-credentials {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credential {
  display: flex;
  gap: 16px;
  align-items: center;
}

.credential-icon,
.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.credential-text,
.contact-value {
  font-weight: 600;
  color: var(--white);
}

.credential-sub,
.contact-label {
  font-size: 0.88rem;
  color: var(--text-light);
}

.about-right {
  background: linear-gradient(160deg, #111827, #0A1020);
  padding: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.positioning-label {
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.positioning-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.pos-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--white);
}

.empresas-grid,
.servicios-grid {
  display: grid;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.empresas-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  padding: 0 5% 90px;
}

.servicios-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 44px;
}

.empresa-card,
.servicio-card,
.contact-form {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empresa-card,
.servicio-card {
  padding: 38px;
}

.empresa-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.empresa-card:hover,
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.empresa-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 24px;
  font-weight: 900;
}

.empresa-sector {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.empresa-name,
.servicio-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
}

.empresa-name {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.empresa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin-bottom: 24px;
}

.servicio-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

#cta {
  text-align: center;
  color: var(--white);
  padding: 130px 5%;
}

.cta-slogan {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.cta-slogan em {
  color: var(--gold);
}

.cta-sub {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.contact-form {
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.12);
}

textarea.form-input {
  height: 140px;
  resize: none;
}

select.form-input option {
  background: #0F172A;
  color: var(--white);
}

footer {
  background: var(--navy);
  padding: 72px 5% 34px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer img {
  height: 56px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-nav,
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.footer-copy,
.copyright {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

@media (max-width: 1024px) {

  .about-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-photo-wrap {
    order: -1;
    max-width: 300px;
  }

  .hero-badge {
    left: 10px;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-logo {
    width: 38px;
    height: 38px;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 10%;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    opacity: 0;
  }

  nav.is-open ul {
    transform: translateY(0);
    opacity: 1;
  }

  nav ul li a {
    font-size: 1.4rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
  }

  .nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
  }

  nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--gold);
  }

  nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--gold);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
    align-items: center;
  }

  .section-inner {
    padding: 60px 6%;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .about-grid,
  .contacto-grid {
    gap: 48px;
  }

  .about-right {
    padding: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .empresa-card,
  .servicio-card,
  .contact-form {
    padding: 28px;
  }
}

body.is-loading {
  overflow: hidden;
}

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(200, 169, 106, 0.14), transparent 40%), #0A1020;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  width: 60px;
  height: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.loader-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.loader-name {
  min-height: 48px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.typed-caret {
  color: var(--gold);
  animation: blink 0.8s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(10, 16, 32, 0.96);
  border-bottom-color: rgba(200, 169, 106, 0.28);
}

.hero::before {
  transform: translateY(calc(var(--hero-parallax, 0px) * -1));
  transition: transform 0.15s linear;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-btns a,
.empresa-card,
.servicio-card,
.stat-item {
  transition-property: transform, box-shadow, border-color, opacity;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #site-loader {
    display: none;
  }
}

.hero-caret {
  display: none;
  color: var(--gold);
  margin-left: 4px;
}

.hero-caret.is-visible {
  display: inline-block;
  animation: blink 0.8s steps(1, end) infinite;
}

.hero-intro {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-photo-wrap.hero-intro {
  transform: translateY(18px) scale(0.985);
}

.hero-badge.hero-intro {
  transform: translateY(16px) translateX(-6px);
}

.hero-intro.hero-intro-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-photo-wrap.hero-intro.hero-intro-in {
  transform: translateY(0) scale(1);
}

.hero-badge.hero-intro.hero-intro-in {
  transform: translateY(0) translateX(0);
}

.site-footer {
  background: linear-gradient(180deg, #0c1324 0%, #0a1020 100%);
  padding: 56px 5% 28px;
  border-top: 1px solid rgba(200, 169, 106, 0.25);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  padding: 5px;
  border: 1px solid rgba(200, 169, 106, 0.35);
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.85);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.footer-brand strong {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.site-footer .footer-links {
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a svg {
  width: 22px;
  height: 22px;
}

.footer-social a:hover {
  color: var(--gold);
  transform: translateY(-4px);
}

.site-footer .footer-copy {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-top {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }
}