/* Cloud-@ctiva — paleta clara inspirada en el logo */
:root {
  --blue-deep: #1a4f8c;
  --blue-mid: #2d6cb5;
  --blue-soft: #5ba3d4;
  --blue-pale: #e8f3fb;
  --blue-mist: #f4f9fd;
  --slate: #3d5a73;
  --slate-muted: #6b8499;
  --ink: #1e3348;
  --white: #ffffff;
  --cream: #fafcfe;
  --border: rgba(45, 108, 181, 0.12);
  --shadow: 0 4px 24px rgba(26, 79, 140, 0.06);
  --shadow-lg: 0 12px 48px rgba(26, 79, 140, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--blue-deep);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Fondo decorativo suave */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(91, 163, 212, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(45, 108, 181, 0.08), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--blue-mist) 100%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 252, 254, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.nav-brand img {
  height: 52px;
  width: auto;
  max-width: min(240px, 55vw);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-menu a:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.nav-cta {
  margin-left: 0.5rem;
  background: var(--blue-mid) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--blue-deep) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  background: var(--blue-pale);
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-mid);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero-lead strong {
  color: var(--blue-deep);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45, 108, 181, 0.25);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 6px 24px rgba(45, 108, 181, 0.35);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--blue-pale);
  color: var(--blue-deep);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.hero-pills li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-muted);
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.75rem;
}

.section-label.center,
.section-title.center,
.section-intro.center {
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title.center {
  margin-inline: auto;
  max-width: 20ch;
}

.section-intro {
  color: var(--slate-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-text {
  color: var(--slate);
  margin-bottom: 1rem;
}

.section-text.muted {
  color: var(--slate-muted);
  font-size: 0.98rem;
}

.brand-at {
  color: var(--blue-mid);
  font-weight: 700;
}

/* About */
.section-about {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.hex-card {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue-pale), var(--white));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--blue-mid);
}

.hex-icon {
  width: 45%;
}

/* Value */
.section-value {
  background: var(--blue-mist);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-soft);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--slate-muted);
  line-height: 1.6;
}

/* Services */
.services-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.service-chip {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--blue-pale);
  color: var(--blue-deep);
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-chip:hover {
  background: var(--white);
  border-color: var(--blue-soft);
  color: var(--blue-deep);
}

.services-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.service-block h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.service-tagline {
  font-size: 0.95rem;
  color: var(--slate-muted);
  font-style: italic;
}

.service-list {
  list-style: none;
  margin-bottom: 1rem;
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue-soft);
  border-radius: 50%;
}

.service-benefit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-deep);
  padding: 0.85rem 1rem;
  background: var(--blue-pale);
  border-radius: 10px;
  border-left: 3px solid var(--blue-mid);
}

.erp-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.erp-modules > div {
  padding: 1rem;
  background: var(--blue-mist);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.erp-modules h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.4rem;
}

.erp-modules p {
  font-size: 0.85rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

/* Sectors */
.section-sectors {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-mist) 100%);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.sector-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.sector-card:hover {
  transform: translateY(-4px);
}

.sector-icon {
  font-size: 1.5rem;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}

.sector-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
}

.sector-card p {
  font-size: 0.9rem;
  color: var(--slate-muted);
}

.why-block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.why-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.why-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.why-item span {
  font-size: 0.88rem;
  color: var(--slate-muted);
}

/* Contact */
.section-contact {
  padding-bottom: 4rem;
}

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

.contact-card {
  font-style: normal;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-link,
.contact-region {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}

.contact-link:last-of-type {
  border-bottom: none;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.25rem;
}

.contact-region {
  border-bottom: none;
  padding-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--blue-pale);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  opacity: 0.95;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--slate-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .erp-modules,
  .sectors-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(250, 252, 254, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .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);
  }
}
