/* ==================================================
   VARIABLES GENERALES
   Cambia colores y medidas desde aquí
================================================== */

:root {
  --color-primary: #0a1f44;
  --color-secondary: #0ea5e9;
  --color-dark: #0f172a;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-bg: #f4f7fb;
  --color-white: #ffffff;

  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 14px 30px rgba(15, 23, 42, 0.14);

  --radius-card: 16px;
  --container-width: 1180px;
}


/* ==================================================
   RESET BÁSICO
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}


/* ==================================================
   CONTENEDOR GENERAL
================================================== */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 100px;
}


/* ==================================================
   HEADER
================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.nav {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}


/* ==================================================
   LOGO / BRANDING
================================================== */

.logo {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-white);
}

.brand-logo-box {
  width: 140px;
  height: 100px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border-radius: 14px;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  margin: 0;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-text span {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.2;
}


/* ==================================================
   MENÚ DESKTOP
================================================== */

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: var(--color-white);
  font-size: 0.96rem;
  font-weight: 800;
  transition: color 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.menu a:hover {
  color: #7dd3fc;
  opacity: 0.95;
}


/* ==================================================
   BOTÓN HAMBURGUESA
================================================== */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 211, 252, 0.55);
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==================================================
   HERO / PORTADA
================================================== */

.hero {
  min-height: 62vh;
  padding: 105px 0 85px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background:
    linear-gradient(rgba(7, 22, 48, 0.38), rgba(7, 22, 48, 0.40)),
    url("../img/anticon-fondo.png") center/cover no-repeat;
}

.hero-content {
  max-width: 820px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #bae6fd;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h2 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: #e5e7eb;
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* ==================================================
   BOTONES GENERALES
================================================== */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}


/* ==================================================
   TÍTULOS DE SECCIÓN
================================================== */

.section-title {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title.left {
  margin-left: 0;
  text-align: left;
}

.section-title p {
  margin-bottom: 6px;
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title h2 {
  color: var(--color-dark);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.section-title span {
  display: block;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.section-title.light h2 {
  color: var(--color-white);
}


/* ==================================================
   INTRO
================================================== */

.intro {
  padding: 48px 0;
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.intro-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: #f8fbff;
  border-left: 5px solid var(--color-secondary);
}

.intro-card h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.intro-card p {
  color: var(--color-text);
  font-size: 0.96rem;
  opacity: 1;
}


/* ==================================================
   RESUMEN DE SERVICIOS - INICIO
================================================== */

.services {
  padding: 62px 0;
  background: #eef4fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.service-content {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.08rem;
}

.service-content p {
  flex: 1;
  color: var(--color-text);
  font-size: 0.9rem;
}

.service-btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-secondary);
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.service-btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.services-cta {
  margin-top: 38px;
  text-align: center;
}


/* ==================================================
   NOSOTROS
================================================== */

.about {
  padding: 62px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--color-text);
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-box {
  padding: 20px;
  border-radius: 14px;
  background: #f8fbff;
  border-left: 5px solid var(--color-secondary);
  box-shadow: var(--shadow-soft);
}

.mini-box h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1rem;
}

.mini-box p {
  color: var(--color-text);
  font-size: 0.9rem;
  opacity: 1;
}


/* ==================================================
   SECTORES
================================================== */

.sectors {
  padding: 62px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.sectors-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
}

.sectors-grid span {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}


/* ==================================================
   CTA
================================================== */

.cta {
  padding: 62px 0;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: var(--color-white);
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  max-width: 780px;
  margin: 0 auto 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 22px;
  color: #e5e7eb;
}


/* ==================================================
   CONTACTO
================================================== */

.contact {
  padding: 62px 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius-card);
  text-align: center;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
}

.contact-card p {
  color: var(--color-text);
  font-size: 0.95rem;
  opacity: 1;
}


/* ==================================================
   FOOTER
================================================== */

.footer {
  padding: 22px 0;
  background: #08152d;
  color: #cbd5e1;
  text-align: center;
  font-size: 0.9rem;
}


/* ==================================================
   RESPONSIVE - TABLET
================================================== */

@media (max-width: 992px) {
  .nav {
    gap: 20px;
  }

  .menu {
    gap: 18px;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   RESPONSIVE - CELULAR / MENÚ HAMBURGUESA
================================================== */

@media (max-width: 768px) {
  .nav {
    position: relative;
    min-height: 78px;
    padding: 10px 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start;
    gap: 10px;
  }

  .brand-logo-box {
    width: 56px;
    height: 56px;
  }

  .brand-text h1 {
    font-size: 1.35rem;
  }

  .brand-text span {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 10px;
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);

    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      max-height 0.25s ease,
      transform 0.25s ease;
  }

  .menu.open {
    opacity: 1;
    max-height: 360px;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--color-white);
    text-align: left;
    font-size: 0.94rem;
  }

  .menu a:hover {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 70px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .services-grid,
  .contact-grid,
  .about-boxes {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card img {
    height: 160px;
  }

  .services-cta {
    margin-top: 30px;
  }

  .section-title.left {
    text-align: center;
    margin-left: auto;
  }

  .intro-card,
  .mini-box,
  .contact-card {
    padding: 18px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .intro-card h3,
  .mini-box h3 {
    font-size: 1.1rem;
  }

  .service-content {
    padding: 14px;
  }

  .service-content h3 {
    font-size: 1.05rem;
  }

  .service-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}


/* ==================================================
   RESPONSIVE - CELULARES PEQUEÑOS
================================================== */

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .brand-text h1 {
    font-size: 1.25rem;
  }

  .hero h2 {
    font-size: 1.85rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    width: 100%;
  }

  .intro-card,
  .mini-box,
  .contact-card {
    padding: 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  .intro-card h3,
  .mini-box h3,
  .contact-card h3 {
    font-size: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .intro-card p,
  .mini-box p,
  .contact-card p {
    font-size: 0.9rem;
    overflow-wrap: break-word;
  }

  .service-content {
    padding: 12px;
  }

  .service-content h3 {
    font-size: 1rem;
  }

  .service-content p {
    font-size: 0.85rem;
  }

  .section-title h2 {
    font-size: 1.65rem;
  }

  .section-title p {
    font-size: 0.76rem;
  }
}