/* HAUMAX - Sitio web básico */
:root {
  --navy: #0b1c2c;
  --navy-dark: #07131f;
  --navy-light: #132a40;
  --orange: #e65c00;
  --orange-hover: #cc5200;
  --orange-light: #ff7a26;
  --white: #ffffff;
  --light: #f5f7fa;
  --gray: #e8ecf0;
  --text: #333333;
  --text-light: #6b7280;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.logo-circle {
  width: 42px;
  height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--orange-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-logo {
  width: 140px;
  height: 140px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(230, 92, 0, 0.4);
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.hero-services {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 32px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.hero-services strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-services span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-contact {
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.hero-contact a {
  color: var(--orange-light);
  font-weight: 600;
}

.hero-badge {
  margin-top: 40px;
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 10px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Sections common */
section {
  padding: 70px 0;
}

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  margin-top: 8px;
}

.section-intro {
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Servicios */
.servicios {
  background: var(--light);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.servicio-header {
  background: var(--orange);
  color: var(--white);
  padding: 18px 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.servicio-body {
  padding: 24px 22px;
}

.servicio-body h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.servicio-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Sistemas */
.sistemas-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  margin-top: 40px;
}

.sistemas-box h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.sistemas-list {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* Sectores */
.sectores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sector-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.sector-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.sector-body {
  padding: 22px;
}

.sector-body ul {
  list-style: none;
}

.sector-body li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.sector-body li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* Por qué */
.porque {
  background: var(--light);
}

.porque-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 30px;
}

.porque-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.porque-dot {
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.porque-item h4 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.porque-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contacto */
.contacto {
  background: var(--white);
}

.contacto-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 50px 40px 40px;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contacto-logo {
  width: 80px;
  height: 80px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 20px rgba(230, 92, 0, 0.4);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  text-align: left;
}

.contacto-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contacto-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-icon.phone { background: #22c55e; }
.contacto-icon.email { background: #3b82f6; }
.contacto-icon.address { background: #ef4444; }

.contacto-item strong {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.contacto-item a,
.contacto-item span {
  font-size: 1rem;
  font-weight: 500;
}

.contacto-item a:hover {
  color: var(--orange-light);
}

.contacto-cta {
  margin-top: 35px;
  background: var(--orange);
  color: var(--white);
  border-radius: 10px;
  padding: 22px 28px;
  text-align: center;
}

.contacto-cta h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.contacto-cta p {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.9rem;
}

footer strong {
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .sectores-grid {
    grid-template-columns: 1fr;
  }
  .porque-list {
    grid-template-columns: 1fr;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding: 60px 20px 50px;
  }
  .hero-logo {
    width: 110px;
    height: 110px;
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .contacto-box {
    padding: 50px 24px 30px;
  }
}