/* =========================
   FONTS
========================= */

@font-face{
    font-family: "Raleway";
    src: url("./fonts/Raleway-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;   /* variable font: rango */
    font-style: normal;
    font-display: swap;
}
  
@font-face{
    font-family: "Raleway";
    src: url("./fonts/Raleway-Italic-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* =========================
   BASE / TOKENS
========================= */
:root{
  --font-sans: "Raleway", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;  
  --bg: #ffffff;
  --text: #0f172a;       /* slate-900-ish */
  --muted: #64748b;      /* slate-500-ish */
  --mutedrights: #64748ba6;
  --border: rgba(15, 23, 42, .12);

  --brand: #607a89;      /* header azul verdoso del screenshot */
  --brand-ink: #ffffff;

  --card: #ffffff;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);

  --radius: 14px;
  --container: 1120px;
  --legal-width: 360px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;


}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  font-style: normal;
  background: var(--bg);
  color: var(--text);
  line-height: 1.25;
}

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

/* =========================
   UTILITIES (reutilizables)
========================= */
.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section{
  padding: var(--space-6) 0;
}

.section-alt{
  background: rgba(96, 122, 137, .08);
}

.stack{ display: flex; flex-direction: column; padding-left: 0.7em; }
.row{ display: flex; align-items: center; flex-wrap: wrap; }

.gap-sm{ gap: var(--space-2); }
.gap-md{ gap: var(--space-3); }

.muted{ color: var(--muted); }
.small{ font-size: 0.92rem; }

.grid{ display: grid; gap: var(--space-3); }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* =========================
   TYPO
========================= */
.title{
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.h2{
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.h3{
  font-size: 1.15rem;
  margin: 0 0 var(--space-1);
}

.lead{
  font-size: 1.06rem;
  text-align: justify;
  max-width: 80%;
  /* margin: 0; */
}

p {
  margin-top: 0;
  line-height: 1.4;
}

.eyebrow{
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .70);
  margin: 0;
}

/* =========================
   HEADER (según screenshot)
========================= */
.site-header{
  background: var(--brand-ink);
  color: var(--text);
}

.logo{
    width: 8rem;
    height: auto;
  }

.header-inner{
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-weight: 750;
  letter-spacing: 0.02em;
  font-size: 1.8rem;
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 1.05rem;
}

.nav-link{
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}

.nav-link:hover{
  color: rgba(14, 115, 173, 0.4);
}

.nav-link.is-active{
  color: var(--muted);
}

.nav-link.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(14, 115, 173, 0.4);
  border-radius: 999px;
}

/* =========================
   HERO
========================= */

.hero{
    position: relative;
    overflow: visible; /* prevents bleed */
    isolation: isolate; /* ensures z-index layering stays inside */
  }
  
  .hero::before{
    content: "";
    /* position: absolute; */
    inset: 0;
    /* background: url("./images/tech.jpg") center / cover no-repeat; */
    /* background: rgba(96, 122, 137, .08); */
    transform: scale(1.03); /* reduces edge artifacts on some browsers */
    z-index: -2;
  }
  
  .hero::after{
    content: "";
    box-shadow: 2px 20px 20px #35333f26;
    position: absolute;
    inset: 0;
    /* background: rgba(0,0,0,.40);  */
    /* background: linear-gradient(90deg,rgba(214, 255, 135, .4) 0%, rgba(14, 115, 173, 0.4) 65%); */
    background: linear-gradient(90deg,rgba(14, 115, 173, 0.4) 0%, rgba(214, 255, 135, .4) 65%);
    z-index: -1;
    
  }

.hero .h1{
    font-family: raleway;
} 

.hero-inner{
  display: flex;
  grid-template-columns: 1.2fr 1.2fr;
  gap: var(--space-5);
  align-content: center;
}

.hero-card{
  /* background: rgba(15, 23, 42, .5); */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow);
}

.hero-card-inner{
  padding: var(--space-1);
}

@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARDS / BUTTONS
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.card-tight{
  padding: var(--space-3);
}

.btn{
  display: inline-flex;
  font-family: var(--font-sans);
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease, border-color .2s ease;
}

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

.btn-primary{
  background: var(--brand);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover{
  opacity: .9;
}

/* =========================
   SECTION HEAD
========================= */
.section-head{
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  padding-left: 0.7em;
}

/* =========================
   SERVICIOS
========================= */

.servicios{
    background: var(--bg);
}

/* =========================
   AGENDA / FORM
========================= */
#agenda {
    background: linear-gradient(90deg,rgba(214, 255, 135, .2) 0%, rgba(14, 115, 173, 0.2) 65%);
    box-shadow: 2px 20px 20px #35333f26;
}

.agenda-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: start;
}

@media (max-width: 900px){
  .agenda-inner{ grid-template-columns: 1fr; }
}

.form{
  display: grid;
  gap: var(--space-3);
}

