/* =========================================================
   ESTRALIA · HOME 2026
   CSS específico de /_estralia-2026/index.html
   Depende de main.css para header, footer, cookies y base.
   ========================================================= */

:root{
  --home-blue: rgb(15, 98, 254);
  --home-blue-dark: rgb(10, 78, 210);
  --home-black: #0b0d12;
  --home-text: #1f2937;
  --home-muted: #5f6b7a;
  --home-border: #e5e7eb;
  --home-soft: #f5f7fb;
  --home-white: #fff;
  --home-max: 1160px;
  --home-radius: 0;
}

html{ scroll-behavior: smooth; }
body{ background:#fff; color:var(--home-text); }

.home-wrap{
  width:min(var(--home-max), calc(100% - 40px));
  margin-inline:auto;
}
.home-wrap--narrow{ width:min(860px, calc(100% - 40px)); }

.home-section{
  padding: clamp(56px, 7vw, 96px) 0;
  background:#fff;
}
.home-section--soft{ background:var(--home-soft); }
.home-section--dark{
  background:var(--home-black);
  color:#fff;
}

.home-section__head{
  max-width:820px;
  margin-bottom:32px;
}
.home-section__head--split{
  max-width:none;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:end;
}
.home-section__head h2,
.home-direct h2,
.home-systems h2,
.home-authority h2,
.home-faq h2,
.home-final-cta h2{
  margin:0 0 12px;
  font-size:clamp(2rem, 4vw, 3.15rem);
  line-height:1.08;
  letter-spacing:-.04em;
}
.home-section__head p,
.home-direct p,
.home-systems p,
.home-authority p,
.home-faq p{
  margin:0;
  color:var(--home-muted);
  font-size:1.05rem;
}
.home-section--dark .home-section__head p{ color:#c7ced8; }

.home-eyebrow,
.home-kicker{
  margin:0 0 12px;
  color:var(--home-blue);
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.home-hero{
  position:relative;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:#fff;
  background:#0b0d12;
}
.home-hero__media,
.home-hero__overlay{
  position:absolute;
  inset:0;
}
.home-hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
  filter:saturate(.86) contrast(1.06);
}
.home-hero__overlay{
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.64) 42%, rgba(0,0,0,.22) 100%),
    linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,.12));
}
.home-hero__inner{
  position:relative;
  z-index:1;
  width:min(980px, calc(100% - 40px));
  margin-inline:auto;
  padding-top:70px;
}
.home-hero h1{
  margin:0;
  max-width:820px;
  font-size:clamp(2.75rem, 7.5vw, 6.5rem);
  line-height:.96;
  letter-spacing:-.065em;
}
.home-hero__lead{
  max-width:720px;
  margin:22px 0 0;
  color:#f2f5f9;
  font-size:clamp(1.1rem, 2vw, 1.45rem);
  line-height:1.45;
}
.home-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}
.home-hero__note{
  margin:18px 0 0;
  color:#d7dde8;
  font-size:.98rem;
}

.home-hero__assurance{
  margin:8px 0 0;
  color:#fff;
  font-size:.95rem;
  font-weight:700;
  opacity:.9;
}

.home-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:12px 18px;
  border:1px solid transparent;
  border-radius:var(--home-radius);
  font-weight:700;
  text-decoration:none;
  line-height:1.2;
  transition:background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.home-btn::after{ content:"→"; transition:transform .2s ease; }
