/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* =========================
   DESIGN TOKENS / VARIABLES
========================= */
:root {
  /* backgrounds */
  --bg-page: #ffffff;                 /* <-- fondo claro global */
  --bg-hero: linear-gradient(135deg,#1a1a2e 0%,#0f0f1e 100%);
  --bg-dark: #0a0a0b;                 /* para secciones oscuras tipo CTA */
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.98);
  --bg-footer: #ffffff;

  /* borders / shadows */
  --border-card: rgba(0,0,0,0.08);
  --border-header: rgba(0,0,0,0.08);
  --shadow-header: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 40px rgba(0,102,255,0.15);
  --shadow-drawer: 0 16px 40px rgba(0,0,0,0.16);

  /* text colors */
  --text-main: #1a1a1a;
  --text-dim: #5a5a5a;
  --text-light: #ffffff;
  --text-light-dim: rgba(255,255,255,0.8);

  /* accent */
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --accent-glow: rgba(0,102,255,0.15);

  /* radii */
  --radius-lg: 1.25rem;
  --radius-md: .875rem;
  --radius-sm: .5rem;

  /* layout */
  --max-width: 1280px;
  --gutter: 1.5rem;
  --header-height: 70px;
}

/* =========================
   GLOBAL BODY / TYPO
========================= */
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* headings use Inter */
h1,h2,h3,h4,h5,h6 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

/* =========================
   LAYOUT HELPERS
========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* grid helpers */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2.5rem;
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-header);
  box-shadow: var(--shadow-header);
  z-index: 1000;
}
.header-spacer {
  height: var(--header-height);
}

/* wrapper inside header */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* brand */
.brand-logo {
  height: 38px;
  width: auto;
  transition: transform .2s ease;
}
.brand-logo:hover {
  transform: scale(1.05);
}

/* nav core structure */
.main-nav {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.main-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* nav items / links */
.nav-item > a,
.dropdown-trigger {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  line-height: 1.2;
  position: relative;
  padding: .5rem 0;
  transition: color .15s;
  background: transparent;
}
.nav-item > a:hover,
.dropdown-trigger:hover {
  color: var(--text-main);
}

/* underline hover indicator */
.nav-item > a::after,
.dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-item > a:hover::after,
.dropdown-trigger:hover::after {
  width: 100%;
}

/* caret next to "Services" */
.dropdown-caret {
  font-size: .7rem;
  line-height: 1;
  color: var(--text-dim);
}

/* dropdown container (desktop) */
/* dropdown container (desktop) */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);  /* pequeño espacio visual */
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: .5rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  padding: .75rem 0;
  display: none;
  z-index: 1200;
  
  /* Esto crea un área invisible que conecta el botón con el menú */
  padding-top: calc(0.5rem + .75rem);
  margin-top: -0.5rem;
}

/* Ajustar el padding interno del primer item */
.dropdown-menu li:first-child a {
  padding-top: 0.6rem;
}
.dropdown-menu a {
  display: block;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #1a1a1a;
  padding: .6rem 1rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover {
  background: rgba(0,102,255,0.07);
  color: var(--accent);
}

/* show dropdown on hover/focus (desktop only) */
/* dropdown desktop */
/* show dropdown on hover/focus (desktop only) */
/* dropdown desktop */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }
  
  /* Asegurar que el dropdown mantenga el hover */
  .dropdown-trigger:focus + .dropdown-menu {
    display: block;
  }
}


