/* Etapa 5.1. Home-only layer: shared pages and demos keep site.css unchanged. */
.home {
  --aila-petroleum: #041B35;
  --aila-deep-blue: #086C89;
  --aila-turquoise: #00C8DB;
  --aila-ai-violet: #8B35F5;
  --aila-cold-white: #F5F8FC;
  --home-muted: #B6C8D8;
  --home-body: #42576D;
  --home-rule: #29445D;
  color: var(--aila-petroleum);
  background: var(--aila-cold-white);
}
.home .container, .home .header-inner { width: min(100% - 80px, 1200px); }
.home h1, .home h2, .home h3 { color: inherit; }
.home h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.16; letter-spacing: -.045em; }
.home p { text-wrap: pretty; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--aila-deep-blue); outline-offset: 5px; }
.home .home-dark a:focus-visible, .home .home-dark button:focus-visible,
.home .site-header a:focus-visible, .home .site-header button:focus-visible { outline-color: var(--aila-turquoise); }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; color: var(--aila-cold-white); background: transparent; border: 0; }
.home .header-inner { width: calc(100% - 64px); max-width: 1480px; min-height: 88px; gap: clamp(28px, 4vw, 64px); }
.home .site-header .brand { padding: 0; background: transparent; }
.home .site-header .brand img { width: 148px; }
.home .main-nav { flex: 1; max-width: 1040px; justify-content: space-between; gap: clamp(12px, 1.4vw, 20px); }
.home .main-nav .header-cta { display: inline-flex; flex-shrink: 0; }
.home .main-nav a { color: var(--aila-cold-white); }
.home .main-nav a:hover, .home .main-nav a[aria-current] { color: var(--aila-turquoise); }
.home .main-nav a[aria-current] { box-shadow: inset 0 -2px var(--aila-turquoise); }
.home .menu-toggle { color: var(--aila-cold-white); background: transparent; border-color: var(--home-muted); }
.home .button { border-radius: 5px; min-height: 52px; font-size: .85rem; padding: 14px 22px; gap: 20px; }
.home .button, .home .main-nav .button { background: var(--aila-turquoise); border-color: var(--aila-turquoise); color: var(--aila-petroleum); }
.home .button:hover { background: var(--aila-cold-white); border-color: var(--aila-cold-white); color: var(--aila-petroleum); }
.home .button.secondary { background: transparent; border-color: var(--home-muted); color: var(--aila-cold-white); }
.home .button.secondary:hover { border-color: var(--aila-turquoise); background: #0B3049; }
.home .home-link { display: inline-flex; gap: 14px; align-items: center; font-size: .86rem; font-weight: 600; text-decoration: none; }
.home .home-link:hover { text-decoration: underline; }
.home .home-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--aila-deep-blue); margin-bottom: 22px; }
.home .home-dark { background: var(--aila-petroleum); color: var(--aila-cold-white); }
.home .home-dark .home-kicker { color: var(--aila-turquoise); }
.home .home-section { padding: 104px 0; }
.home .home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.home .home-section-heading h2 { margin-bottom: 0; max-width: 690px; }
.home .home-section-heading > p { max-width: 340px; font-size: .91rem; color: var(--home-body); margin: 0; }
.home .home-dark .home-section-heading > p { color: var(--home-muted); }
.home .home-hero { padding: 0; background: #041B35; }
.home .home-hero-scene { position: relative; width: 100%; aspect-ratio: 1671 / 941; background-color: var(--aila-petroleum); background-image: url("/img/aila-hero-completo.webp"); background-size: 100% auto; background-position: center top; background-repeat: no-repeat; }
.home .home-hero-message { position: absolute; z-index: 3; left: 5.5%; top: 27%; width: 41%; max-width: 610px; }
.home .home-hero .home-kicker { font-size: clamp(.58rem, .78vw, .75rem); letter-spacing: .18em; color: #D0E8F1; margin-bottom: 20px; }
.home .home-hero h1 { font-size: clamp(2.5rem, 3.65vw, 3.85rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 24px; }
.home .home-title-line { display: block; }
.home .home-title-question { display: inline-block; white-space: nowrap; padding: 2px 12px 6px; margin: 5px 0 0 -9px; color: var(--aila-cold-white); background: linear-gradient(105deg, #086C89, #008EA4); border-radius: 14px 12px 14px 6px; box-shadow: inset 0 0 0 1px #00C8DB55, 0 0 28px #00C8DB14; }
.home .home-hero-copy { max-width: 430px; color: #D0E0EC; font-size: clamp(.82rem, 1.03vw, 1rem); line-height: 1.65; margin-bottom: 0; }
.home .home-hero-copy .home-ai { color: var(--aila-cold-white); border-bottom: 2px solid var(--aila-ai-violet); }
.home .actions { margin-top: 32px; gap: 12px; }
.home .home-hero .actions { margin-top: 24px; gap: 12px; }
.home .home-hero .button { font-size: .8rem; padding: 12px 18px; min-height: 46px; gap: 12px; }
.home .home-hero-base { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid #00C8DB66; margin: 0; padding: 19px 0; }
.home .home-hero-base p { margin: 0; color: var(--home-muted); font-size: .73rem; }
.home .home-hero-base a { color: var(--aila-cold-white); font-size: .73rem; }
.home .home-hero-art-description { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.home .home-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.home .home-intro-grid h2 { max-width: 530px; }
.home .home-intro-copy { padding-top: 40px; color: var(--home-body); }
.home .home-intro-copy > p:first-child { font-size: 1.08rem; color: var(--aila-petroleum); }
.home .home-intro-copy .home-link { color: var(--aila-deep-blue); }
.home .home-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 56px 0 0; }
.home .home-capabilities li { border-top: 1px solid #B9CCD7; padding-top: 23px; }
.home .home-capabilities span { color: var(--aila-deep-blue); font-size: .71rem; display: block; margin-bottom: 12px; }
.home .home-capabilities h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 10px; }
.home .home-capabilities p { color: var(--home-body); font-size: .86rem; margin: 0; }
.home .home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home .home-service { display: flex; flex-direction: column; min-width: 0; padding: 30px; background: #0B2941; border: 1px solid #31526B; border-radius: 8px; transition: border-color .2s, transform .2s; }
.home .home-service:hover { transform: translateY(-3px); border-color: var(--aila-turquoise); }
.home .home-service-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #31526B; border-radius: 8px; color: var(--aila-turquoise); margin-bottom: 30px; }
.home .home-service-icon svg { width: 24px; height: 24px; }
.home .home-service h3 { font-size: 1.14rem; line-height: 1.4; margin-bottom: 15px; }
.home .home-service > p { color: var(--home-muted); font-size: .85rem; flex: 1; }
.home .home-service .home-link { color: var(--aila-cold-white); margin-top: 16px; font-size: .79rem; }
.home .home-service .home-link span { color: var(--aila-turquoise); }
.home .home-product-status { font-size: .67rem; font-weight: 500; line-height: 1.5; color: var(--aila-turquoise); margin: -5px 0 16px; }
.home .home-value { padding: 90px 0; background: var(--aila-deep-blue); color: var(--aila-cold-white); }
.home .home-value-inner { display: grid; grid-template-columns: 65px 1fr; gap: 25px; align-items: start; }
.home .home-value-mark { font-size: 5rem; color: var(--aila-turquoise); line-height: 1; }
.home .home-value h2 { max-width: 1020px; font-size: clamp(2rem, 3.5vw, 3.15rem); font-weight: 500; }
.home .home-value p { font-size: clamp(1rem, 1.7vw, 1.35rem); margin: 0; max-width: 840px; }
.home .home-process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: 0; margin: 50px 0 0; counter-reset: process; }
.home .home-process li { position: relative; border-top: 1px solid #B9CCD7; padding-top: 28px; }
.home .home-process li::before { content: ''; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--aila-deep-blue); box-shadow: 0 0 0 6px var(--aila-cold-white); }
.home .home-step-number { font-size: .72rem; color: var(--aila-deep-blue); display: block; margin-bottom: 24px; }
.home .home-process h3 { font-size: 1.15rem; margin-bottom: 14px; }
.home .home-process p { font-size: .85rem; color: var(--home-body); margin-bottom: 0; }
.home .home-demos { background: #E8F0F5; }
.home .home-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home .home-demo { min-width: 0; border: 1px solid #B7CBD8; border-radius: 8px; overflow: hidden; background: var(--aila-cold-white); }
.home .home-demo-preview { background: var(--aila-petroleum); color: var(--aila-turquoise); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--aila-turquoise); }
.home .home-demo-preview span { color: var(--home-muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.home .home-demo-preview strong { display: block; color: var(--aila-cold-white); font-size: 1.35rem; font-weight: 500; margin-top: 8px; }
.home .home-demo-preview svg { width: 130px; height: 66px; flex-shrink: 0; }
.home .home-demo-copy { padding: 30px; }
.home .home-demo h3 { font-size: 1.08rem; line-height: 1.4; }
.home .home-demo p { color: var(--home-body); font-size: .86rem; }
.home .home-demo .home-link { color: var(--aila-deep-blue); }
.home .home-demo-disclaimer { font-size: .8rem; color: var(--home-body); margin: 28px 0 0; max-width: 850px; }
.home .home-contact { padding: 90px 0; border-top: 1px solid var(--home-rule); }
.home .home-contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; }
.home .home-contact h2 { max-width: 760px; margin-bottom: 20px; }
.home .home-contact p:not(.home-kicker) { max-width: 650px; color: var(--home-muted); margin: 0; }
.home .site-footer { background: var(--aila-cold-white); border-top-color: #C7D6E1; }
.home .site-footer a:hover { color: var(--aila-deep-blue); }
/* Lower Home refinements: keep the approved hero and shared styles unchanged. */
.home #conoce-aila { padding-block: 84px; }
.home .home-intro-grid { align-items: start; }
.home .home-intro-copy { padding-top: 32px; }
.home .home-capabilities { gap: 28px; margin-top: 40px; }
.home .home-capabilities li { display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.home .home-capabilities h3 { min-height: 3.2em; }
.home .home-capabilities p { font-size: .9rem; line-height: 1.75; }
.home .home-services { grid-auto-rows: 1fr; }
.home .home-service { transition: border-color .2s, transform .2s, box-shadow .2s; }
.home .home-service:hover, .home .home-service:focus-within { border-color: var(--aila-turquoise); box-shadow: 0 8px 24px #00000020; }
.home .home-service-icon { width: 52px; height: 52px; background: #00C8DB0A; border-color: #42728A; margin-bottom: 24px; }
.home .home-service-icon svg { width: 28px; height: 28px; }
.home .home-service h3 { font-size: 1.2rem; }
.home .home-service > p { font-size: .93rem; line-height: 1.75; }
.home .home-service .home-link { color: var(--aila-turquoise); font-size: .87rem; min-height: 44px; }
.home .home-service .home-link:hover, .home .home-service .home-link:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.home .home-process { column-gap: 0; }
.home .home-process li { border-top: 2px solid #9DBCCB; padding-right: 26px; }
.home .home-process li:last-child { padding-right: 0; }
.home .home-process p { font-size: .94rem; line-height: 1.75; }
.home .home-demo-copy { display: flex; flex-direction: column; }
.home .home-demo { display: flex; flex-direction: column; }
.home .home-demo-copy { flex: 1; height: auto; }
.home .home-demo-copy p { flex: 1; }
.home .home-demo .home-link { align-self: flex-start; min-height: 44px; padding: 8px 12px; border: 1px solid #9DBCCB; border-radius: 5px; background: #E8F0F5; font-size: .9rem; transition: background .2s, border-color .2s; }
.home .home-demo .home-link:hover, .home .home-demo .home-link:focus-visible { background: #D9E8F0; border-color: var(--aila-deep-blue); text-decoration: underline; }
.home .footer-grid { grid-template-columns: 1.25fr .8fr 1.15fr; gap: clamp(28px, 4vw, 56px); }
.home .footer-grid > div { min-width: 0; }
.home .site-footer .footer-title { font-size: .72rem; line-height: 1.5; margin-bottom: 16px; }
.home .footer-links a { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .home .main-nav { gap: 16px; }
  .home .home-intro-grid { gap: 40px; }
  .home .home-service { padding: 25px; }
}
@media (max-width: 960px) {
  .home #conoce-aila { padding-block: 64px; }
  .home .main-nav { flex: none; max-width: none; justify-content: initial; gap: 3px; background: var(--aila-petroleum); border-color: var(--home-rule); }
  .home .main-nav a[aria-current] { background: #0B3049; box-shadow: none; }
  .home .home-section { padding: 76px 0; }
  .home .home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .home-section-heading { gap: 28px; }
  .home .home-demo-preview { padding: 24px; }
  .home .home-demo-preview svg { width: 90px; }
  .home .home-process { gap: 20px; }
  .home .home-contact-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .home #conoce-aila { padding-block: 56px; }
  .home .footer-grid { grid-template-columns: 1fr 1fr; }
  .home .footer-grid > div:first-child { grid-column: 1 / -1; }
  .home .container, .home .header-inner { width: calc(100% - 40px); }
  .home .header-inner { min-height: 88px; }
  .home .home-intro-grid, .home .home-demo-grid, .home .home-contact-grid { grid-template-columns: 1fr; }
  .home .home-section { padding: 64px 0; }
  .home .home-intro-grid { gap: 0; }
  .home .home-intro-copy { padding-top: 0; }
  .home .home-capabilities { gap: 22px; margin-top: 36px; }
  .home .home-capabilities h3 { font-size: 1rem; }
  .home .home-section-heading { display: block; margin-bottom: 32px; }
  .home .home-section-heading > p { max-width: 100%; margin-top: 20px; }
  .home .home-section-heading .home-link { margin-top: 20px; }
  .home .home-value, .home .home-contact { padding: 64px 0; }
  .home .home-value-inner { grid-template-columns: 36px 1fr; gap: 14px; }
  .home .home-value-mark { font-size: 3.6rem; }
  .home .home-process { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .home .home-process li { border-top: 0; border-left: 2px solid #9DBCCB; padding: 0 0 32px 28px; margin-left: 5px; }
  .home .home-process li:last-child { padding-bottom: 0; }
  .home .home-process li::before { top: 9px; left: -5px; }
  .home .home-step-number { margin-bottom: 8px; }
  .home .home-demo-preview svg { width: 130px; }
  .home .home-contact .button { justify-self: start; }
}
@media (max-width: 480px) {
  .home .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .home .site-footer .brand img { width: 160px; }
  .home .site-footer .footer-title { margin-bottom: 12px; }
  .home .site-footer .footer-bottom { margin-top: 28px; }
  .home .home-capabilities h3 { min-height: 0; }
  .home .home-services, .home .home-capabilities { grid-template-columns: 1fr; }
  .home .home-services { grid-auto-rows: auto; }
  .home .home-service { height: auto; min-height: 0; padding: 28px; }
  .home .home-service > p { flex: initial; margin-bottom: 8px; }
  .home .home-service .home-link { margin-top: 4px; }
  .home .home-capabilities li { padding-top: 18px; }
  .home .home-demo-preview { padding: 22px; }
  .home .home-demo-preview svg { width: 95px; }
  .home .home-demo-copy { padding: 25px; }
  .home .home-value-inner { grid-template-columns: 1fr; gap: 0; }
  .home .home-value-mark { height: 45px; }
  .home .home-contact .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { transition: none !important; animation: none !important; }
}

/* Tablet/mobile: readable HTML first, followed by the same complete background scene. */
@media (max-width: 1100px) and (min-width: 901px) {
  .home .home-hero-message { top: 24%; width: 43%; }
  .home .home-hero h1 { font-size: 2.5rem; }
  .home .home-hero .actions { gap: 8px; }
  .home .home-hero .button { font-size: .72rem; padding: 11px 13px; }
}
@media (max-width: 900px) {
  .home .home-hero-scene { aspect-ratio: auto; padding: 132px 28px calc(56.3136vw + 24px); background-position: center bottom; }
  .home .home-hero-message { position: relative; left: auto; top: auto; width: 100%; max-width: none; }
  .home .home-hero h1 { font-size: clamp(2rem, 5.6vw, 2.9rem); }
  .home .home-hero-copy { max-width: 560px; font-size: .95rem; }
  .home .home-hero-base { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .home .home-hero-scene { padding: 120px 20px calc(56.3136vw + 24px); }
  .home .home-hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.2rem); line-height: 1.12; }
  .home .home-title-question { padding-inline: 7px; margin-left: -5px; max-width: 100%; white-space: normal; }
  .home .home-hero-copy { font-size: .86rem; }
  .home .home-hero .actions .button { width: 100%; }
}