.home-btn:hover::after{ transform:translateX(4px); }
.home-btn:hover{ transform:translateY(-1px); }
.home-btn--primary{ background:var(--home-blue); color:#fff; }
.home-btn--primary:hover{ background:var(--home-blue-dark); }
.home-btn--secondary{ background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.38); }
.home-btn--secondary:hover{ background:rgba(255,255,255,.18); }
.home-btn--light{ background:#fff; color:#0b0d12; border-color:#fff; }
.home-btn:focus-visible,
.home-link:focus-visible,
.home-service:focus-visible{
  outline:3px solid rgba(15,98,254,.42);
  outline-offset:3px;
}

.home-direct__answer{
  font-size:clamp(1.15rem, 2vw, 1.35rem)!important;
  color:#111827!important;
  line-height:1.55;
  margin-bottom:18px!important;
}
.home-direct p + p{ margin-top:14px; }


/* Qué es Estralia: composición editorial con espacio visual técnico */
.home-direct .home-wrap--narrow.home-direct__grid{
  width:auto;
  max-width:none;
  margin-left:max(20px, calc((100vw - var(--home-max)) / 2));
  margin-right:clamp(20px, 3vw, 56px);
}
.home-direct__grid{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(0, 3fr);
  gap:clamp(36px, 4.5vw, 56px);
  align-items:center;
}
.home-direct__copy{
  max-width:500px;
}
.home-direct__media{
  position:relative;
  width:100%;
  max-width:none;
  aspect-ratio:6111 / 3262;
  justify-self:stretch;
  margin:0;
  overflow:visible;
  background:transparent;
}
.home-direct__placeholder-art{
  width:100%;
  height:100%;
  display:block;
  color:var(--home-blue);
}
.home-direct__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

@media (max-width: 980px){
  .home-direct .home-wrap--narrow.home-direct__grid{
    width:min(var(--home-max), calc(100% - 40px));
    max-width:none;
    margin-inline:auto;
  }
  .home-direct__grid{
    grid-template-columns:1fr;
    gap:34px;
  }
  .home-direct__copy{
    max-width:760px;
  }
  .home-direct__media{
    max-width:760px;
    justify-self:start;
  }
}

@media (max-width: 620px){
  .home-direct .home-wrap--narrow.home-direct__grid{
    width:min(100% - 28px, var(--home-max));
  }
  .home-direct__grid{
    gap:28px;
  }
  .home-direct__media{
    aspect-ratio:6111 / 3262;
  }
}

.home-card-grid,
.home-service-grid,
.home-news-grid{
  display:grid;
  gap:18px;
}
.home-card-grid--four{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.home-card,
.home-service,
.home-news-card{
  background:#fff;
  border:1px solid var(--home-border);
  padding:22px;
  border-radius:var(--home-radius);
  box-shadow:0 12px 30px rgba(15,23,42,.05);
}
.home-card h3,
.home-service span{
  display:block;
  margin:0 0 10px;
  color:#101828;
  font-size:1.1rem;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-.02em;
}
.home-card p,
.home-service p{
  margin:0;
  color:var(--home-muted);
  font-size:.98rem;
  line-height:1.55;
}

.home-service-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.home-service{
  color:inherit;
  text-decoration:none;
  min-height:170px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-service:hover{
  transform:translateY(-3px);
  border-color:rgba(15,98,254,.35);
  box-shadow:0 18px 38px rgba(15,23,42,.1);
}

.home-service span::after{
  content:" →";
  color:var(--home-blue);
}

.home-systems{
  background:#fff;
  padding-top:72px;
  padding-bottom:72px;
}
.home-systems-bleed{
  display:grid;
  grid-template-columns:minmax(0,1.28fr) minmax(420px,.96fr);
  gap:56px;
  align-items:center;
  width:calc(100% - max(20px, calc((100vw - var(--home-max)) / 2)));
  margin-left:0;
  margin-right:max(20px, calc((100vw - var(--home-max)) / 2));
}
.home-systems__content{
  min-width:0;
  max-width:560px;
}
.home-systems__content .home-pill-grid{
  margin-top:26px;
}
.home-systems__visual{
  margin:0;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  align-self:stretch;
}
.home-systems__visual img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:left center;
  mix-blend-mode:multiply;
}
.home-pill-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.home-pill-grid span{
  display:inline-flex;
  padding:12px 15px;
  background:#eef4ff;
  color:#153e95;
  border:1px solid rgba(15,98,254,.15);
  font-weight:700;
}

.home-process{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  counter-reset:steps;
}
.home-process li{
  padding:22px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
}
.home-process span{
  display:block;
  color:var(--home-blue);
  font-weight:800;
  margin-bottom:12px;
}
.home-process h3{
  margin:0 0 8px;
  color:#fff;
  font-size:1.05rem;
  line-height:1.25;
}
.home-process p{
  margin:0;
  color:#c7ced8;
  font-size:.96rem;
}
.home-section__foot{ margin-top:28px; }

.home-authority{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:42px;
  align-items:start;
}
.home-authority p + p{ margin-top:14px; }

.home-authority__cta{
  margin-top:24px;
}

.home-link{
  color:var(--home-blue);
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.home-link::after{ content:" →"; }
.home-link:hover{ text-decoration:underline; }

.home-news-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.home-news-card{
  min-height:230px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(15,98,254,.07), rgba(15,23,42,.02)),
    #fff;
}
.home-news-card--placeholder::before,
.home-news-card--placeholder::after{
  content:"";
  display:block;
  border-radius:0;
}
.home-news-card--placeholder::before{
  height:96px;
  margin:-22px -22px 22px;
  background:linear-gradient(135deg, rgba(15,98,254,.12), rgba(15,23,42,.08));
}
.home-news-card--placeholder::after{
  width:72%;
  height:12px;
  background:rgba(15,23,42,.08);
  box-shadow:0 24px 0 rgba(15,23,42,.06), 0 48px 0 rgba(15,23,42,.045);
}
.home-news-card--placeholder{ opacity:.78; }

.home-faq__list{
  margin-top:26px;
  display:grid;
  gap:10px;
}
.home-faq details{
  border:1px solid var(--home-border);
  background:#fff;
  padding:0;
}
.home-faq summary{
  cursor:pointer;
  padding:18px 20px;
  font-weight:800;
  color:#101828;
}
.home-faq details[open] summary{ border-bottom:1px solid var(--home-border); }
.home-faq details p{
  padding:18px 20px 20px;
  margin:0;
  color:var(--home-muted);
}

.home-final-cta{
  background:#0b0d12;
  color:#fff;
  padding:clamp(64px, 8vw, 110px) 0;
  text-align:center;
}
.home-final-cta__inner{
  max-width:840px;
}
.home-final-cta p{
  margin:0 auto 26px;
  max-width:760px;
  color:#e2e8f0;
  font-size:1.1rem;
  line-height:1.65;
}
.home-final-cta span{
  display:block;
  margin-top:14px;
  color:#c7ced8;
  font-weight:700;
}

@media (max-width: 980px){
  .home-hero{
    min-height:92svh;
    align-items:end;
    padding:120px 0 52px;
  }
  .home-hero__overlay{
    background:linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.48));
  }
  .home-hero__inner{ padding-top:0; }
  .home-card-grid--four,
  .home-service-grid,
  .home-process,
  .home-news-grid,
  .home-systems__grid,
  .home-authority{
    grid-template-columns:1fr;
  }
  .home-section__head--split{
    align-items:flex-start;
    flex-direction:column;
  }
  .home-systems{
    padding-top:64px;
    padding-bottom:64px;
  }
  .home-systems-bleed{
    width:min(var(--home-max), calc(100% - 40px));
    margin:0 auto;
    grid-template-columns:1fr;
    gap:30px;
  }
  .home-systems__visual{
    justify-content:center;
    order:2;
    align-self:auto;
  }
  .home-systems__content{
    order:1;
    max-width:none;
  }
  .home-systems__visual img{
    width:min(100%, 760px);
    max-height:none;
    object-position:center;
  }
  .home-card,
  .home-service,
  .home-news-card{
    padding:20px;
  }
  .home-news-card--placeholder::before{ margin:-20px -20px 20px; }
}

