/* Royal Inspections — refresco visual mínimo (override sobre bundle Vue) */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --royal-navy: #172d44;
  --royal-navy-dark: #09192a;
  --royal-accent: #e2625e;
  --royal-accent-dark: #c94e4a;
  --royal-text: #2c3e50;
  --royal-muted: #5a6b7d;
  --royal-surface: #ffffff;
  --royal-bg: #f4f6f8;
  --section-pad-y: 40px;
  --section-inner-gap: 22px;
}

#app {
  font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--royal-text);
  -webkit-font-smoothing: antialiased;
}

/* —— Ritmo vertical entre secciones —— */
#app section .container {
  padding: var(--section-pad-y) 20px !important;
}

#app .caja {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding: 8px 0 !important;
}

#app .text p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

#app .text p:last-child {
  margin-bottom: 0 !important;
}

/* Aire extra donde cambia el fondo */
#app .normas .container,
#app .contacto .container {
  padding-top: calc(var(--section-pad-y) + 16px) !important;
}

/* —— Hero —— */
#app .home {
  position: relative;
}

#app .home .hero-tagline {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 22px;
  color: #fff;
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  background: rgba(23, 45, 68, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  max-width: min(92vw, 560px);
  z-index: 2;
}

@media (max-width: 767px) {
  #app .home .hero-tagline {
    bottom: 12%;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 575px) {
  :root {
    --section-pad-y: 28px;
    --section-inner-gap: 18px;
  }
}

/* —— Menú —— */
#app .menu,
#app .menu.active,
#app .menu.drop {
  background: var(--royal-navy) !important;
  box-shadow: 0 2px 12px rgba(9, 25, 42, 0.25);
}

#app .menu .container ul {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

#app .menu .container ul li a {
  text-shadow: none !important;
  letter-spacing: 0.04em;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

#app .menu .container ul li a:hover span,
#app .menu .container ul li a:focus span {
  opacity: 0.85;
}

#app .menu .container ul li a.nav-ingresa span,
#app .menu .container ul li:last-child a span {
  display: inline-block;
  background: var(--royal-accent);
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(226, 98, 94, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

#app .menu .container ul li a.nav-ingresa:hover span,
#app .menu .container ul li:last-child a:hover span {
  background: var(--royal-accent-dark);
  transform: translateY(-1px);
}

/* —— Títulos y textos —— */
#app .titulo h1 {
  color: var(--royal-navy) !important;
  text-transform: none !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 10px;
  margin: 0 0 8px !important;
}

#app .titulo h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--royal-accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

#app .text p {
  color: var(--royal-muted) !important;
  line-height: 1.75 !important;
  font-size: 17px !important;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

#app .nosotros,
#app .porque {
  background: var(--royal-bg);
}

#app .nosotros .cuadro,
#app .porque .cuadro {
  background: var(--royal-surface);
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 4px 24px rgba(23, 45, 68, 0.06);
}

/* —— Servicios —— */
#app .servicios {
  background: var(--royal-bg);
  box-shadow: none !important;
  padding: 0 !important;
}

#app .servicios .container .caja {
  width: 100% !important;
  max-width: 100% !important;
}

#app .servicios .svc-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: var(--section-inner-gap) auto 0 !important;
  width: 100% !important;
  max-width: 960px;
  list-style: none !important;
}

#app .servicios .svc-grid li {
  background: var(--royal-surface) !important;
  border: 1px solid #e4eaf0 !important;
  border-radius: 12px !important;
  padding: 24px 14px 20px !important;
  margin: 0 !important;
  width: auto !important;
  text-align: center !important;
  box-shadow: 0 2px 10px rgba(23, 45, 68, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  opacity: 1 !important;
  transform: none !important;
}

#app .servicios .svc-grid li:hover {
  transform: translateY(-3px) !important;
  border-color: #d0dae4 !important;
  box-shadow: 0 8px 22px rgba(23, 45, 68, 0.1) !important;
}

#app .servicios .svc-icon {
  width: 52px !important;
  height: 52px !important;
  margin: 0 auto 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, var(--royal-navy) 0%, #2a4d6e 100%) !important;
  box-shadow: 0 4px 12px rgba(23, 45, 68, 0.18) !important;
  position: relative !important;
}

#app .servicios .svc-icon::before,
#app .servicios .svc-icon::after {
  display: none !important;
  content: none !important;
}