/* =========================
   MOBILE NAV / HAMBURGER
========================= */
.nav-toggle {
  background: transparent;
  border: 0;
  padding: 8px;
  display: none;            /* hidden desktop */
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

/* animated X when open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* mobile drawer panel */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 1rem;
    width: min(280px, 90%);
    max-height: calc(100vh - 90px);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: .75rem;
    box-shadow: var(--shadow-drawer);
    padding: 1rem 1rem 1.5rem;
    overflow-y: auto;
    display: none;          /* hidden mobile by default */
    flex-direction: column;
    z-index: 9999;
  }
  .main-nav.open {
    display: flex;
  }

  /* nav list becomes vertical */
  .main-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-item > a,
  .dropdown-trigger {
    font-size: 1rem;
    color: #1a1a1a;
    width: 100%;
    justify-content: space-between;
  }

  /* hide desktop hover dropdown in small screens */
  .dropdown-menu {
    display: none !important;
  }

  /* show hamburger button on mobile */
  .nav-toggle {
    display: flex;
  }
}

/* mobile "Services" accordion inside drawer */
.mobile-services-group {
  display: none;
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 1rem;
}
.mobile-services-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 0;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
}
.mobile-caret {
  font-size: .8rem;
  line-height: 1;
  color: #5a5a5a;
  transition: transform .2s;
}
.mobile-services-links {
  list-style: none;
  padding-left: .5rem;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: .5rem;
}
.mobile-services-links a {
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #1a1a1a;
  padding: .5rem 0;
  display: block;
}
.mobile-services-links a:hover {
  color: var(--accent);
}

/* when accordion open */
.mobile-services-group.open .mobile-services-links {
  display: flex;
}
.mobile-services-group.open .mobile-caret {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .mobile-services-group {
    display: block;
  }
}

/* =========================
   HERO SECTION (oscura)
========================= */
.hero-section {
  background: var(--bg-hero);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50%    { transform: scale(1.1); opacity: .8; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-headline {
  font-family: "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  color: var(--text-light-dim);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.btn-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s ease;
}
.btn-link:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}
.hero-bullets li {
  color: rgba(255,255,255,0.95);
  margin-bottom: .75rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00ff88;
  font-weight: 700;
  font-size: 1.2rem;
}

/* VIDEO wrapper card */
.hero-media-frame {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.hero-media-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: none;
}
.media-caption {
  color: rgba(255,255,255,0.7);
  font-size: .95rem;
  margin-top: 1rem;
  text-align: center;
}

/* =========================
   VALUE STRIP (fondo blanco)
========================= */
.value-strip {
  background: #ffffff;
  padding: 3rem 0;
  position: relative;
}
.value-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}
.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform .3s ease;
}
.value-item:hover {
  transform: translateY(-5px);
}
.value-item h3 {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: .75rem;
  font-family: "Inter", sans-serif;
}
.value-item p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================
   SECTOR CARDS (fondo blanco)
========================= */
.sector-section {
  background: #ffffff;
  padding-bottom: 3rem;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 3.5rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
}
.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.sector-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
}
.card-icon {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sector-card:hover .card-icon img {
  transform: scale(1.08);
}
.sector-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
}
.sector-card p {
  color: var(--text-dim);
  padding: 0 1.5rem 1rem;
  line-height: 1.6;
  font-size: .95rem;
}
.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  padding: 0 1.5rem 1.5rem;
  margin-top: auto;
  transition: all .2s ease;
}
.sector-card:hover .card-link {
  color: var(--accent-hover);
  padding-left: 1.75rem;
}

/* =========================
   CTA BANNER (oscura)
========================= */
.cta-banner {
  background: linear-gradient(135deg,#0a0a0b 0%,#1a1a2e 100%);
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-headline {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}
.cta-desc {
  color: var(--text-light-dim);
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* =========================
   FOOTER (blanco)
========================= */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 4rem 1rem 2rem;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  height: 36px;
  margin-bottom: 1.25rem;
}
.footer-text {
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 320px;
  font-size: .95rem;
}
.footer-col h4 {
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: .5px;
  font-family: "Inter", sans-serif;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col a {
  color: var(--text-dim);
  transition: all .2s;
  font-size: .95rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2rem;
  font-size: .9rem;
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .value-strip,
  .sector-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}
@media (max-width: 600px) {
  .nav-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-section {
    padding: 5rem 0 4rem;
  }
}
