:root {
  --blue: #0d376d;
  --blue-dark: #08284f;
  --gray: #666;
  --light: #f5f7fa;
  --white: #fff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
  background: var(--white);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e8e8e8;
}

.nav {
  max-width: 1180px;
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.brand img {
  width: 145px;
  display: block;
}

nav a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  margin-left: 28px;
}

nav a:hover { color: #4779ad; }

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5,25,49,.82), rgba(5,25,49,.35) 58%, rgba(5,25,49,.15)),
    url("banner.jpg") center/cover no-repeat;
}

.hero-content {
  width: min(1180px, 100%);
  margin: auto;
  padding: 70px 24px;
  color: white;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero p {
  max-width: 560px;
  font-size: 20px;
  margin-bottom: 30px;
  color: #f2f5f8;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--blue-dark);
  padding: 13px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: .2s;
}

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

section {
  padding: 75px 24px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-title {
  text-align: center;
  color: var(--blue-dark);
  font-size: 34px;
  margin-bottom: 12px;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--gray);
}

.services {
  background: var(--light);
}

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

.card {
  background: white;
  padding: 32px 26px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(13,55,109,.08);
  border-top: 4px solid var(--blue);
}

.card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-size: 21px;
}

.card p { color: var(--gray); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.about img {
  width: 100%;
  max-width: 430px;
  margin: auto;
  display: block;
}

.about-text h2 {
  color: var(--blue-dark);
  font-size: 35px;
  margin-bottom: 18px;
}

.about-text p { color: var(--gray); margin-bottom: 14px; }

.fiscal-info {
  background: var(--light);
}

.fiscal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
}

.fiscal-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(13,55,109,.06);
}

.fiscal-card h3 {
  color: var(--blue-dark);
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 2px solid var(--light);
  padding-bottom: 8px;
}

.fiscal-card p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 6px;
}

.map-container {
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 230px;
  border: 0;
  display: block;
}

.contact {
  background: var(--blue-dark);
  color: white;
  text-align: center;
}

.contact-phone {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Estilo para que el enlace del teléfono no tenga subrayado ni color azul de enlace predeterminado */
.contact-phone a {
  color: inherit;
  text-decoration: none;
}

.contact-phone a:hover {
  text-decoration: underline;
}

.contact .section-title { color: white; }
.contact p { color: #dbe6f1; margin-bottom: 25px; }

footer {
  background: #061d38;
  color: #b9c7d6;
  text-align: center;
  padding: 22px;
  font-size: 14px;
}

@media (max-width: 800px) {
  nav { display: none; }
  .hero { min-height: 470px; }
  .cards, .about, .fiscal-grid { grid-template-columns: 1fr; }
  .about img { max-width: 320px; }
  section { padding: 55px 20px; }
}