/* ========================================
   DESIGN TOKENS — Negocios Inquietos
   ======================================== */
:root {
  --ni-black:        #0a0a0a;
  --ni-black-soft:   #111111;
  --ni-white:        #ffffff;
  --ni-white-dim:    #c8c8c4;
  --ni-gray-section: #f2f2f0;
  --ni-gray-card:    #ffffff;
  --ni-orange:       #FF8200;
  --ni-orange-deep:  #d96e00;
  --ni-orange-muted: #7a3a08;
  --ni-border-dark:  #1e1e1e;
  --ni-border-light: #e0e0dc;
  --ni-gray-meta:    #888884;

  /* Typography scale - more dramatic */
  --type-hero:     clamp(2.4rem, 6vw, 4rem);
  --type-h1:       clamp(2rem, 4.5vw, 3.2rem);
  --type-h2:       clamp(1.5rem, 3vw, 2.2rem);
  --type-h3:       clamp(1.1rem, 2vw, 1.4rem);
  --type-body:     1rem;
  --type-small:    0.875rem;
  --type-tiny:     0.75rem;

  --space-xs:   4px;   --space-sm:  8px;   --space-md: 16px;
  --space-lg:   32px;  --space-xl: 80px;   --space-2xl: 120px;

  --radius-sm:   4px;  --radius-md: 8px;
  --radius-lg:   16px; --radius-pill: 999px;

  --max-width:     1200px;
  --content-width: 720px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Animation utility classes */
.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
  opacity: 0;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

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

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: var(--type-body);
  line-height: 1.65;
  background: var(--ni-black);
  color: var(--ni-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }

/* ========================================
   TYPOGRAPHY — Enhanced
   ======================================== */
.serif-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ni-orange);
  display: inline;
}

h1 { 
  font-size: var(--type-h1); 
  font-weight: 700; 
  line-height: 1.1; 
  letter-spacing: -0.03em;
}

h2 { 
  font-size: var(--type-h2); 
  font-weight: 700; 
  line-height: 1.15; 
  letter-spacing: -0.02em; 
}

h3 { 
  font-size: var(--type-h3); 
  font-weight: 600; 
  line-height: 1.3; 
}

p  { color: var(--ni-white-dim); line-height: 1.7; }

/* Lead paragraph style */
.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ni-white-dim);
}

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

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Section Label — with subtle animation */
.section-label {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  font-size: var(--type-tiny);
  font-weight: 500;
  padding: 5px 16px;
  margin-bottom: var(--space-lg);
  color: var(--ni-white-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.section-label:hover {
  border-color: rgba(255,130,0,0.4);
  color: var(--ni-white);
}

.section-light .section-label {
  border-color: rgba(0,0,0,0.15);
  color: #666;
}

.section-light .section-label:hover {
  border-color: var(--ni-orange);
  color: var(--ni-black);
}

/* Buttons — enhanced with micro-interactions */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ni-orange);
  color: #000000;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,130,0,0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  background: var(--ni-orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,130,0,0.35);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ni-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-ghost:hover { 
  border-color: var(--ni-orange); 
  color: var(--ni-orange);
  background: rgba(255,130,0,0.05);
}

