/* Archivos originales proporcionados por ACE, sin modificar las imagenes. */
img[src*="ace-insurance-logo.png"] {
  width: 160px !important;
  height: 86px !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 56% !important;
  display: block;
}
/* Portada con textos HTML: misma composicion que la referencia. */
.ace-home-hero {
  container-type: inline-size;
  background: #023d5b url("../images/portada-inicio.png") center / cover no-repeat;
  aspect-ratio: 3596 / 1262;
  width: 100%;
  position: relative;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  isolation: isolate;
}
.ace-home-copy { position: absolute; top: 10.1%; left: 34.85%; width: 33%; }
.ace-home-hero .ace-home-eyebrow {
  display: flex; align-items: center; gap: .65cqw;
  margin: 0 0 1.4cqw; color: #b6dced;
  font: 800 .76cqw/1.2 Arial, sans-serif; letter-spacing: .13cqw;
}
.ace-home-eyebrow::before { content: ""; width: 1.65cqw; height: 2px; background: #66d9f5; }
.ace-home-hero h1 { margin: 0; color: #fff; font: 750 4.13cqw/1.01 Arial, sans-serif; letter-spacing: -.18cqw; }
.ace-home-hero h1 > span { display: block; }
.ace-home-hero .ace-home-accent { color: #64d9f4; }
.ace-home-hero .ace-home-description { margin: 1.55cqw 0 0; color: #e1edf4; font: 500 1.07cqw/1.5 Arial, sans-serif; letter-spacing: -.035cqw; }
.ace-home-description > span { display: block; }
.ace-home-actions { display: flex; align-items: stretch; gap: .8cqw; margin-top: 1.9cqw; }
.ace-home-hero .ace-home-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: .9cqw;
  box-sizing: border-box; min-height: 3.65cqw; padding: 1.05cqw 1.35cqw;
  border: 1px solid transparent; border-radius: 5px;
  font: 700 .88cqw/1.2 Arial, sans-serif !important; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.ace-home-hero .ace-home-primary { color: #003958 !important; background: #fff; }
.ace-home-hero .ace-home-secondary { color: #fff; background: rgb(2 40 62 / 48%); border-color: #78acc077 !important; }
.ace-home-actions svg { width: 1.05cqw; height: 1.05cqw; flex: 0 0 auto; }
.ace-home-hero .ace-home-primary:hover { background: #dcf7ff; }
.ace-home-hero .ace-home-secondary:hover { background: #075978; }
.ace-home-hero .ace-home-actions a:focus-visible { outline: 3px solid #64d9f4; outline-offset: 4px; }
.ace-home-hero .ace-home-assurance { display: flex; align-items: center; gap: .5cqw; margin: 1.2cqw 0 0; font: 500 .76cqw/1.3 Arial, sans-serif; color: #bed8e4; }
.ace-home-assurance svg { width: 1cqw; height: 1cqw; color: #87def1; }
#nuestros-seguros { scroll-margin-top: 24px; }
@media (min-width: 1800px) {
  .ace-home-copy { top: 10%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ace-home-copy { top: 6%; width: 35%; }
  .ace-home-hero .ace-home-eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 10px; }
  .ace-home-hero .ace-home-description { font-size: 10px; margin-top: 12px; }
  .ace-home-actions { margin-top: 14px; gap: 8px; }
  .ace-home-hero .ace-home-actions a { font-size: 9px !important; padding: 10px 12px; min-height: 40px; gap: 6px; }
  .ace-home-actions svg { width: 10px; height: 10px; }
  .ace-home-hero .ace-home-assurance { font-size: 8px; margin-top: 10px; }
}
@media (max-width: 767px) {
  img[src*="ace-insurance-logo.png"] { width: 140px !important; height: 75px !important; }
  .ace-home-hero { aspect-ratio: auto; padding-top: calc(100vw * 1262 / 3596); background-size: 100% auto; background-position: center top; }
  .ace-home-copy { position: relative; inset: auto; width: auto; padding: 28px 24px 32px; }
  .ace-home-hero .ace-home-eyebrow { gap: 8px; margin-bottom: 16px; font-size: 10px; letter-spacing: 1.4px; }
  .ace-home-eyebrow::before { width: 20px; }
  .ace-home-hero h1 { font-size: clamp(36px, 10.5vw, 58px); line-height: 1.02; letter-spacing: -1.7px; }
  .ace-home-hero .ace-home-description { margin-top: 20px; font-size: 14px; line-height: 1.55; letter-spacing: -.2px; }
  .ace-home-actions { gap: 10px; margin-top: 24px; flex-wrap: wrap; }
  .ace-home-hero .ace-home-actions a { padding: 14px 16px; min-height: 46px; font-size: 12px !important; gap: 10px; }
  .ace-home-actions svg { width: 14px; height: 14px; }
  .ace-home-hero .ace-home-assurance { margin-top: 18px; gap: 7px; font-size: 11px; }
  .ace-home-assurance svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) { .ace-home-actions a { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .ace-home-hero .ace-home-actions a { transition: none; } }