.form-status{
  margin:0;
  display:flex;
  align-items:center;
  min-height:44px; /* igual a la altura aproximada del botón */
  font-size:.95rem;
  /* color:var(--success); */
}

.field{
  display: grid;
  gap: 6px;
}

.label{
  font-size: 0.92rem;
  color: rgba(15, 23, 42, .80);
  font-weight: 650;
}

.input{
  width: 100%;
  font-family: var(--font-sans);
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.input:focus{
  border-color: rgba(96, 122, 137, .55);
  box-shadow: 0 0 0 4px rgba(96, 122, 137, .18);
}

/* =========================
   FOOTER
========================= */
.site-footer{
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}

/* .rights{
  margin-left: auto;
  color: var(--mutedrights);
} */

.rights{
  margin: 0 0 0 auto;
  color: var(--mutedrights);
  line-height: 1;
  display: flex;
  align-items: center;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-link{
  /* color: rgba(15, 23, 42, .75); */
  display: flex;
  align-items: center;
  color: var(--muted);
  line-height: 1;
  transition: color .2s;
}

.footer-link:hover{
  color: rgba(14, 115, 173, 0.4);
}

@media (max-width: 480px){

  .site-footer .footer-inner{
    justify-content:center;
  }

  .site-footer .footer-inner > .row{
    width:100%;
    justify-content:center;
  }

  .site-footer .rights{
    /* width:100%; */
    margin-left:0;
    text-align:center;
  }

}

/* =========================
   RESPONSIVE IMPROVEMENTS
========================= */

/* Larger desktops */
@media (min-width:1400px){
  :root{ --container:1280px; }
}

/* Tablets */
@media (max-width:992px){
  .container{
    width:min(var(--container),calc(100% - 32px));
  }

  .header-inner{
    height:auto;
    padding:16px 0;
    gap:16px;
    flex-wrap:wrap;
  }

  .hero-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:32px;
  }

  .hero-inner > div{
    width:100%;
  }

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

  .hero-card-inner{
    display:flex;
    justify-content:center;
  }

  .hero .lead{
    max-width: 42ch;
    margin-inline: auto;
    text-align: center;
  }

  dotlottie-wc{
    width:min(300px,100%) !important;
    height:auto !important;
    aspect-ratio:1;
  }

  .agenda-inner{
    grid-template-columns:1fr;
  }
}

/* Phones */
@media (max-width:768px){

  .legal-page .container{
    width: 100%;
  }

  .section{
    padding:48px 0;
  }

  .logo{
    width:6rem;
  }

  .nav{
    width:100%;
    justify-content:center;
    gap:24px;
  }

  .title{
    font-size:clamp(2rem,8vw,3rem);
  }

  .lead{
    max-width:100%;
  }

  .row{
    width: auto;
  }

  .hero .row{
    flex-direction:column;
  }

  .hero .btn{
    width:100%;
  }

  .card{
    padding:20px;
  }

  .grid-2,
  .grid-3{
    grid-template-columns:1fr;
  }

  .footer-inner{
    justify-content:center;
    text-align:center;
  }

  .rights{
    margin-left: revert;
  }
}

/* Small phones */
@media (max-width:480px){
  .container{
    width:calc(100% - 24px);
  }

  .title{
    line-height:1.1;
  }

  .h2{
    font-size:1.5rem;
  }

  .btn{
    padding:14px 18px;
  }

  dotlottie-wc{
    width:min(200px,100%) !important;
  }
  
  /* .footer-inner{
    justify-content:center;
  }

  .row{
    width:100%;
    justify-content:center;
  }


 
 .rights{
    width:100%;
    text-align:center;
  }  */

  
}






/* =========================
   LEGAL PAGE
========================= */

.legal-page .container {
  width: var(--legal-width);
  margin-inline: auto;
  /* color: red; */
  /* width: var(--legal-width); */
  /* width: calc(100% - 32px);
  max-width: var(--legal-width);
  margin-inline: auto; */
}

.legal-page h1, .legal-page h2, .legal-page span{
  /* color: aqua; */
  text-align: center;
  /* color: red; */
}

.legal-page .page-title{
  font-size: xx-large;
}

.legal-page h2{
  margin-top: 3rem;
}

.legal-page .lead {
  /* color: red; */
  text-align: center;
  max-width: 100%;
}

.legal-page .tecos-contact{
  display: block;
  /* color: blue; */
  margin-bottom: -0.9rem;
  margin-top: 1.5rem;
}

.legal-page .tecos-contact-privacy{
  display: block;
  /* color: blue; */
  /* margin-bottom: -0.9rem; */
  margin-top: 1.5rem;
}

/* =========================
   LEGAL PAGE RESPONSIVE
========================= */


@media (min-width: 410px){
  :root{
    --legal-width: 360px;
  }
}

@media (min-width: 768px){
  :root{
    --legal-width: 680px;
  }
}

@media (min-width: 1024px){
  :root{
    --legal-width: 820px;
  }
}

@media (min-width: 1440px){
  :root{
    --legal-width: 900px;
  }
}