/* =========================================================
   SUMIGRAN PT LANDING — CSS ordenado y optimizado
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --brand:#2f56b8;
  --text:#0f172a;
  --muted:#475569;
  --bg:#ffffff;
  --soft:#f5f7fb;
  --border:#e6ebf2;
  --shadow: 0 10px 30px rgba(2, 8, 23, .08);
  --radius: 18px;
  --max: 1120px;
}

/* =========================================================
   BASE
   ========================================================= */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

h1, .section-title{ font-weight:800; }

/* =========================================================
   UI — BOTONES / BADGE
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:999px;
  padding:12px 18px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none !important;
  user-select:none;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  white-space:nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background:var(--brand);
  color:#fff;
  box-shadow: 0 10px 20px rgba(47,86,184,.25);
}

.btn-primary:hover{
  filter:brightness(.98);
  color:#fff;
}

.btn-outline{
  background:#fff;
  color:var(--brand);
  border-color:rgba(47,86,184,.35);
}

.badge{
  width:fit-content;
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(47,86,184,.08);
  color:var(--brand);
  font-weight:700;
  font-size:12px;
  letter-spacing:.2px;
}

/* Botón “modelos” (desktop vs mobile) */
.btn-modelos-mobile{ display:none; }

/* =========================================================
   SECCIONES BASE
   ========================================================= */
section{ padding:34px 0; }
.soft{ background:var(--soft); }

.section-title{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.01em;
}

.section-lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  max-width:78ch;
}

.kicker{
  font-weight:800;
  color:var(--brand);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* CTA debajo de secciones */
.section-cta{
  display:flex;
  justify-content:center;
  margin-top:18px;
}
.section-cta-left{ justify-content:flex-start; }

/* =========================================================
   HERO
   ========================================================= */
.hero{ padding:36px 0 22px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:start;
}

/* Columna izquierda */
.hero-copy{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Animación columna izquierda (rápida) */
.hero-copy-anim{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-copy-anim.is-loaded{
  opacity:1;
  transform: translateY(0);
  will-change:auto;
}

/* Tipografía hero */
.hero h1{
  margin:0;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.02em;
}

.hero p{
  margin:0;
  color:var(--muted);
  max-width:56ch;
}

/* Bloque marca */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0;
}

.brand img{
  height:80px;
  width:auto;
  display:block;
}

/* (ojo: tu HTML actual no usa .hero-brand, pero lo dejo por si lo reintroduces) */
.hero-brand p{
  margin:0;
  max-width:52ch;
}

/* Botones hero */
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:0;
}

/* Links tipo “link” */
.hero-actions .link,
.hero-catalog-link{
  font-weight:700;
  color:var(--brand);
  padding:10px 2px;
}

/* Trust card */
.trust{
  padding:18px;
  text-align:left;
  max-width:56ch;
}

.trust p{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

.trust strong{ color:var(--text); }

/* Ancla con aire al hacer scroll */
#orcamento{ scroll-margin-top:18px; }

/* Tarjeta formulario (fade-in con Elementor) */
.hero-card{
  background:#fff;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:25px;
  min-height:600px;
  overflow:hidden;

  opacity:0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility:hidden;
}

.hero-card.is-loaded{
  opacity:1;
  transform: translateY(0);
  visibility:visible;
}

/* Elementor tweaks */
.elementor-g-recaptcha{ margin-bottom:10px; }
.sumigran-form{ display:block; width:100%; }

/* =========================================================
   BENEFITS / FEATURES
   ========================================================= */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.feature{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
}

.feature .icon{
  width:38px;
  height:38px;
  border-radius:12px;
  background: rgba(47,86,184,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  color:var(--brand);
  font-weight:900;
  font-size:16px;
}

.feature h3{
  margin:0 0 6px;
  font-size:16px;
}

.feature p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* =========================================================
   APLICAÇÕES
   ========================================================= */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}

.image-card{
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  min-height:320px;
  background:#fff;
}

.image-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Lista en card */
.card.list{ padding:22px; }

.list-head h3{
  margin:0 0 6px;
  font-size:18px;
}

.list-head p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
  max-width:52ch;
}

.card.list ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
}

