/* =========================================================
   SPAIN SERVICES LLC — STYLES
   Estructura:
   1. Variables (:root)
   2. Reset / base
   3. Tipografía / utilidades
   4. Navbar
   5. Hero
   6. Secciones genéricas (section / section-head)
   7. Nosotros
   8. Servicios
   9. Contacto
   10. Footer
   11. Animaciones (reveal)
   12. Responsive
   ========================================================= */

/* ===== 1. VARIABLES ===== */
:root {
  /* Paleta corporativa: negro tinta + dorado (los nombres "navy" se conservan
     por compatibilidad con el resto del CSS, pero los valores ya son negros). */
  --navy-900: #000000;
  --navy-800: #0a0a0a;
  --navy-700: #141414;
  --navy-600: #1f1f1f;
  --gold:     #c9a961;
  --gold-2:   #d8bf7c;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e9f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Tipografía */
  --font-sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Espaciados */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Otros */
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, .06), 0 1px 2px rgba(10, 31, 68, .04);
  --shadow-md: 0 10px 30px rgba(10, 31, 68, .08), 0 4px 10px rgba(10, 31, 68, .05);
  --shadow-lg: 0 25px 60px rgba(10, 31, 68, .12);
  --transition: 320ms cubic-bezier(.2, .7, .2, 1);
  --container:  1180px;
}

/* ===== 2. RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ===== 3. TIPOGRAFÍA / UTILIDADES ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  letter-spacing: -.01em;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}
.accent { color: var(--gold); font-style: italic; font-family: var(--font-serif); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.8rem;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(10, 31, 68, .25);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 31, 68, .35);
}
.btn-primary::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition);
}
.btn-primary:hover::after { transform: translateX(4px); }

/* ===== 4. NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
  transition: color var(--transition);
}
.navbar.scrolled .brand { color: var(--navy-900); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #050505, #1a1a1a);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow:
    inset 0 0 0 1px rgba(201, 169, 97, .25),
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 6px 16px rgba(0, 0, 0, .35);
}
.brand-text { font-family: var(--font-sans); }
.brand-llc { color: var(--gold); font-weight: 600; margin-left: .15rem; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--gray-700); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--navy-900); }

/* ===== 5. HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 0 5rem;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(20, 20, 20, .9), transparent 70%),
    linear-gradient(180deg, #000 0%, #050505 50%, #0a0a0a 100%);
}
/* Orbes dorados animados que dan vida al fondo negro */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(201, 169, 97, .35), transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(201, 169, 97, .15), transparent 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.05); }
}
/* Textura de grano sutil para feel premium */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner { position: relative; z-index: 1; max-width: 920px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.75rem;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(201, 169, 97, .25);
  border-radius: 999px;
  background: rgba(201, 169, 97, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .15), 0 0 12px rgba(201, 169, 97, .8);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.75rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: rgba(255, 255, 255, .72);
  max-width: 640px;
  margin: 0 0 2.6rem;
  line-height: 1.75;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-trust {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-trust-line {
  display: inline-block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-trust-text {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-line {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, .6) 40%, var(--gold) 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -56px; left: 0;
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, var(--white));
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -28px; }
  100% { top: 56px; }
}

/* ===== 6. SECCIONES GENÉRICAS ===== */
.section { padding: var(--space-xl) 0; }
.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--navy-900);
}
.section-title em { color: var(--gold); font-style: italic; }
.section-sub {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ===== 7. NOSOTROS ===== */
.nosotros { background: var(--gray-50); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nosotros-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 1.2rem;
  color: var(--gray-700);
}
.nosotros-points {
  margin-top: 1.8rem;
  display: grid;
  gap: .9rem;
}
.nosotros-points li {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--navy-900);
  font-weight: 500;
  font-size: .98rem;
}
.nosotros-points .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .15);
}
.nosotros-stats {
  display: grid;
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 169, 97, .35);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}
.stat-label {
  font-size: .9rem;
  color: var(--gray-500);
  text-align: right;
  max-width: 60%;
}

/* ===== 8. SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,.02), rgba(201,169,97,.04));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 97, .4);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 26px; height: 26px; }
.service-title {
  font-size: 1.3rem;
  margin-bottom: .8rem;
  position: relative;
  z-index: 1;
}
.service-desc {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: .98rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== 9. CONTACTO ===== */
.contacto { background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover:not(.contact-card-static) {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, .4);
  box-shadow: var(--shadow-md);
}
.contact-card-static { cursor: default; }
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(201, 169, 97, .12);
  color: var(--gold);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-label {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: .6rem;
}
.contact-value {
  color: var(--navy-900);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ===== 10. FOOTER ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .65);
  padding: 2rem 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
}
.footer-brand strong { color: var(--gold); font-weight: 600; margin-left: .15rem; }
.footer-meta { color: rgba(255, 255, 255, .55); }

/* ===== 11. ANIMACIONES (reveal on scroll) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 12. RESPONSIVE ===== */
@media (max-width: 960px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --space-xl: 5rem; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }

  .hero { padding: 7rem 0 5rem; min-height: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1.3rem 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
