/* Corporate landing. Loaded after the original stylesheet to preserve the Vue app. */
:root { --navy: #132f3b; --red: #d82848; --muted: #61727b; --paper: #f4f6f5; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: #fff; }
#app { font-family: 'Segoe UI', Arial, sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased; }
#app *, #app *::before, #app *::after { box-sizing: border-box; }
#app a { text-decoration: none; }
#app a:focus-visible, #app button:focus-visible { outline: 3px solid #e54866; outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 15px; background: #fff; z-index: 10000; }
.skip-link:focus { top: 10px; }
#app .container { width: min(1200px, 100%); max-width: 1200px; margin: auto; }
#app section { height: auto; min-height: 0; scroll-margin-top: 85px; }
#app section:not(.home) .container { padding: 90px 32px; }
#app .menu, #app .menu.active, #app .menu.drop { position: fixed; top: 0; width: 100%; height: 84px; background: #fff; box-shadow: 0 1px 0 #132f3b15; z-index: 100; }
#app .menu .container { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
#app .menu .container::before, #app .menu .container::after { display: none; }
#app .menu .container .logo { display: block; float: none; width: auto; height: auto; margin: 0; padding: 0; transform: none; opacity: 1; }
#app .menu .container .logo img { width: 140px; height: auto; max-height: 54px; object-fit: contain; }
#app .menu .container ul { display: flex; align-items: center; gap: 26px; float: none; margin: 0; padding: 0; width: auto; border: 0; }
#app .menu .container ul li { margin: 0; padding: 0; opacity: 1; transform: none; }
#app .menu .container ul li a { display: block; padding: 10px 0; color: var(--navy); font-size: 12px; font-weight: 600; text-transform: none; text-shadow: none; letter-spacing: 0; }
#app .menu .container ul li a::after { display: none; }
#app .menu .container ul li a:hover { color: var(--red); }
#app .menu .container ul li a.nav-ingresa { padding: 12px 17px; border: 1px solid #d7dfe1; border-radius: 5px; }
#app .menu-dropdown { display: none; }
#app .home { position: relative; display: block; overflow: hidden; min-height: 730px; padding: 84px 0 60px; background: var(--navy); color: #fff; }
#app .hero-image { position: absolute; inset: 84px 0 0 35%; background: linear-gradient(90deg, #132f3b 0%, #132f3b44 65%), linear-gradient(0deg, #132f3b99, transparent 50%), url('/dossier/hero-industrial.jpg') center / cover; }
#app .hero-inner { position: relative; width: min(1200px, 100%); margin: auto; padding: 96px 32px 38px; }
#app .eyebrow { display: block; margin-bottom: 23px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 2px; line-height: 1.5; }
#app .home .eyebrow { color: #f7b7c2; }
#app .home h1 { max-width: 740px; margin: 0 0 24px; padding: 0; color: #fff; font-size: clamp(42px, 4.8vw, 66px); font-weight: 600; line-height: 1.08; letter-spacing: -2.5px; text-transform: none; }
#app .home h1 span { color: #f4acb9; }
#app .hero-description { max-width: 445px; margin: 0 0 30px; font-size: 16px; line-height: 1.8; color: #d2dfe4; }
#app .hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#app .button-primary, #app .button-secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 15px 22px; border-radius: 5px; font-size: 13px; font-weight: 600; color: #fff; transition: background .2s; }
#app .button-primary { background: var(--red); border: 1px solid var(--red); }
#app .button-primary:hover { background: #b91f3b; }
#app .button-secondary { border: 1px solid #ffffff50; background: #132f3b55; }
#app .button-secondary:hover { background: #ffffff15; }
#app .hero-proof { display: flex; gap: 17px; align-items: center; margin-top: 39px; color: #ccdae0; font-size: 11px; line-height: 1.6; }
#app .proof-number { color: #fff; font-size: 33px; font-weight: 600; letter-spacing: -1px; border-right: 1px solid #ffffff35; padding-right: 17px; }
#app .hero-caption { position: absolute; right: max(32px, calc((100vw - 1136px) / 2)); bottom: 35px; color: #c6d6dc; font-size: 10px; letter-spacing: .4px; }
#app .hero-caption span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f08398; margin-right: 8px; }
#app .cuadro, #app .caja { width: 100%; max-width: none; padding: 0; margin: 0; background: transparent; box-shadow: none; border: 0; transform: none !important; opacity: 1 !important; }
#app .titulo { text-align: left; margin: 0; padding: 0; }
#app .titulo h2 { margin: 0 0 26px; font-size: clamp(29px, 3vw, 40px); font-weight: 600; line-height: 1.18; letter-spacing: -1.3px; text-transform: none; color: var(--navy); }
#app .text p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.9; text-align: left; }
#app .nosotros { background: #fff; }
#app .nosotros .cuadro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
#app .nosotros .text p:last-child { margin-bottom: 0; }
#app .servicios { background: var(--paper); padding: 0; box-shadow: none; }
#app .servicios .titulo h2 { max-width: 620px; }
#app .svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; width: 100%; margin: 36px 0 0; padding: 0; }
#app .servicios .svc-grid li { position: relative; width: auto; margin: 0; padding: 27px 23px; background: #fff; border: 1px solid #e1e7e7; border-radius: 8px; text-align: left; opacity: 1; transform: none; transition: border-color .2s, box-shadow .2s; }
#app .servicios .svc-grid li:hover { border-color: #d88a99; box-shadow: 0 8px 24px #132f3b08; }
#app .svc-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 25px; background: #faedf0; border-radius: 8px; color: var(--red); font-size: 21px; }
#app .servicios .svc-grid h4 { margin: 0 0 11px; font-size: 16px; font-weight: 600; color: var(--navy); text-transform: none; }
#app .svc-grid p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
#app .service-index { position: absolute; top: 30px; right: 23px; color: #83929a; font-size: 10px; }
#app .cobertura { background: var(--navy); color: white; }
#app .cobertura .cuadro { display: grid; grid-template-columns: 1fr 1fr 140px; gap: 50px; align-items: center; }
#app .cobertura .titulo h2 { color: #fff; margin: 0; }
#app .cobertura .eyebrow { color: #f4acb9; }
#app .cobertura .text p { color: #c6d6dc; margin: 0; }
#app .mapa-chile-unico { text-align: center; }
#app .mapa-chile-unico img { width: auto; height: 180px; filter: brightness(0) invert(1); opacity: .85; }
#app .clientes, #app .normas { padding: 0; box-shadow: none; background: #fff; }
#app .clientes .titulo, #app .normas .titulo { text-align: center; }
#app .clientes .titulo h2, #app .normas .titulo h2 { font-size: 29px; }
#app .cias-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-top: 35px; }
#app .cia-logo { display: flex; align-items: center; justify-content: center; padding: 15px; width: 135px; height: 80px; border: 1px solid #e4e9e9; border-radius: 6px; }
#app .cia-logo img { display: block; max-width: 100%; max-height: 45px; width: auto; height: auto; object-fit: contain; opacity: 1 !important; transform: none !important; }
#app .porque { background: var(--paper); }
#app .porque .cuadro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
#app .porque .text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#app .porque .text p { border-top: 2px solid #d8284850; padding-top: 18px; font-size: 13px; margin: 0; }
#app .normas .container { padding-top: 60px; padding-bottom: 60px; }
#app .contacto { background: #edf1f1; }
#app .contacto .cuadro { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 70px; align-items: start; }
#app .contacto .titulo { grid-column: 1; grid-row: 1; }
#app .contacto .horario { grid-column: 1; grid-row: 2; text-align: left; color: var(--muted); font-size: 13px; line-height: 1.8; }
#app .contacto .text { grid-column: 1; grid-row: 3; }
#app .contacto .text p { font-size: 13px; }
#app .contacto .text a { color: var(--navy); text-decoration: underline; }
#app .contacto .form { grid-column: 2; grid-row: 1 / 5; padding: 30px; margin: 0; background: #fff; border: 1px solid #e1e7e7; border-radius: 10px; }
#app .contacto .form .inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
#app .contacto .form .input { display: flex; flex-direction: column; width: 100%; margin: 0 0 16px; padding: 0; }
#app .contacto label { text-align: left; font-size: 11px; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
#app .contacto .form input, #app .contacto .form textarea { display: block; width: 100%; padding: 11px 12px; min-height: 44px; border: 1px solid #ced8db; border-radius: 5px; background: #fff; font: 13px 'Segoe UI', Arial, sans-serif; color: var(--navy); box-shadow: none; resize: vertical; }
#app .contacto .form input:focus, #app .contacto .form textarea:focus { outline: 2px solid #527787; outline-offset: 2px; }
#app .contacto .form .boton { text-align: left; }
#app .contacto .form .boton button { padding: 13px 24px; min-height: 46px; background: var(--red); color: white; border: 0; border-radius: 5px; font-size: 13px; font-weight: 600; }
#app .contacto .form .boton button::before, #app .contacto .form .boton button::after { display: none; }
#app .contacto .form .boton button:hover { background: #b91f3b; }
#app .redes { display: none; }
#app #mensaje { margin-top: 15px; font-size: 13px; }
#app footer { background: var(--navy); padding: 28px 32px; color: #b7c8cf; }
#app footer p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 0; font-size: 11px; }
#app footer strong { color: white; font-size: 12px; letter-spacing: 2px; }
#app footer a { color: #fff; }
#app .cuadro.static .text p, #app .cuadro.static .horario p, #app .cuadro.static .form { opacity: 1 !important; transform: none !important; transition: none; }
#app .menu .container a.logo { display: flex; align-items: center; gap: 10px; }
#app .menu .container a.logo img { width: 38px; height: 38px; padding: 6px; background: var(--red); border-radius: 6px; }
#app .brand-name { color: var(--navy); font-size: 21px; font-weight: 700; letter-spacing: 4px; line-height: 1.1; }
#app .brand-name small { display: block; font-size: 8px; letter-spacing: 2.3px; margin-top: 3px; }
#app .normas .titulo { display: block; }
#app .servicios .svc-grid h4, #app .servicios .svc-grid p { text-align: left; }
#app .contacto .cuadro .form input::placeholder, #app .contacto .cuadro .form textarea::placeholder { color: #75858d; opacity: 1; }
@media (max-width: 1000px) {
  #app .menu .container ul { gap: 16px; }
  #app .menu .container .logo img { width: 115px; }
  #app .nosotros .cuadro, #app .porque .cuadro, #app .contacto .cuadro { gap: 30px; }
  #app .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .cobertura .cuadro { gap: 25px; grid-template-columns: 1fr 1fr 90px; }
}
@media (max-width: 800px) {
  #app .menu, #app .menu.active, #app .menu.drop, #app .menu .container { height: 72px; }
  #app .menu .container { padding: 0 24px; }
  #app .menu-dropdown { display: block; border: 1px solid #d7dfe1; border-radius: 5px; background: white; color: var(--navy); width: 44px; height: 44px; font-size: 19px; }
  #app .menu .container ul { display: none; position: absolute; top: 72px; left: 0; width: 100%; padding: 12px 24px 24px; background: #fff; box-shadow: 0 10px 15px #132f3b10; }
  #app .menu.drop .container ul { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  #app .menu .container ul li a { padding: 12px; font-size: 14px; }
  #app .home { min-height: 700px; padding-top: 72px; }
  #app .hero-image { inset: 72px 0 0; opacity: .65; }
  #app .hero-inner { padding: 80px 24px 30px; }
  #app .home h1 { font-size: 49px; }
  #app .nosotros .cuadro, #app .porque .cuadro { grid-template-columns: 1fr; gap: 12px; }
  #app .contacto .cuadro { display: block; }
  #app .contacto .form { margin-top: 28px; }
}
@media (max-width: 520px) {
  #app section:not(.home) .container { padding: 58px 24px; }
  #app .home { min-height: 720px; }
  #app .home h1 { font-size: 42px; letter-spacing: -1.8px; }
  #app .hero-inner { padding-top: 65px; }
  #app .hero-description { font-size: 14px; }
  #app .hero-actions { gap: 10px; }
  #app .button-primary, #app .button-secondary { padding: 13px 16px; gap: 18px; font-size: 12px; }
  #app .hero-caption { left: 24px; right: 24px; bottom: 25px; font-size: 9px; }
  #app .svc-grid { gap: 10px; }
  #app .servicios .svc-grid li { padding: 20px 15px; }
  #app .servicios .svc-grid h4 { font-size: 14px; }
  #app .svc-grid p { font-size: 11px; }
  #app .service-index { top: 23px; right: 15px; }
  #app .cobertura .cuadro { grid-template-columns: 1fr 65px; gap: 22px; }
  #app .cobertura .text { grid-column: 1; }
  #app .mapa-chile-unico { grid-column: 2; grid-row: 1 / 3; }
  #app .mapa-chile-unico img { height: 150px; max-width: 100%; }
  #app .porque .text { grid-template-columns: 1fr; gap: 20px; }
  #app .cias-grid { gap: 10px; }
  #app .cia-logo { width: 96px; height: 67px; padding: 10px; }
  #app .contacto .form { padding: 22px 18px; }
  #app .contacto .form .inputs { grid-template-columns: 1fr; gap: 0; }
  #app footer { padding: 28px 24px; }
  #app footer p { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #app *, #app *::before, #app *::after { transition: none !important; animation: none !important; }
}

#app .whatsapp-link { position: fixed; bottom: 22px; right: 22px; z-index: 110; display: grid; place-items: center; width: 54px; height: 54px; background: #137b44; color: white; border-radius: 50%; font-size: 29px; box-shadow: 0 4px 20px #132f3b30; }
#app .innovation { background: #edf3f3; padding: 30px 32px; border-top: 1px solid #dde7e7; }
#app .innovation .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
#app .innovation h3 { margin: 0; font-size: 24px; line-height: 1.3; color: var(--navy); }
#app .innovation p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); text-align: left; }
@media(max-width:800px) { #app .innovation .container { grid-template-columns: 1fr; gap: 16px; } }

/* Carrusel infinito de logos de clientes */
.cias-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.cias-grid.cias-marquee {
  flex-wrap: nowrap;
  width: max-content;
  animation: royal-cias-marquee 42s linear infinite;
}
.cias-grid.cias-marquee:hover {
  animation-play-state: paused;
}
@keyframes royal-cias-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Fotos en tarjetas de servicios */
.svc-grid li { padding: 0 0 22px !important; overflow: hidden; }
.svc-photo { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; margin: 0 0 18px; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.svc-grid li:hover .svc-photo img { transform: scale(1.06); }
.svc-grid li .svc-icon { position: absolute; top: -32px; right: 16px; margin: 0; background: #fff; box-shadow: 0 4px 14px #132f3b26; z-index: 2; }
.svc-grid li h4, .svc-grid li p, .svc-grid li .service-index { padding-left: 23px; padding-right: 23px; }
.svc-grid li .service-index { position: absolute; top: auto; bottom: 18px; }
@media (max-width: 480px) {
  .svc-grid li h4, .svc-grid li p { padding-left: 15px; padding-right: 15px; }
}
