:root{
  --bg:#0b0f14;
  --surface:#f2f2f2;
  --surface-2:#f2f2f2;
  --text:#e8edf7;
  --muted:#9fb0c8;
  --accent:#38b6ff;
  --accent-2:#22d3ee;
  --brand:#00a86b;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  color: #1a1a1a;
  background:linear-gradient(180deg, #0b0f14 0%, #0d1219 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}
.container{
  width:min(1100px, 92%);
  margin-inline:auto;
}

.muted{color: #1a1a1a;}
.strong{font-weight:600}
.lead{font-size:1.1rem;color:#1a1a1a;}

h1,h2,h3{font-family:Montserrat, Inter, system-ui; margin:0 0 .5rem}
h1{font-size:clamp(2rem, 4.4vw, 3.4rem); line-height:1.05; letter-spacing:-0.02em}
h2{font-size:clamp(1.5rem, 3.2vw, 2.2rem)}
h3{font-size:clamp(1.1rem, 2.2vw, 1.4rem)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.9rem 1.1rem; border-radius:12px;
  text-decoration:none; color:var(--text); border:1px solid transparent;
  transition:.22s ease; font-weight:600; box-shadow:var(--shadow)
}
.btn-primary{background:linear-gradient(90deg, var(--accent), var(--accent-2)); color:#061018}
.btn-outline{background:transparent; border-color:#2b3a4e}
.btn:hover{transform:translateY(-2px); filter:saturate(1.2)}
.btn:active{transform:translateY(0)}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,20,.75); backdrop-filter:saturate(1.2) blur(12px);
  border-bottom:1px solid #1c2633;
}
.header-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:.8rem 0;
}
.brand{display:flex; align-items:center; gap:.7rem; color:var(--text); text-decoration:none}
.brand-logo{width:40px; height:40px; object-fit:cover; border-radius:8px; border:1px solid #213047}
.brand-name{font-weight:800; letter-spacing:.02em}

.site-nav ul{display:flex; gap:1rem; list-style:none; margin:0; padding:0}
.site-nav a{color:var(--muted); text-decoration:none; font-weight:600; padding:.6rem .7rem; border-radius:8px}
.site-nav a:hover{color:var(--text); background:#162233}

.nav-toggle{
  display:none; background:transparent; border:none; cursor:pointer;
}
.nav-toggle-bar{width:24px; height:2px; background:var(--text); display:block; margin:5px 0; border-radius:2px}

.hero{
  position:relative; min-height:100vh; display:grid; place-items:center;
  padding:4rem 0 3rem; text-align:center;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-image: url(../img/portada.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  z-index:-1;
}
.hero-subtitle{color:#cfe6ff; font-weight:600; margin:.4rem 0 1.2rem}
.hero-cta{display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap}

.section{padding:3.2rem 0}
.section-accent{background:linear-gradient(180deg, #ffffff 0%, #ffffff 100%);}
.section-dark{background:#ffffff;}

.section-header{max-width:800px; margin-inline:auto; text-align:center; margin-bottom:2rem}
.section2{
  background-color:whitesmoke;
  padding-top: 3%;
  padding-bottom: 3%;
}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:1.4rem}
.grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:1.2rem}

.card{
  background:var(--surface); border:1px solid #f2f2f2; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow)
}
.card-img{aspect-ratio:16/9; object-fit:cover}
.card-body{padding:1rem 1rem 1.2rem}

.pillars .pillar{
  background:var(--surface-2); border:1px solid #f2f2f2; border-radius:14px; padding:1rem 1.1rem;
  box-shadow:var(--shadow)
}

.quote{
  margin:2.2rem auto 0; max-width:850px; text-align:center;
}
.quote blockquote{
  font-size:1.2rem; line-height:1.6; margin:0; padding:1.2rem 1.2rem 0;
}
.quote figcaption{
  color: #1a1a1a; margin-top:.6rem; font-size:.95rem;
}

.feature-list .feature{
  background:var(--surface); border:1px solid #213047; border-radius:14px; padding:1.2rem;
  box-shadow:var(--shadow)
}

.cta-stack{
  margin-top:1.8rem; display:flex; gap:.8rem; flex-wrap:wrap; justify-content:center;
}

.site-footer{
  padding:2.2rem 0 2rem; background:#0a0f15; border-top:1px solid #182235;
}
.footer-grid{
  display:grid; grid-template-columns:1.2fr .8fr; gap:1.4rem; align-items:start;
}
.contact-form .form-row{display:flex; flex-direction:column; gap:.4rem; margin-bottom:.9rem}
.contact-form input, .contact-form textarea{
  background:#0f1623; border:1px solid #213047; color:var(--text);
  padding:.8rem .9rem; border-radius:10px; outline:none;
}
.contact-form input:focus, .contact-form textarea:focus{border-color:var(--accent)}
.form-note{font-size:.85rem}

.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.2rem; padding-top:1rem; border-top:1px solid #182235;
}
.footer-bottom nav{display:flex; gap:1rem}
.footer-bottom a{color:var(--muted); text-decoration:none}
.footer-bottom a:hover{color:var(--text)}


.head_exp{
    top:0;
    background-color: #ed1c24;
    padding: 0.5em;
    position: fixed;
    text-align: center;
    display: block;
    width: 100%;
    border-bottom-color: #000;
    border-right-width: 2px;
    border-bottom-style:solid;
    z-index: 99;
    -webkit-transition: background-color 0.5s ease-out; -moz-transition: 
  background-color 0.5s ease-out; -o-transition: background-color 0.5s ease-out; transition: background-color 0.5s ease-out;
}
.head_exp:hover{
    background-color: rgb(0, 0, 0);
}
.image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1rem;
  margin-top:1.5rem;
}
.image-grid img{width:100%;border-radius:8px;object-fit:cover}

.btn{
  display:inline-block;
  padding:.8rem 1.2rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}
.btn-primary{background:#135377;color:#fff}

.site-footer{
  background:#1a1a1a;
  padding:2rem 0;
  text-align:center;
  border-top:1px solid #ddd;
}
.footer-content{display:flex;flex-direction:column;gap:1rem;align-items:center}

@media (max-width: 900px){
  .grid-3{grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  .site-nav{display:none}
  .nav-toggle{display:block}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero{
    min-height: 80vh;
  }

  .hero-bg{
  position:absolute;
  inset:0;
  background-image: url(../img/portada-m.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  z-index:-1;
}
}
