:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #111827;
  --muted: #6b7280;
  --primary: #003f88;
  --primary-strong: #122c5b;
  --accent: #f9c513;
  --border: rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto;
  max-height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-item-dropdown {
  position: relative;
  padding-bottom: 8px;
}

.dropdown-arrow {
  font-size: 0.7em;
  margin-left: 4px;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  min-width: 240px;
  margin-top: -8px;
  z-index: 10;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--primary);
  padding-left: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-section {
  padding: 88px 0 72px;
  background: linear-gradient(140deg, #002c70 0%, #0f488f 45%, #0d3c7f 100%);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a9d0ff;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 32px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-contact {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.hero-contact a {
  color: #fff;
  font-weight: 600;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-image-card {
  width: 100%;
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)), rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero-image-img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: block;
  object-fit: cover;
}

.hero-tag {
  color: #d9e7ff;
  font-weight: 700;
  text-align: center;
}

.section {
  padding: 72px 0;
}

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

.section-dark {
  background: #111827;
  color: #f8fafc;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-header-white h2,
.section-header h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.section-label {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.feature-grid,
.services-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.hours-card,
.map-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.section-dark .feature-card,
.section-dark .service-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.section-dark .feature-card:hover,
.section-dark .service-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
}

.feature-card h3,
.service-card h3 {
  margin-top: 0;
  color: inherit;
}

.feature-card,
.feature-card h3,
.feature-card p,
.service-card,
.service-card h3,
.service-card p {
  color: inherit;
}

.feature-card p,
.service-card p,
.form-copy p,
.contact-list li {
  color: var(--muted);
  line-height: 1.8;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-form {
  background: linear-gradient(180deg, #f9fbff 0%, #eff3fb 100%);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.form-copy {
  max-width: 560px;
}

.form-copy h2 {
  margin: 14px 0 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-form label {
  font-weight: 600;
}

.contact-form label span {
  color: var(--accent);
  margin-left: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form button {
  width: fit-content;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hours-card {
  background: var(--surface-2);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
}

.hours-card h3 {
  margin: 0 0 12px;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.map-placeholder {
  text-align: center;
  color: var(--muted);
  width: 100%;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: 24px;
}


.site-footer {
  padding: 24px 0;
  background: #101828;
  color: #d1d5db;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.footer-column a {
  color: rgba(209, 213, 219, 0.95);
  text-decoration: none;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin: 0;
  line-height: 1.8;
}

/* Estilos específicos para la página principal */
.home-page .site-header {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.home-page .header-inner {
  padding: 18px 0;
  min-height: auto;
  overflow: visible;
}

.home-page .brand {
  position: relative;
  display: inline-flex;
  min-width: 300px;
  align-items: center;
  overflow: visible;
}


.home-page .nav-link-home {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

.home-page .nav-link-home::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.hero-section-home {
  padding-top: 120px;
}

.hero-image-home {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.hero-image-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 140% 140% at 50% 0%, transparent 0%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  border-radius: 24px;
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .services-grid,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 64px 0 48px;
  }

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

  .btn {
    width: 100%;
  }
}
