@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-900: #0e2542;
  --navy-800: #14335c;
  --navy-700: #1b4070;
  --blue-500: #3f7fd8;
  --blue-600: #2f6bc4;
  --bg-light: #eef4fb;
  --bg-band: #dfeaf7;
  --text-dark: #14335c;
  --text-gray: #5b6b7c;
  --white: #ffffff;
  --border-light: #e1e8f0;
  --radius: 10px;
  --container-w: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-gray);
  background: var(--bg-light);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-500);
}

.text-accent {
  color: var(--blue-500);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(63, 127, 216, 0.35);
}

.btn-primary:hover {
  background: var(--blue-600);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--blue-500);
}

.main-nav a.active {
  color: var(--blue-500);
  font-weight: 600;
  border-bottom-color: var(--blue-500);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-drop-link .chevron {
  transition: transform 0.15s ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(14, 37, 66, 0.14);
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--blue-500);
}

.dropdown-menu a.active {
  color: var(--blue-500);
  background: var(--bg-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #0e2542 0%, #1b4070 55%, #2f6bc4 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero.has-image {
  background-image: linear-gradient(100deg, rgba(14, 37, 66, 0.88) 20%, rgba(27, 64, 112, 0.65) 55%, rgba(47, 107, 196, 0.35) 100%), url('../images/hero.jpg');
}

.hero-content {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 90px 24px;
  max-width: 640px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.4rem;
  font-weight: 800;
  margin: 18px 0 22px;
}

.hero-content .eyebrow {
  color: #a9c8f0;
}

.hero-text {
  color: #dce7f5;
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page header (subpaginas) */
.page-header {
  background: linear-gradient(120deg, #0e2542 0%, #1b4070 60%, #2f6bc4 100%);
  padding: 70px 0 60px;
  text-align: center;
}

.page-header .eyebrow {
  color: #a9c8f0;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-top: 12px;
}

.page-header p {
  color: #dce7f5;
  max-width: 600px;
  margin: 14px auto 0;
}

/* Secciones genericas */
section {
  padding: 80px 0;
}

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

.section-band {
  background: var(--bg-light);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: 2rem;
  margin-top: 10px;
}

.section-head p {
  margin-top: 14px;
}

/* Cards - lo que hacemos / servicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 16px 32px rgba(14, 37, 66, 0.08);
  transform: translateY(-3px);
}

.card-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--blue-500);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

.card a.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue-500);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Banda espaciadora tipo mockup */
.spacer-band {
  background: var(--bg-light);
  height: 90px;
  padding: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #c6d4e6;
  padding: 56px 0 30px;
  margin: 20px 0 24px;
  border-radius: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #a9bad0;
}

.footer-brand .copyright {
  margin-top: 18px;
  font-size: 0.82rem;
  color: #7e91ab;
}

.footer-brand .copyright a {
  color: #7e91ab;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-brand .copyright a:hover {
  color: #c6d4e6;
}

.footer-contact {
  text-align: right;
}

.footer-contact .eyebrow {
  color: #6fa1e0;
}

.footer-contact p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #c6d4e6;
}

.footer-contact a {
  color: #c6d4e6;
}

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

/* Placeholder de imagenes (se reemplazan cuando el usuario agregue las suyas) */
.img-placeholder {
  background: var(--bg-light);
  border: 1px dashed #b7cbe6;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7e91ab;
  font-size: 0.85rem;
  padding: 20px;
  min-height: 220px;
}

/* Quienes somos - pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.pillar {
  text-align: center;
  padding: 26px 16px;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pillar h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.88rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.two-col h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.two-col p + p {
  margin-top: 14px;
}

.text-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.text-block h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.text-block p + p {
  margin-top: 14px;
}

/* Marcas (luminarias) */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.brand-box {
  background: var(--white);
  border: 1px dashed #b7cbe6;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--navy-800);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-box span {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: #7e91ab;
}

/* CTA banda */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.cta-band p {
  color: #c6d4e6;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 50px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.form-error {
  font-size: 0.8rem;
  color: #d84545;
  min-height: 16px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

.form-status.ok {
  color: #2f9e5c;
}

.form-status.error {
  color: #d84545;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 0.9rem;
}

.map-placeholder {
  margin-top: 24px;
  height: 160px;
}

/* Responsive */
@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .two-col {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 640px;
  }

  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0;
    margin-top: 0;
    background: var(--bg-light);
  }

  .dropdown-menu a {
    padding: 14px 24px 14px 40px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text-gray);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-contact {
    text-align: left;
  }
}