#app .servicios .svc-icon i {
  font-size: 22px !important;
  color: #fff !important;
  line-height: 1 !important;
}

#app .servicios .svc-grid li:hover .svc-icon {
  background: linear-gradient(145deg, var(--royal-accent) 0%, var(--royal-accent-dark) 100%) !important;
  box-shadow: 0 6px 16px rgba(226, 98, 94, 0.35) !important;
}

#app .servicios .svc-grid li h4 {
  color: var(--royal-navy) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

#app .servicios .container ul li .icon {
  display: none !important;
}

@media (max-width: 991px) {
  #app .servicios .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575px) {
  #app .servicios .svc-grid {
    grid-template-columns: 1fr !important;
    max-width: 320px;
  }
}

/* —— Cobertura (sin .fondo legacy: evita 700px + bg construcción) —— */
#app .cobertura {
  background: var(--royal-bg) !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

#app .cobertura .container {
  padding: var(--section-pad-y) 20px calc(var(--section-pad-y) + 40px) !important;
}

#app .cobertura .container .cuadro {
  background: var(--royal-surface);
  border-radius: 12px;
  padding: 22px 24px 24px !important;
  max-width: 720px;
  margin: 0 auto 0 !important;
  box-shadow: 0 4px 24px rgba(23, 45, 68, 0.08);
  width: 100% !important;
  transform: none !important;
  text-align: center;
}

/* Mapa Chile (silueta SVG) */
#app .mapa-chile-unico {
  width: auto;
  height: auto;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(23, 45, 68, 0.18));
}

#app .mapa-chile-unico img {
  display: block !important;
  width: auto !important;
  height: 140px !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain !important;
}

/* —— Logos en fila (compañías + normas) —— */
#app .clientes,
#app .normas {
  background: var(--royal-surface);
  box-shadow: none !important;
  padding: 0 !important;
}

#app .clientes .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--section-pad-y) + 24px) 20px 20px !important;
}

#app .clientes + .porque .container {
  padding-top: 24px !important;
}

#app .normas .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px var(--section-pad-y) !important;
}

#app .clientes .container .caja,
#app .normas .container .caja {
  width: 100% !important;
  max-width: 100% !important;
}

#app .clientes .cias-grid,
#app .normas .cias-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 4px 0 12px !important;
  margin: var(--section-inner-gap) auto 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#app .clientes .cia-logo,
#app .normas .cia-logo {
  flex: 0 0 auto !important;
  width: 118px !important;
  min-width: 118px !important;
  height: 68px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 45, 68, 0.05);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#app .clientes .cia-logo:hover,
#app .normas .cia-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 45, 68, 0.1);
}

#app .clientes img,
#app .normas img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

#app .clientes .cia-logo img,
#app .normas .cia-logo img {
  display: block !important;
  width: auto !important;
  max-width: 96px !important;
  max-height: 40px !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 1 !important;
  transform: none !important;
}

#app .normas .cia-logo img {
  max-height: 44px !important;
}

#app .clientes .container ul,
#app .clientes .container ul li,
#app .normas .container ul,
#app .normas .container ul li {
  display: none !important;
}

@media (min-width: 992px) {
  #app .clientes .cias-grid,
  #app .normas .cias-grid {
    overflow-x: visible !important;
  }
}

/* —— Contacto —— */
#app .contacto .container .cuadro {
  background: rgba(255, 255, 255, 0.94) !important;
  border-radius: 12px;
  padding: 24px 28px !important;
  box-shadow: 0 8px 32px rgba(9, 25, 42, 0.15);
}

#app .contacto .container .cuadro .form input,
#app .contacto .container .cuadro .form textarea {
  border: 1px solid #d5dde5 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#app .contacto .container .cuadro .form input:focus,
#app .contacto .container .cuadro .form textarea:focus {
  border-color: var(--royal-navy) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(23, 45, 68, 0.12) !important;
}

#app .contacto .container .cuadro .form .boton button {
  background: var(--royal-accent) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 32px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

#app .contacto .container .cuadro .form .boton button:hover {
  background: var(--royal-accent-dark) !important;
  transform: translateY(-1px);
}

/* —— Footer —— */
#app footer {
  background: var(--royal-navy-dark) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 18px 0 !important;
  text-align: center !important;
}

#app footer p {
  margin: 0;
  font-size: 14px;
}


/* Redes sin URL configurada */
#app .redes {
  display: none !important;
}

#app #mensaje p {
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
}
