:root {
  --primary: #16345f;
  --secondary: #0f1f33;
  --accent: #d4a63a;
  --light: #f5f7fa;
  --text: #1f2937;
  --white: #ffffff;
  --border: #d9e1ea;
  --shadow: 0 6px 18px rgba(19, 34, 56, 0.08);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.18);
  --max: 1200px;
}

/* =========================
   RESET GENERAL
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

/* =========================
   HEADER / TOPBAR / NAVBAR
========================= */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.topbar {
  background: var(--secondary);
  font-size: 0.92rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Texto logo alterno, por si alguna página lo usa */
.logo-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.logo-text span {
  color: var(--accent);
}

/* =========================
   MENÚ
========================= */
nav {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  font-weight: 600;
  transition: color 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* =========================
   HERO
========================= */
.hero {
  background:
    linear-gradient(rgba(15, 31, 51, 0.78), rgba(22, 52, 95, 0.78)),
    url("assets/hero-inarcap.jpg") center center / cover no-repeat;
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: 2.9rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.08rem;
  margin-bottom: 30px;
  max-width: 700px;
}

/* =========================
   BOTONES
========================= */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #1b1b1b;
  border: none;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* =========================
   SECCIONES GENERALES
========================= */
section {
  padding: 80px 0;
}

.bg-light {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 2.1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 45px;
  color: #5b6675;
}

/* =========================
   GRID / CARDS
========================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.22rem;
}

.card p,
.card li {
  color: #495466;
}

.card ul {
  padding-left: 18px;
}

.card li + li {
  margin-top: 8px;
}

/* =========================
   EMPRESA / ABOUT
========================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.about-box {
  background: var(--white);
  border-left: 5px solid var(--accent);
  padding: 24px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  margin-bottom: 18px;
}

.about-box h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* =========================
   CTA
========================= */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  border-radius: 12px;
  padding: 50px 28px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta p {
  max-width: 820px;
  margin: 0 auto 24px;
}

/* =========================
   FORMULARIO DE CONTACTO
========================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-info .item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 52, 95, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-btn {
  cursor: pointer;
}

/* =========================
   TEXTO LEGAL / PRIVACIDAD
========================= */
.legal-card h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--primary);
}

.legal-card h3:first-child {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: 12px;
  text-align: justify;
  color: #495466;
}

/* =========================
   SLIDER DE SERVICIOS
========================= */
.slider-servicios {
  margin-top: 40px;
  margin-bottom: 60px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #111111;
  box-shadow: var(--shadow-strong);
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Flechas del slider */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

.prev:hover,
.next:hover {
  background: rgba(192, 0, 0, 0.85);
}

/* =========================
   PIE DE PÁGINA
========================= */
footer {
  background: var(--secondary);
  color: #dce4ee;
  padding: 28px 0;
  text-align: center;
  font-size: 0.95rem;
}

/* =========================
   UTILIDADES
========================= */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .about-wrap,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .slide img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 15px;
  }

  .logo img {
    height: 56px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .slide img {
    height: 300px;
  }
}

@media (max-width: 680px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .slide img {
    height: 240px;
  }

  .prev,
  .next {
    font-size: 22px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .card {
    padding: 22px 18px;
  }

  .cta {
    padding: 38px 20px;
  }

  .cta h2 {
    font-size: 1.6rem;
  }
}