/* ============================================================
   URUS GLOBAL SOLUTIONS S.L. — Estilos
   Paleta clara + acentos (azul eléctrico / naranja energía)
   ============================================================ */

:root {
  --ink:        #0e1b2e;
  --ink-soft:   #33465e;
  --muted:      #64768d;
  --line:       #e7ecf3;

  --bg:         #ffffff;
  --bg-alt:     #f4f7fc;
  --bg-tint:    #eef3fd;

  --brand:      #1f52ff;
  --brand-600:  #1a45e0;
  --brand-700:  #1637b8;
  --accent:     #ff7a1a;
  --accent-600: #f26a08;

  --navy:       #0a1730;
  --navy-2:     #10213f;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 18px 50px -24px rgba(16, 33, 63, .28);
  --shadow-sm:  0 8px 24px -14px rgba(16, 33, 63, .35);

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Tipografía / helpers ---------- */
.eyebrow {
  font-family: var(--f-head);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 18px;
}
.section-tag {
  font-family: var(--f-head);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 14px;
}
.section-tag.light { color: #7ea2ff; }

.section-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.accent { color: var(--accent); }

.lead { font-size: 1.075rem; color: var(--ink-soft); max-width: 52ch; }
.section-intro { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }

/* ---------- Botones ---------- */
.btn {
  --pad: 15px 28px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head);
  font-weight: 600; font-size: .96rem;
  padding: var(--pad);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 14px 30px -12px rgba(31,82,255,.6); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(31,82,255,.7); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-sm { --pad: 11px 20px; font-size: .88rem; }
.btn-lg { --pad: 18px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 600; color: var(--brand);
  margin-top: 6px;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(16,33,63,.4);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--brand);
  background: var(--bg-tint);
  border-radius: 12px;
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-head); }
.brand-text strong { font-size: 1.12rem; letter-spacing: .04em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.btn) {
  font-family: var(--f-head); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.main-nav > a:not(.btn):hover { color: var(--ink); }
.main-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -10%, #dbe6ff 0%, rgba(219,230,255,0) 60%),
    radial-gradient(900px 600px at 10% 110%, #fff0e3 0%, rgba(255,240,227,0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.hero-glow {
  position: absolute; z-index: -1; top: -10%; right: -6%;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: conic-gradient(from 120deg, rgba(31,82,255,.16), rgba(255,122,26,.14), rgba(31,82,255,.16));
  filter: blur(60px); border-radius: 50%;
  animation: float 14s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(30px) rotate(30deg); } }

.hero-inner { position: relative; max-width: 900px; }
.hero-title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.02; letter-spacing: -.03em; margin: 0 0 24px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(42px); animation: heroLine .9s var(--ease) forwards; }
.hero-title .line:nth-child(1) { animation-delay: .05s; }
.hero-title .line:nth-child(2) { animation-delay: .2s; }
@keyframes heroLine { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 58ch; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-family: var(--f-head); font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.hero-tags i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }

.scroll-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; background: var(--brand); border-radius: 3px; animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: clamp(40px,5vw,64px) 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat-num { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); letter-spacing: -.02em; }
.stat-suffix { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.stat p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* ============================================================
   INTRO
   ============================================================ */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.intro-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.media-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 170px; box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-end; padding: 18px;
  color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .95rem;
  transition: transform .5s var(--ease);
}
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6,16,34,.72)); z-index: 1; }
.media-card span { position: relative; z-index: 2; }
.media-card:hover { transform: translateY(-6px); }
.media-tall { grid-row: span 2; min-height: 356px;
  background: linear-gradient(135deg, #1f52ff, #0a1730); }
.media-short:nth-of-type(2) { background: linear-gradient(135deg, #ff7a1a, #b23e00); }
.media-short:nth-of-type(3) { background: linear-gradient(135deg, #2a3a55, #0e1b2e); }

/* ============================================================
   SERVICIOS — cards
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; transition: background .4s, color .4s; }
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--brand); color: #fff; }
.card h3 { font-family: var(--f-head); font-size: 1.28rem; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-feature { background: linear-gradient(160deg, #0a1730, #12233f); color: #fff; border-color: transparent; }
.card-feature .card-icon { background: rgba(255,255,255,.12); color: #fff; }
.card-feature h3 { color: #fff; }
.card-feature p { color: #b8c6dc; }
.card-feature:hover .card-icon { background: var(--accent); }
.mini-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-list li { font-family: var(--f-head); font-size: .82rem; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }

/* ============================================================
   ENERGÍA
   ============================================================ */
.energy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.energy-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.energy-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.e-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #fff0e3, #ffe1c4); color: var(--accent-600); font-size: 1.35rem; margin-bottom: 16px; }
.energy-item h4 { font-family: var(--f-head); font-size: 1.12rem; margin: 0 0 8px; }
.energy-item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ============================================================
   CTA BANNER (oscuro)
   ============================================================ */
.cta-banner { position: relative; padding: clamp(70px, 9vw, 120px) 0; color: #fff; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(31,82,255,.5), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(255,122,26,.35), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.cta-text { color: #c4d1e8; font-size: 1.1rem; margin: 0 auto 30px; max-width: 52ch; }

/* ============================================================
   SECTORES
   ============================================================ */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform .35s var(--ease), background .35s, color .35s; }
.sector-num { font-family: var(--f-head); font-weight: 700; font-size: .9rem; color: var(--accent); letter-spacing: .1em; }
.sector h4 { font-family: var(--f-head); font-size: 1.18rem; margin: 12px 0 8px; }
.sector p { margin: 0; color: var(--muted); font-size: .94rem; }
.sector:hover { transform: translateY(-6px); background: var(--navy); }
.sector:hover h4 { color: #fff; }
.sector:hover p { color: #b8c6dc; }

/* ============================================================
   POR QUÉ URUS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.why-item h4 { font-family: var(--f-head); font-size: 1.08rem; margin: 0 0 6px; }
.why-item h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 9px; vertical-align: middle; }
.why-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ============================================================
   VÍDEO
   ============================================================ */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #10213f, #1f52ff); box-shadow: var(--shadow); }
.video-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: #fff; text-align: center; }
.play-btn { width: 82px; height: 82px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 20px 50px -18px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn:hover { transform: scale(1.08); }
.video-overlay p { margin: 0; color: #cdd9f0; font-size: .95rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 14px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list strong { font-family: var(--f-head); font-size: 1.02rem; }
.note { color: var(--muted); font-size: .84rem; font-style: italic; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--f-head); font-weight: 500; font-size: .86rem; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: .96rem; color: var(--ink); background: var(--bg-alt);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31,82,255,.12);
}
.field textarea { resize: vertical; }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 12px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #b8c6dc; padding: clamp(56px, 7vw, 84px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer .brand-mark { background: rgba(255,255,255,.1); color: #fff; }
.brand-footer .brand-text em { color: #8698b6; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-col h5 { font-family: var(--f-head); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; color: #a7b6cf; font-size: .95rem; margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .86rem; color: #7f90ac; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   ANIMACIONES (reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-reveal].is-visible { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .scroll-hint span { animation: none; }
  .hero-title .line { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .intro-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid, .energy-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr 1fr; }
  .intro-media { order: -1; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); z-index: 90;
  }
  .main-nav.open { transform: none; }
  .main-nav > a:not(.btn) { font-size: 1.15rem; }
  .nav-toggle { display: flex; z-index: 95; }
  .cards-grid, .energy-grid, .sectors-grid, .why-list, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .intro-media { grid-template-columns: 1fr 1fr; }
  .media-tall { grid-row: span 2; }
  .hero { min-height: auto; padding-top: 130px; }
}
