/* ═══════════════════════════════════════════════════════════════════════
   PULSAR — Landing Page Stylesheet
   pulsarmdz.com
═══════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────────── */
:root {
  --primary:     #0D1F3C;
  --primary-dk:  #060F1E;
  --accent:      #1B6FD9;
  --accent-lt:   #4D96E8;
  --light:       #E4EEF9;
  --white:       #F5F8FD;
  --bg:          #F0F4FA;
  --bg-alt:      #E8EFF8;
  --text:        #0D1F3C;
  --text-muted:  #4A5A72;
  --border:      #C8D8EE;

  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;

  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(26,58,92,.10);
  --shadow-md:   0 8px 40px rgba(26,58,92,.15);

  --transition:  .25s ease;
  --container:   1140px;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Container ─────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ─── Reveal animation ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(46,134,193,.35);
}
.btn--primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46,134,193,.45);
}
.btn--ghost {
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn--full { width: 100%; justify-content: center; }

/* ─── Section commons ────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary-dk); }

.section__header { text-align: center; margin-bottom: 60px; }
.section__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section__tag--light { color: var(--accent-lt); }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__title--light { color: var(--white); }
.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(15,37,64,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--white);
}

/* ECG logo */
.logo__ecg {
  display: block;
  flex-shrink: 0;
}
.logo__ecg polyline {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-ecg 1.4s ease forwards;
}
@keyframes draw-ecg {
  to { stroke-dashoffset: 0; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link--cta {
  padding: .5rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 50px;
  color: var(--accent-lt);
}
.nav__link--cta:hover {
  background: var(--accent);
  color: var(--white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 65%, #0F2D5A 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Anillos animados tipo pulsar */
.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}
.hero__dot {
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(46,134,193,.5);
}
.hero__ring {
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translate(50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(46,134,193,.25);
  animation: expand-ring 4s ease-out infinite;
}
.hero__ring--1 { width: 200px; height: 200px; animation-delay: 0s; }
.hero__ring--2 { width: 380px; height: 380px; animation-delay: 1.3s; }
.hero__ring--3 { width: 580px; height: 580px; animation-delay: 2.6s; }

@keyframes expand-ring {
  0%   { opacity: .6; transform: translate(50%, -50%) scale(.85); }
  100% { opacity: 0;  transform: translate(50%, -50%) scale(1.15); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 140px 0 100px;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title .accent { color: var(--accent-lt); }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scroll-hint 1.8s ease infinite;
}
@keyframes scroll-hint {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   VALUE STRIP
═══════════════════════════════════════════════════════════════════════ */
.value-strip {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.value-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
}
.value-item__icon { font-size: 1.8rem; margin-bottom: .25rem; }
.value-item strong { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: .95rem; }
.value-item span { font-size: .82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}
.service-card__desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.service-card__tags li {
  background: var(--light);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRESENCIA INTEGRAL
═══════════════════════════════════════════════════════════════════════ */
.integral {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2D5A 100%);
  padding: 90px 0;
  color: var(--white);
}
.integral__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}
.integral__half {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.integral__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: .75rem;
}
.integral__half h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.integral__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.integral__list li {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  padding-left: 1.2rem;
  position: relative;
}
.integral__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-lt);
  font-weight: 700;
}
.integral__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.integral__plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-lt);
  background: rgba(27,111,217,.15);
  flex-shrink: 0;
}
.integral__footer {
  text-align: center;
  padding-bottom: 3rem;
}
.integral__cta {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 3rem;
}
.integral__headline {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.integral__footer p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about__card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.about__stat { padding: 1.25rem 0; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-lt);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat__num sup { font-size: 1.4rem; }
.stat__label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.about__divider { height: 1px; background: rgba(255,255,255,.1); }

.about__text .section__title { margin-top: .5rem; }
.about__text p {
  font-size: .97rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about__tech {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.about__tech span {
  background: var(--light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════
   VISIÓN & MISIÓN
═══════════════════════════════════════════════════════════════════════ */
.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.vision-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: box-shadow var(--transition);
}
.vision-card:hover { box-shadow: var(--shadow-md); }
.vision-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.vision-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}
.vision-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.vision-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.vision-card__list li {
  font-size: .93rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.vision-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tagline-block {
  text-align: center;
  padding: 3rem;
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tagline {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact__info .section__title { margin-top: .5rem; margin-bottom: 1rem; }
.contact__desc {
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  font-size: .97rem;
}
.contact__data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__data li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}
.contact__data a { color: var(--accent-lt); }
.contact__data a:hover { color: var(--white); text-decoration: underline; }
.contact__icon { font-size: 1.1rem; }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,134,193,.15);
  background: var(--white);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form__note {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════ */
.footer {
  background: #08192E;
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__brand .nav__logo { justify-content: center; font-size: 1.2rem; margin-bottom: .5rem; }
.footer__brand p { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__fiscal { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .25rem; }
.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__copy { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid      { grid-template-columns: 1fr 1fr; }
  .integral__split     { grid-template-columns: 1fr; }
  .integral__connector { display: none; }
  .about__grid         { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__card         { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
  .about__divider      { display: none; }
  .about__stat         { padding: 1rem; text-align: center; }
  .vision__grid        { grid-template-columns: 1fr 1fr; }
  .contact__grid       { grid-template-columns: 1fr; gap: 3rem; }
  .value-strip__grid   { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .nav__menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--primary-dk);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
  }
  .nav__menu.open { display: flex; }
  .nav__hamburger { display: flex; }

  .hero__ring--2,
  .hero__ring--3 { display: none; }
  .hero__dot, .hero__ring--1 { right: 5%; }

  .services__grid   { grid-template-columns: 1fr; }
  .vision__grid     { grid-template-columns: 1fr; }
  .value-strip__grid { grid-template-columns: repeat(2,1fr); }
  .about__card { grid-template-columns: 1fr; }
  .about__divider { display: block; }
  .about__stat { padding: 1.25rem 0; text-align: left; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .value-strip__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
