:root {
  --primary: #24781E;
  --primary-dark: #185514;
  --primary-soft: #EAF6E8;
  --text: #142018;
  --muted: #66756A;
  --line: #DDE8DD;
  --card: #FFFFFF;
  --bg: #F5FAF4;
  --danger: #B42318;
  --success: #24781E;
  --shadow: 0 22px 70px rgba(20, 32, 24, .12);
  --radius-lg: 30px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(36, 120, 30, .16), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 46%, #fff 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.hidden{
display:none !important;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(36, 120, 30, .12);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(20, 32, 24, .08);
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand{

display:flex;
align-items:center;
justify-content:center;

}

.brand-logo{
width:200px !important;
}

.brand:hover .brand-logo{

transform:scale(1.04);

}

.header-actions{

display:flex;
align-items:center;
gap:12px;

}

.header-link{

color:#fff !important;

background:var(--primary);

padding:12px 22px;

border-radius:999px;

font-weight:700;

transition:.25s ease;

border:1px solid transparent;

}

.header-link:hover{

transform:translateY(-2px);

background:var(--primary-dark);

}

.header-link.secondary{

background:#fff;

color:var(--primary) !important;

border:1px solid var(--line);

}

.header-link.secondary:hover{

background:var(--primary);

color:#fff !important;

}

.header-link {
  color: #fff;
  background: var(--primary);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.header-link:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 12px 28px rgba(36, 120, 30, .25); }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }



.eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: .88rem;
}

.hero{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:50px 0 35px;
    min-height:auto;
    gap:20px;
}

.hero-copy{
    max-width:850px;
    margin:auto;
}

.hero h1{
    font-size:clamp(2.2rem,5vw,4rem);
    line-height:1.1;
    margin:18px 0 15px;
    letter-spacing:-.04em;
}

.hero p{
    max-width:720px;
    margin:auto;
    font-size:1.08rem;
}

.hero-badges{
    justify-content:center;
}



.simulator-shell{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:30px;
    align-items:start;
    max-width:1150px;
    margin:auto;
    padding:20px 0 70px;
}

.simulator-card,
.result-card{
    background:rgba(255,255,255,.95);
    border-radius:30px;
    border:1px solid rgba(36,120,30,.08);
    box-shadow:
    0 10px 30px rgba(0,0,0,.05),
    0 25px 80px rgba(36,120,30,.08);
}

.simulator-card { padding: clamp(22px, 4vw, 38px); }
.result-card{
    padding:32px;
    position:sticky;
    top:95px;
    max-height:85vh;
    overflow:auto;
}

.section-heading span,
.result-header span {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.section-heading h2,
.result-header h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.section-heading p { color: var(--muted); margin: 0 0 26px; line-height: 1.6; }

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}
.field{
    gap:10px;
}

input,
select{
    height:58px;
    padding:0 18px;
    font-size:15px;
}

label{
    font-size:.95rem;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

label { font-weight: 800; color: #243226; }
label strong { color: var(--primary); }
label span { color: var(--muted); font-weight: 600; }

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(36, 120, 30, .11);
}

input.invalid,
select.invalid { border-color: var(--danger); box-shadow: 0 0 0 5px rgba(180, 35, 24, .08); }

.error-message { min-height: 18px; color: var(--danger); font-weight: 700; font-size: .82rem; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.primary-button{
    margin-top:20px;
    width:100%;
    height:60px;
    border:0;
    border-radius:18px;
    font-size:1rem;
    font-weight:800;
    cursor:pointer;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
    );

    color:#fff; /* ← texto blanco */

    box-shadow:
    0 15px 35px
    rgba(36,120,30,.25);

    transition:.3s;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.primary-button span{
    color:#fff; /* ← fuerza blanco también en el texto interno */
}

.primary-button:hover{
    transform:translateY(-3px);
}

.primary-button:disabled{
    color:#fff;
    opacity:.85;
}

.button-loader {
  display: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

.primary-button.loading .button-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  min-height: 24px;
  margin-top: 16px;
  font-weight: 800;
  text-align: center;
}

.form-alert.success { color: var(--success); }
.form-alert.error { color: var(--danger); }

.result-empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

.empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
}

.result-empty h3 { margin: 0 0 8px; color: var(--text); }
.result-empty p { margin: 0; line-height: 1.6; }

.hidden { display: none !important; }

.result-list { display: grid; gap: 12px; margin-top: 20px; }

.result-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:18px;
    border-radius:18px;
    transition:.25s;
}

.result-row:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.result-row span { color: var(--muted); font-weight: 700; }
.result-row strong { text-align: right; color: var(--text); }
.result-row.discount strong { color: var(--danger); }
.result-row.final {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px 18px;
}
.result-row.final span,
.result-row.final strong { color: #fff; }
.result-row.final strong { font-size: 1.35rem; }

.result-note {
  color: var(--muted);
  line-height: 1.6;
  font-size: .9rem;
  margin: 18px 0 0;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
}

@media(max-width:980px){

.hero{
padding:35px 0;
}

.simulator-shell{
grid-template-columns:1fr;
}

.result-card{
position:static;
margin-top:20px;
}

.form-grid{
grid-template-columns:1fr;
}

.hero h1{
font-size:2.2rem;
}

.hero p{
font-size:1rem;
}

.site-header{
padding:18px 24px;
}

.brand-logo{

width:100px;

}

.header-actions{

gap:8px;
flex-wrap:wrap;

}

.header-link{

padding:10px 14px;
font-size:.85rem;

}


@media (max-width:640px){

.site-header{

display:flex;
flex-direction:column;

align-items:center;

padding:14px;

gap:14px;

border-radius:24px;

}

.brand{

width:100%;
justify-content:center;

}

.brand-logo{

width:120px !important;
height:auto;

}

.header-actions{

display:flex;

width:100%;

gap:10px;

justify-content:center;

flex-wrap:nowrap;

}

.header-link{

flex:1;

display:flex;

align-items:center;
justify-content:center;

padding:12px 8px;

font-size:.82rem;

text-align:center;

white-space:nowrap;

}

}