:root {
  --color-navy: #0b1630;
  --color-navy-soft: #182646;
  --color-accent: #f97316;
  --color-accent-soft: #fdba74;
  --color-bg: #f3f4f6;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.12);
}

/* ================= RESET ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  position: relative;
}

.logo img {
  height: 30px;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #111827;
}

/* ================= HERO BANNERS ================= */

.hero-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
  max-width: 900px;
  width: 90%;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: #e5e7eb;
}

/* imágenes por página */
.hero-inicio img { content: url("img/inicio.jpg"); }
.hero-servicios img { content: url("img/servicios.jpg"); }
.hero-clientes img { content: url("img/clientes.jpg"); }
.hero-contacto img { content: url("img/contacto.jpg"); }

/* ================= HERO NOSOTROS ================= */

.hero-nosotros {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero-nosotros-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-nosotros-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

/* ================= SECCIONES ================= */

.section {
  padding: 3.5rem 0;
}

.section-light {
  background: #ffffff;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 720px;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

/* ================= EQUIPO ================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.team-photo {
  aspect-ratio: 4 / 3;
  border-radius: 0.9rem;
  border: 1px dashed rgba(148,163,184,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(11,22,48,0.05), rgba(249,115,22,0.06));
}

.team-role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy-soft);
}

.team-name {
  margin: 0;
  font-size: 1.05rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================= CONTACTO ================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
}

.contact-card,
.map-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.contact-card {
  padding: 1.8rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row input,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.map-card {
  padding: 1.2rem;
}

.map-wrapper {
  margin-top: 0.8rem;
  border-radius: 1rem;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--color-navy);
  color: #e5e7eb;
  padding: 2.8rem 0 1.5rem;
}

.footer-inner {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.35);
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }

  .main-nav.open {
    display: flex;
    position: absolute;
    right: 1.25rem;
    top: 3.25rem;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0.9rem;
    box-shadow: 0 16px 35px rgba(15,23,42,0.25);
  }

  .nav-toggle { display: flex; }

  .hero-banner {
    height: 55vh;
    min-height: 320px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}