@media (max-width: 620px){
  .home-wrap,
  .home-wrap--narrow,
  .home-hero__inner{ width:min(100% - 28px, var(--home-max)); }
  .home-hero h1{ font-size:clamp(2.35rem, 14vw, 4.5rem); }
  .home-hero__actions{ flex-direction:column; }
  .home-btn{ width:100%; }
  .home-section{ padding:48px 0; }
}

/* Cards de proyectos: la tarjeta destaca al pasar el cursor, pero solo enlazan sus accesos internos */
.home-card{
  color:inherit;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-card__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  z-index:0;
  pointer-events:none;
}
.home-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(255,255,255,.85);
  pointer-events:none;
}
.home-card > :not(.home-card__bg){
  position:relative;
  z-index:2;
}
.home-card:hover{
  transform:translateY(-3px);
  border-color:rgba(15,98,254,.35);
  box-shadow:0 18px 38px rgba(15,23,42,.1);
}
.home-card__links{
  display:grid;
  gap:8px;
  margin-top:auto;
  padding-top:18px;
}
.home-card__link{
  color:#101828;
  font-size:.94rem;
  line-height:1.35;
  font-weight:800;
  text-decoration:none;
}
.home-card__link::after{
  content:" →";
  display:inline-block;
  color:var(--home-blue);
  transition:transform .18s ease;
}
.home-card__link:hover{
  color:var(--home-blue);
}
.home-card__link:hover::after{
  transform:translateX(3px);
}
.home-card__link:focus-visible{
  outline:3px solid rgba(15,98,254,.42);
  outline-offset:3px;
}

/* =========================================================
   HOME · FORMULARIO CONTACTO
   Fuerza el azul nuevo del botón Enviar también en móvil.
   Home.css carga después de conversion-contacto.css.
   ========================================================= */

.home-page .ars-submit,
.page-home .ars-submit,
body .ars-bottom .ars-submit {
  background: rgb(15, 98, 254) !important;
  border-color: rgb(15, 98, 254) !important;
  color: #ffffff !important;
}

.home-page .ars-submit:hover,
.page-home .ars-submit:hover,
body .ars-bottom .ars-submit:hover {
  background: rgb(10, 78, 210) !important;
  border-color: rgb(10, 78, 210) !important;
  color: #ffffff !important;
}

@media (max-width: 980px) {
  .home-page .ars-submit,
  .page-home .ars-submit,
  body .ars-bottom .ars-submit {
    background: rgb(15, 98, 254) !important;
    border-color: rgb(15, 98, 254) !important;
    color: #ffffff !important;
  }

  .home-page .ars-submit:hover,
  .page-home .ars-submit:hover,
  body .ars-bottom .ars-submit:hover {
    background: rgb(10, 78, 210) !important;
    border-color: rgb(10, 78, 210) !important;
    color: #ffffff !important;
  }
}

/* =========================================================
   HOME · HERO FLUIDO SEGÚN ALTURA DE VENTANA · ESCRITORIO
   Mantiene 100svh mínimo y compacta solo el contenido cuando
   disminuye la altura útil del navegador.
   ========================================================= */

@media (min-width: 981px) {
  .home-hero__inner {
    padding-top: clamp(48px, 7svh, 70px);
  }

  .home-hero h1 {
    font-size: clamp(2.75rem, min(7.5vw, 10.5svh), 6.5rem);
  }

  .home-hero__lead {
    margin-top: clamp(14px, 2.2svh, 22px);
  }

  .home-hero__actions {
    margin-top: clamp(18px, 3svh, 30px);
  }

  .home-hero__note {
    margin-top: clamp(10px, 1.8svh, 18px);
  }

  .home-hero__assurance {
    margin-top: clamp(5px, .8svh, 8px);
  }
}

