/* ============================================
   SANA MOVIL — Global Stylesheet
   Premium healthcare advisory aesthetic
   Inspired by top-tier PE firm design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary palette */
  --navy:       #0a1628;
  --navy-light: #132038;
  --navy-mid:   #1a2d4a;
  --slate:      #3a4f6f;
  --steel:      #7a8ea8;
  --silver:     #b0bec5;
  --off-white:  #f0f2f5;
  --white:      #ffffff;

  /* Accent */
  --accent:       #4a90b8;
  --accent-light: #6aadd4;
  --accent-dark:  #2e6f96;

  /* Semantic */
  --text-primary:   #0a1628;
  --text-secondary: #3a4f6f;
  --text-light:     #7a8ea8;
  --text-on-dark:   #f0f2f5;
  --text-on-dark-secondary: #b0bec5;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1140px;
  --nav-height: 80px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.label--light {
  color: var(--accent-light);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav__logo span {
  font-weight: 300;
  opacity: 0.7;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__lang {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all var(--transition);
  background: transparent;
}

.nav__lang:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(74, 144, 184, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(74, 144, 184, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Network graphic container */
.hero__graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__graphic svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(74, 144, 184, 0.12);
  top: 10%;
  right: 5%;
  animation: float-orb 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(46, 111, 150, 0.09);
  bottom: 15%;
  right: 25%;
  animation: float-orb 25s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(74, 144, 184, 0.10);
  top: 40%;
  right: 15%;
  animation: float-orb 18s ease-in-out infinite 3s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(15px, -20px) scale(1.05); }
  50%      { transform: translate(-10px, 15px) scale(0.95); }
  75%      { transform: translate(20px, 10px) scale(1.02); }
}

/* Network line and node animations */
@keyframes dash-flow {
  to { stroke-dashoffset: -40; }
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.5; r: 2.5; }
  50%      { opacity: 1; r: 4; }
}

@keyframes pulse-node-lg {
  0%, 100% { opacity: 0.5; r: 5; }
  50%      { opacity: 0.9; r: 7; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__label {
  margin-bottom: 28px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 32px;
  font-size: 3.4rem;
  line-height: 1.15;
}

.hero__subtitle {
  color: var(--text-on-dark-secondary);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 600px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  padding: 16px 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* --- Section Defaults --- */
.section {
  padding: var(--section-padding);
}

.section--dark {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section--light {
  background: var(--off-white);
}

.section__header {
  margin-bottom: 64px;
}

.section__header .label {
  margin-bottom: 16px;
  display: block;
}

.section__header h2 {
  margin-bottom: 20px;
}

.section__header .lead {
  margin-top: 16px;
}

/* --- Why Sana Movil (Pillars) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.pillar {
  padding: 0;
}

.pillar__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.pillar__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.pillar__icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pillar p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.section--dark .pillar h3 {
  color: var(--white);
}

.section--dark .pillar p {
  color: var(--text-on-dark-secondary);
}

/* --- Positioning Statement --- */
.statement {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.statement__quote {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--white);
  position: relative;
}

.statement__quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* --- Services Portfolio --- */
.services-intro {
  max-width: 760px;
  margin-bottom: 72px;
}

.services-intro p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 40px;
  padding: 56px 0;
  border-top: 1px solid #e0e4e8;
}

.service-item:last-child {
  border-bottom: 1px solid #e0e4e8;
}

.service-item__number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.service-item__content {
  max-width: 720px;
}

.service-item__content h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-item__content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.service-item__audience {
  background: var(--off-white);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
}

.service-item__audience-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.service-item__audience p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.service-item__audience ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item__audience li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.service-item__audience li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Legacy card styles kept for potential reuse */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 48px 36px;
  border: 1px solid #e8ecf0;
  border-radius: 4px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Contact Form --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info .lead {
  margin-bottom: 48px;
}

.contact-detail {
  margin-bottom: 32px;
}

.contact-detail .label {
  margin-bottom: 8px;
  display: block;
}

.contact-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-detail a {
  color: var(--accent);
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--accent-dark);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form__input,
.form__textarea,
.form__select {
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  transition: all var(--transition);
  outline: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 144, 184, 0.1);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.form__submit:hover {
  background: var(--navy-mid);
}

.form__submit svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.form__submit:hover svg {
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--text-on-dark-secondary);
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer__logo span {
  font-weight: 300;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-on-dark-secondary);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--steel);
}

/* --- Legal Disclaimer --- */
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
  padding-top: 32px;
}

.footer__legal p {
  font-size: 0.75rem;
  color: var(--steel);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer__legal p + p {
  margin-top: 12px;
}

.footer__legal a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--white);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--text-on-dark-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__link {
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-top: 6px;
  display: inline-block;
  transition: color var(--transition);
}

.cookie-banner__link:hover {
  color: var(--white);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-light);
}

.cookie-banner__btn--essential {
  background: transparent;
  color: var(--text-on-dark-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--essential:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Divider line --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 40px 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .service-item {
    grid-template-columns: 56px 1fr;
    gap: 0 28px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero__title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --nav-height: 64px;
  }

  .container {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0;
  }

  .service-item__number {
    margin-bottom: 16px;
  }

  .service-item__content h3 {
    font-size: 1.2rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .statement__quote {
    font-size: 1.3rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
    padding: 12px;
  }
}
