/* ============================================
   NEXORA ACÚSTICA — Stylesheet
   Paleta estricta: negro + champagne gold + neutros
   ============================================ */

:root {
  /* Brand colors */
  --black: #0a0a0a;
  --black-soft: #121212;
  --black-warm: #1a1715;
  --gold: #d4a574;
  --gold-dim: #b88d5e;
  --gold-soft: rgba(212, 165, 116, 0.15);
  --cream: #f5f1ea;
  --gray-100: #e8e4dd;
  --gray-300: #9a948c;
  --gray-500: #6b655e;
  --gray-700: #2a2724;
  --gray-900: #161310;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --container-max: 1320px;
  --container-pad: 1.5rem;

  --radius: 2px;
  --transition: 400ms cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 768px) {
  :root { --container-pad: 2.5rem; }
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(212, 165, 116, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo,
.logo picture {
  display: inline-block;
  line-height: 0;
}
.logo img {
  height: 52px;
  width: auto;
  background: transparent;
  transition: opacity var(--transition);
}
.logo:hover img { opacity: 0.85; }

@media (max-width: 767px) {
  .logo img { height: 40px; }
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray-100);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover {
  color: var(--gold);
}
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.65rem 1.4rem !important;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold) !important;
  transition: all var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold);
  color: var(--black) !important;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.active {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--black);
    padding: 6rem 2rem 3rem;
    height: 100vh;
  }
  .main-nav.active ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .main-nav.active a {
    font-size: 1.5rem;
    font-family: var(--font-display);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background: var(--black);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.55) 35%, rgba(10,10,10,0.25) 70%, rgba(10,10,10,0.4) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 30%, rgba(10,10,10,0.4) 70%, rgba(10,10,10,0.9) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.75rem; font-weight: 500;
}
.eyebrow-line { width: 48px; height: 1px; background: var(--gold); flex-shrink: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.015em;
  margin-bottom: 1.75rem; font-weight: 300;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 300; }

.hero-sub {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55; max-width: 620px;
  color: var(--gray-100); margin-bottom: 2.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem;
}

.hero-meta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.meta-num {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--gold); font-weight: 500; line-height: 1;
}
.meta-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-300);
}
.meta-divider { width: 1px; height: 32px; background: rgba(212, 165, 116, 0.3); }

@media (max-width: 767px) {
  .hero { padding: 6.5rem 0 4rem; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.4) 40%, rgba(10,10,10,0.85) 100%);
  }
  .hero-eyebrow { font-size: 0.7rem; margin-bottom: 1.5rem; gap: 0.75rem; }
  .eyebrow-line { width: 32px; }
  .hero-title { font-size: clamp(2.25rem, 9vw, 3rem); margin-bottom: 1.5rem; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 2rem; }
  .hero-actions { margin-bottom: 3rem; flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 1rem; }
  .meta-divider { display: none; }
  .meta-num { font-size: 1.2rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(212, 165, 116, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 241, 234, 0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1.15rem;
}

/* ============ SECTIONS COMMON ============ */
section {
  padding: var(--space-2xl) 0;
}

@media (max-width: 767px) {
  section { padding: var(--space-xl) 0; }
}

.section-head {
  max-width: 760px;
  margin-bottom: 5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gold-soft);
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--gray-100);
  max-width: 600px;
  line-height: 1.55;
}

/* ============ SERVICES ============ */
.services {
  background: var(--black);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 50%, transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.12);
}

.service-card {
  background: var(--black);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--black-warm);
}
.service-card:hover::before { opacity: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.service-title {
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 400;
}

.service-desc {
  color: var(--gray-100);
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.service-tags li {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: var(--radius);
  color: var(--gold-dim);
  letter-spacing: 0.03em;
}

/* ============ PROCESS ============ */
.process {
  background: var(--black-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

.step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.step-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.step-body p {
  color: var(--gray-100);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ TESTIMONIOS ============ */
.testimonials {
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 50%, transparent);
}

.testimonials-track-wrap {
  position: relative;
  margin-top: 1rem;
  padding: 1.5rem 0 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: testimonialsScroll 60s linear infinite;
  will-change: transform;
}

.testimonials-track-wrap:hover .testimonials-track,
.testimonials-track-wrap:focus-within .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 auto;
  width: 420px;
  background: var(--black);
  border: 1px solid rgba(212, 165, 116, 0.18);
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

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

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  height: 1.75rem;
  font-weight: 400;
  display: block;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--cream);
  margin: 0;
}

.testimonial-separator {
  display: block;
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: auto;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-300);
}

.testimonial-company {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

@media (max-width: 600px) {
  .testimonial-card {
    width: 290px;
    padding: 2rem 1.75rem 1.75rem;
    gap: 1.25rem;
  }
  .testimonials-track {
    animation-duration: 42s;
    gap: 1.25rem;
  }
  .testimonial-text { font-size: 1.1rem; }
  .testimonial-quote { font-size: 4rem; height: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track-wrap {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scrollbar-width: thin;
  }
  .testimonials-track {
    animation: none;
    width: auto;
  }
}

/* ============ ABOUT ============ */
.about {
  background: var(--black-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-lead {
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-weight: 300;
}

.about-text p {
  color: var(--gray-100);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--black);
  border: 1px solid rgba(212, 165, 116, 0.12);
}

.stat {
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray-100);
  display: block;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--black);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--gray-100);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.contact-method {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  font-style: italic;
  transition: color var(--transition);
}

.contact-link:hover .contact-value {
  color: var(--gold);
}

/* ============ FORM ============ */
.contact-form {
  background: var(--black-warm);
  border: 1px solid rgba(212, 165, 116, 0.12);
  padding: 3rem;
}

@media (max-width: 600px) {
  .contact-form { padding: 2rem 1.5rem; }
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row-split { grid-template-columns: 1fr; }
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--black);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-300);
  text-align: center;
  margin-top: 1rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--gold); }
.form-status.error { color: #d97757; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(212, 165, 116, 0.1);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand picture { display: inline-block; line-height: 0; margin-bottom: 1.25rem; }
.footer-brand img {
  height: 40px;
  width: auto;
  background: transparent;
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a, .footer-col li {
  color: var(--gray-100);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 165, 116, 0.08);
  font-size: 0.8rem;
  color: var(--gray-300);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform var(--transition);
}

.wa-float:hover {
  transform: scale(1.08);
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero text failsafe: si fadeUp no corre, el texto permanece visible */
.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-actions,
.hero-meta {
  opacity: 1;
}
.hero-eyebrow { animation: fadeUp 1s var(--transition) 0.2s both; }
.hero-title { animation: fadeUp 1.2s var(--transition) 0.4s both; }
.hero-sub { animation: fadeUp 1.2s var(--transition) 0.6s both; }
.hero-actions { animation: fadeUp 1.2s var(--transition) 0.8s both; }
.hero-meta { animation: fadeUp 1.2s var(--transition) 1s both; }