.card.list li{
  margin:0;
  padding:10px 12px 10px 42px;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(47,86,184,.06), rgba(255,255,255,1));
  position:relative;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  display:flex;
  align-items: center;
}

.card.list li::before{
  content:"✓";
  width:26px;
  height:26px;
  border-radius:10px;
  background: rgba(47,86,184,.12);
  color:var(--brand);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
}

/* =========================================================
   BRIDGE (Catálogo completo)
   ========================================================= */
.bridge{
  padding:18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.bridge .text{ max-width:70ch; }
.bridge p{ margin:8px 0 0; color:var(--muted); }

.actions-media{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

.actions-image{
  width:100%;
  max-width:320px;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid var(--border);
}

/* =========================================================
   SECCIÓN FINAL (Orçamento / contacto)
   ========================================================= */
#orcamento-final .form-wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}

/* Card imagen como background */
#orcamento-final .cta-bg{
  padding:0;
  min-height:100%;
  background-size:cover;
  background-position: bottom center;
  background-repeat:no-repeat;
  border-radius: var(--radius);
}

/* Bloque derecha: contacto */
.form-note{ padding:22px; }

.note-title{
  margin:10px 0 8px;
  font-size:18px;
}

.note-lead{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
  max-width:60ch;
}

.note-points{
  display:grid;
  gap:8px;
  margin:14px 0 16px;
}

.note-point{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--text);
  font-size:14px;
  font-weight:600;
}

.note-point .dot{
  width:22px;
  height:22px;
  border-radius:8px;
  background: rgba(47,86,184,.12);
  color:var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  font-weight:900;
}

.contact-cards{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.contact-card{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(47,86,184,.06), #fff);
  text-decoration:none !important;
  transition: transform .06s ease, box-shadow .2s ease;
}

.contact-card:hover{
  box-shadow: 0 10px 22px rgba(2, 8, 23, .08);
  transform: translateY(-1px);
}

.contact-label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}

.contact-value{
  font-size:14px;
  color:var(--text);
  font-weight:600;
}

.note-small{
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}

.note-cta{
  margin-top:14px;
  display:flex;
  justify-content:flex-start;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  border-top:1px solid var(--border);
  padding:22px 0;
  color:var(--muted);
  font-size:13px;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-brand img{
  height:30px;
  width:auto;
  display:block;
}

/* Animación SOLO en escritorio para "Aplicações" */
@media (min-width: 981px){
  .apps-anim{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }

  .apps-anim.is-loaded{
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
  }
}

/* =========================================================
   RESPONSIVE (≤ 980px)
   ========================================================= */
@media (max-width: 980px){

  /* Botón “modelos” (desktop vs mobile) */
  .btn-modelos-desktop{ display:none; }
  .btn-modelos-mobile{ display:inline-flex; }

  /* Botones full-width en móvil (excepto hero) */
  .btn{
    width:100%;
    justify-content:center;
  }
  .hero-actions .btn{
    width:auto;
  }

  /* Layouts */
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  #orcamento-final .form-wrap{ grid-template-columns: 1fr; }

  /* Hero */
  .hero h1{ font-size:36px; }

  .hero-copy-anim{
    opacity:1;
    transform:none;
  }

  /* En móvil el form NO hace fade-in para evitar saltos */
  .hero-card{
    min-height:auto;
    opacity:1;
    visibility:visible;
    transform:none;
  }

  /* Aplicações */
  .card.list ul{ grid-template-columns: 1fr; }

  /* Trust */
  .trust{ max-width:100%; }
  
  .actions-media{
    width:100%;
  }
  .actions-image{
  max-width: 100%;
  }
  /* Fondo CTA (altura mínima si se apila) */
  #orcamento-final .cta-bg{
    min-height:360px;
  }

  /* Aire ancla */
  #orcamento{ scroll-margin-top:12px; }
}
