:root {
  /* Paleta basada en el portafolio: gris oscuro + acento amarillo */
  --color-bg: #05070b; /* fondo general muy oscuro y ligeramente azulado */
  --color-bg-alt: #7a5300;
  --color-surface: #171a26;
  --color-border-subtle: rgba(209, 213, 219, 0.22);
  --color-primary: #f6a800; /* amarillo corporativo aproximado */
  --color-primary-soft: rgba(246, 168, 0, 0.16);
  --color-primary-strong: #d48806;
  --color-accent: #f6a800;
  --color-text: #f3f4f6;
  --color-text-soft: #d1d5db;
  --color-heading: #ffffff;
  --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.25);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --gap-section: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--color-bg-alt) 0, #020202 45%, #000 100%);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(122, 83, 0, 0.7), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  animation: bg-glow 8s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes bg-glow {
  0% {
    opacity: 0.25;
    transform: translateY(-20px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.35;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    opacity: 0.22;
    transform: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.78), transparent); */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgb(0 0 0), #0000004d);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.18); */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 55%);
  border-radius: 14px;
  padding: 0.3rem 0.5rem;
  min-width: 48px;
  max-width: 56px;
  overflow: hidden;
}

.brand-logo-vertical {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.nav a {
  color: var(--color-text-soft);
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--color-heading);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle at top left, var(--color-primary-soft), transparent 55%);
  color: var(--color-heading);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-soft);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #fff;
  box-shadow: 0 18px 35px rgba(246, 168, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(246, 168, 0, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-heading);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn-full {
  width: 100%;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.hero-metrics dt {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-heading);
}

.hero-metrics dd {
  margin: 0;
  color: var(--color-text-soft);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.section {
  padding: var(--gap-section) 0;
}

.section-alt {
  background: radial-gradient(circle at top, #050505 0, #050505 55%, #000 100%);
}

.section-highlight {
  background: var(--color-primary);
  color: #111827;
}

.section-highlight .section-header h2,
.section-highlight .section-header p,
.section-highlight .eyebrow,
.section-highlight .benefits-grid h3,
.section-highlight .benefits-grid p {
  color: #111827;
}

.section-highlight .eyebrow {
  color: #7a4b00;
}

.section-highlight .benefits-grid article {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: var(--color-heading);
}

.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: linear-gradient(to bottom right, #050505, #050505 45%, #050505 100%);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.75);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--color-primary-soft);
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.05rem;
  margin: 1.3rem 1.3rem 0.5rem;
  color: var(--color-heading);
}

.card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0 1.3rem 0.7rem;
}

.card-list {
  list-style: none;
  margin: 0 1.3rem 1.3rem;
  padding: 0;
  font-size: 0.85rem;
}

.card-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary-strong);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.nosotros-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.nosotros-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease;
}

.nosotros-image-wrapper:hover .nosotros-image {
  transform: scale(1.02);
}

.two-column p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.highlight-box {
  background: radial-gradient(circle at top left, var(--color-primary-soft), #050505 60%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.highlight-box-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.highlight-box h3 {
  margin: 0 0 0.7rem;
  color: var(--color-heading);
}

.highlight-box ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--color-text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.9rem;
}

.benefits-grid article {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--color-border-subtle);
}

.benefits-grid h3 {
  margin: 0 0 0.4rem;
  color: var(--color-heading);
  font-size: 0.98rem;
}

.benefits-grid p {
  margin: 0;
  color: var(--color-text-soft);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.case-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.9rem;
}

.case-card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-heading);
}

.case-meta {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

.case-result {
  margin-top: 0.6rem;
  color: var(--color-text);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-info {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.contact-info li + li {
  margin-top: 0.25rem;
}

.contact-form {
  background: rgba(0, 0, 0, 0.96);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(0, 0, 0, 0.95);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.98);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-disclaimer {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1.5rem 0 1.8rem;
  background: radial-gradient(circle at top, #050505 0, #050505 50%, #000 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.footer-meta {
  opacity: 0.9;
}

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

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav {
    position: fixed;
    inset: 3.2rem 1.4rem auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: var(--shadow-soft);
    transform: scale(0.98) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  /* Barra superior uniforme para mobile */
  .site-header {
    background: radial-gradient(circle at top, var(--color-bg-alt) 0, #020202 45%, #000 100%);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(122, 83, 0, 0.3);
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-image-wrapper {
    margin-top: 1rem;
  }

  .cards-grid,
  .benefits-grid,
  .cases-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .highlight-box-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }
}