/* Cards — with depth and hover effects */
.card {
  background: var(--ni-gray-card);
  border: 1px solid var(--ni-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 48px rgba(0,0,0,0.06);
}

.card:hover::after {
  border-color: rgba(255,130,0,0.3);
}

.card h3 { color: var(--ni-black); margin-bottom: var(--space-sm); transition: color 0.2s ease; }
.card p  { color: #555; line-height: 1.6; }
.card:hover h3 { color: var(--ni-orange-deep); }

.card-number { margin-bottom: var(--space-md); }
.card-number .serif-accent { font-size: 2.5rem; }

/* Checklist */
.ni-checklist { list-style: none; padding: 0; }
.ni-checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--space-md);
  font-size: var(--type-small);
  color: var(--ni-white-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ni-checklist li:hover {
  color: var(--ni-white);
  transform: translateX(4px);
}

.ni-checklist li::before {
  content: "✓";
  color: var(--ni-orange);
  font-weight: 700;
  font-size: 1.1rem;
  position: absolute;
  left: 0;
}

/* Grid 3 cols — asymmetric on larger screens */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.grid-3 .card {
  padding-bottom: 2rem;
}

/* Split layout — generous spacing */
.split-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: calc(var(--space-2xl) * 1.2);
  align-items: center;
  margin-top: var(--space-xl);
}

.split-text h2 { 
  color: var(--ni-white); 
  margin-bottom: var(--space-xl);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.split-text p  { 
  color: var(--ni-white-dim); 
  margin-bottom: var(--space-lg); 
  font-size: 1.05rem;
  line-height: 1.75;
}

.image-placeholder {
  background: var(--ni-black-soft);
  border: 1px solid var(--ni-border-dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ni-gray-meta);
  font-size: var(--type-small);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 0 60px rgba(255,130,0,0.03);
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,130,0,0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

/* Newsletter form — enhanced */
.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  background: var(--ni-black-soft);
  border: 1px solid var(--ni-border-dark);
  border-radius: var(--radius-sm);
  color: var(--ni-white);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.newsletter-form input:focus { 
  border-color: var(--ni-orange); 
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.2),
    0 0 0 3px rgba(255,130,0,0.15);
}

.newsletter-form input::placeholder { 
  color: var(--ni-gray-meta); 
}

/* ========================================
   SECTIONS — with depth and gradients
   ======================================== */
.section-dark {
  background: var(--ni-black);
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,130,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.section-light {
  background: var(--ni-gray-section);
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

.section-light h2 { color: var(--ni-black); }
.section-light p  { color: #555; }

/* ========================================
   NAV — enhanced
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ni-black);
  border-bottom: 1px solid var(--ni-border-dark);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  height: 28px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a { 
  font-size: var(--type-small); 
  color: var(--ni-white-dim); 
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ni-orange);
  transition: width 0.25s ease;
}

.nav-links a:hover { 
  color: var(--ni-white); 
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   HERO — more dramatic
   ======================================== */
.hero {
  background: #000;
  padding: var(--space-2xl) 0;
  padding-top: calc(var(--space-2xl) * 1.3);
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-photo {
  flex: 0 0 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  height: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 130, 0, 0.1);
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-photo {
    flex: 0 0 auto;
    max-width: 300px;
    margin-top: var(--space-xl);
  }
}

.hero .section-label { 
  display: inline-block; 
  margin-bottom: var(--space-lg); 
}

.hero h1 { 
  max-width: 720px; 
  margin-bottom: var(--space-lg); 
  color: var(--ni-white);
  font-size: var(--type-hero);
  line-height: 1.08;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ni-white-dim);
  max-width: 580px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta { 
  display: flex; 
  gap: var(--space-md); 
  flex-wrap: wrap; 
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--ni-black);
  border-top: 1px solid var(--ni-border-dark);
  padding: var(--space-lg) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,130,0,0.2), transparent);
}

.footer .container { text-align: center; }
.footer .nav-logo { display: block; margin-bottom: var(--space-md); height: 24px; }
.footer-links { 
  display: flex; 
  gap: var(--space-xl); 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-bottom: var(--space-md); 
}

.footer-links a { 
  font-size: var(--type-small); 
  color: var(--ni-gray-meta);
  transition: color 0.2s ease;
}

.footer-links a:hover { 
  color: var(--ni-orange); 
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .grid-3 { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .grid-3 .card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 80px;
  }
  
  .grid-3 { 
    grid-template-columns: 1fr; 
  }
  
  .grid-3 .card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .split-layout { 
    grid-template-columns: 1fr; 
    gap: var(--space-xl);
  }
  
  .split-image { 
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .split-image .image-placeholder {
    aspect-ratio: 1;
  }
  
  .nav-links { display: none; }
  
  .newsletter-form { 
    flex-direction: column; 
  }
  
  .hero-cta { 
    flex-direction: column; 
    align-items: stretch;
  }
  
  .hero-cta .btn-ghost { 
    text-align: center; 
    justify-content: center; 
  }
  
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  
  .card-number .serif-accent {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-sub {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-ghost {
    padding: 14px 24px;
    justify-content: center;
  }

  .nav .btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* === Hamburger menu === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ni-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 var(--space-lg) var(--space-md);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-mobile-dropdown a {
  color: var(--ni-white-dim);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--ni-border-dark);
  font-size: 1rem;
}
.nav-mobile-dropdown a:hover {
  color: var(--ni-white);
}
.nav-mobile-dropdown.open {
  display: flex;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta-desktop { display: none !important; }
  body.menu-open > *:not(.nav) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* === Grid 2 columns (Servicios) === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl, 3rem);
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* === Comparto list === */
.comparto-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl, 2rem);
  max-width: 700px;
  margin-top: var(--space-2xl, 3rem);
}

.comparto-item {
  padding-left: 1.5rem;
  border-left: 3px solid #FF8200;
}

.comparto-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.comparto-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}
