/* ═══════════════════════════════════════════════════
   KERNEL INTEGRADORES — Stylesheet
   Paleta: #1e2d3d (dark) | #3aabbc (teal) | #f0f4f8 (light)
═══════════════════════════════════════════════════ */

:root {
  --dark:       #1e2d3d;
  --dark-2:     #162330;
  --teal:       #3aabbc;
  --teal-dark:  #2a8a9a;
  --teal-light: #e8f7f9;
  --light:      #f4f7f9;
  --white:      #ffffff;
  --gray:       #6b7280;
  --gray-light: #e5e7eb;
  --text:       #1f2937;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(30,45,61,0.10);
  --shadow-lg:  0 8px 40px rgba(30,45,61,0.18);
  --transition: 0.25s ease;
  --font:       'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ─── CONTAINERS ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-primary.large { padding: 1rem 2.5rem; font-size: 1.05rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.btn-nav:hover { background: var(--teal-dark); }

/* ─── SECTION TAGS ─── */
.section-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.section-tag.light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ─── SECTION HEADERS ─── */
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 0.25rem;
}
.section-subtitle {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--gray);
  font-size: 1.05rem;
}

/* ─── SECTIONS ─── */
.section { padding: 5rem 0; }

.section-light { background: var(--light); }
.section-dark  { background: var(--dark); }
.section-dark .section-header h2,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p,
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-dark .section-tag {
  background: rgba(58,171,188,0.2);
  color: var(--teal);
}

.section-teal  { background: var(--dark-2); }
.section-teal .section-header h2,
.section-teal h2,
.section-teal h3 { color: var(--white); }
.section-teal p { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > a,
.nav-links .dropdown > a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links > a:hover,
.nav-links .dropdown > a:hover,
.nav-links > a.active { color: var(--teal); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  overflow: hidden;
  z-index: 999;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a i { color: var(--teal); width: 16px; }
.dropdown-menu a:hover { background: var(--teal-light); color: var(--teal-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 60%, #1a3a45 100%);
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(58,171,188,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-logo {
  height: 180px;
  width: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 20px rgba(58,171,188,0.4));
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-content h1 span { color: var(--teal); }

.hero-slogan {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem !important;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-contact-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.hero-contact-bar span { display: flex; align-items: center; gap: 0.4rem; }
.hero-contact-bar i { color: var(--teal); }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p { color: var(--gray); margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-text .btn-primary { margin-top: 0.5rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card i { font-size: 1.75rem; color: var(--teal); }
.stat-card span { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

/* ═══════════════════════════════════════════════════
   SERVICES HEADER
═══════════════════════════════════════════════════ */
.services-header {
  background: var(--dark);
  padding: 4rem 0 2rem;
  text-align: center;
}
.services-header h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }

/* ═══════════════════════════════════════════════════
   SERVICE SECTIONS
═══════════════════════════════════════════════════ */
.service-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 4rem;
  align-items: center;
}
.service-layout.reverse {
  grid-template-columns: 1fr 440px;
}
.service-layout.reverse .service-img-block { order: 2; }
.service-layout.reverse .service-content   { order: 1; }

.service-img-block {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.service-img-block img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-img-block:hover img { transform: scale(1.04); }

.service-content .section-tag { margin-bottom: 0.5rem; }
.service-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-dark .service-content h2 { color: var(--white); }

.service-content > p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  color: var(--gray);
}
.section-dark .service-content > p { color: rgba(255,255,255,0.65); }

.service-list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.section-dark .service-list li { color: rgba(255,255,255,0.8); }
.service-list li i { color: var(--teal); font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   MISIÓN / VISIÓN / VALORES
═══════════════════════════════════════════════════ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.mv-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 2.5rem;
  transition: background var(--transition);
}
.mv-card:hover { background: rgba(255,255,255,0.1); }
.mv-icon {
  width: 56px; height: 56px;
  background: var(--teal);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.mv-icon i { font-size: 1.5rem; color: var(--white); }
.mv-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.mv-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }

.section-teal h3 { color: var(--white); font-size: 1.5rem; font-weight: 700; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}
.valor-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.valor-card:hover { background: rgba(58,171,188,0.12); transform: translateY(-4px); }
.valor-card i { font-size: 1.75rem; color: var(--teal); margin-bottom: 0.75rem; display: block; }
.valor-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.valor-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: background var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.1); }
.contact-card i { font-size: 2rem; color: var(--teal); margin-bottom: 1rem; display: block; }
.contact-card h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.contact-card a,
.contact-card span { color: var(--white); font-size: 0.95rem; font-weight: 500; }
.contact-card a:hover { color: var(--teal); }
.contact-map {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(58,171,188,0.3);
}
.contact-map iframe { display: block; }

.contact-cta { text-align: center; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--dark-2);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { height: 36px; width: auto; }
.footer p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-layout,
  .service-layout.reverse { grid-template-columns: 1fr; }
  .service-layout.reverse .service-img-block,
  .service-layout.reverse .service-content { order: unset; }
  .service-img-block img { height: 220px; }
  .service-icon-block i { font-size: 2.5rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--dark-2);
    padding: 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links > a,
  .nav-links .dropdown > a { width: 100%; padding: 0.6rem 0; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 8px; margin-top: 0.25rem; }
  .dropdown-menu a { color: rgba(255,255,255,0.75); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-contact-bar { flex-direction: column; gap: 0.5rem; align-items: center; }
}
