
html, body{
    height:100%;
}

body{
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

main{
    flex:1;
}
:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --brand: #7dd3fc;        /* celeste  */
  --brand-2:#a78bfa;       /* violeta suave */
  --line: rgba(255,255,255,.14);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--text);
 background:
    radial-gradient(1200px 700px at 15% 10%, rgba(125, 211, 252, .18), transparent 55%),
    radial-gradient(1000px 700px at 90% 0%, rgba(167, 139, 250, .16), transparent 60%),
    linear-gradient(180deg, var(--bg), #070b14 70%);

  background-attachment: fixed;
  line-height: 1.6;
}

/* contenedor */
.contenedor{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== Header / nav ====== */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 20, .55);
  border-bottom: 1px solid var(--line);
}

.barra{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.barra img{
  height: 44px;
  width: auto;
  display:block;
}

.navegacion{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
}

.navegacion a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .9rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.navegacion a:hover{
  background: rgba(255,255,255,.08);
  color: var(--text);
  transform: translateY(-1px);
}

/* ====== Hero / portada ====== */
.portada{
  min-height: 72vh;
  display:flex;
  align-items:stretch;
  background:
    linear-gradient(180deg, rgba(7,11,20,.35), rgba(7,11,20,.88)),
    url("../img/portada2.jpg");
  background-size: cover;
  background-position: center;
}


.overlay{
  width:100%;
  display:flex;
}

.contenido-portada{
  padding: 80px 0;
  display:flex;
  flex-direction:column;
  gap: 18px;
  justify-content:center;
}

.contenido-portada h1{
  margin:0;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.contenido-portada h1::after{
  content:"";
  display:block;
  width: 110px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: .9;
}

/* ====== Botones ====== */
.boton-transparent,
.boton-blanco{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  width: fit-content;
}

.boton-transparent{
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.boton-transparent:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.10);
}

.boton-blanco{
  color: #0b1220;
  background: linear-gradient(90deg, var(--brand), #ffffff);
  border: 0;
}

.boton-blanco:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ====== Secciones ====== */
main.contenedor{
  padding: 70px 20px 30px;
}

section{
  scroll-margin-top: 90px; /* para que el sticky header no tape el titulo */
}

#quienes-somos h1,
#servicios h1{
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

hr{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 18px 0 26px;
}

/* bloque quienes somos */
.quienes-somos h3,
.servicios h3{
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  max-width: 80ch;
}

/* cards mision / vision */
.mision-vision{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.mision-vision > div{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.mision-vision h4{
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.mision-vision p{
  margin: 0;
  color: var(--muted);
}

/* ====== Contacto bloque ====== */
.imagen-contacto{
  margin: 50px auto 0;
  padding: 60px 20px;
  text-align:center;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(125, 211, 252,.20), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.imagen-contacto h2{
  margin:0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
}

.imagen-contacto p{
  margin:0 auto 18px;
  max-width: 70ch;
  color: var(--muted);
}

/* ====== Servicios ====== */
#servicios{
  padding: 60px 0 10px;
}

.list ul{
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.list li{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.list li:hover{
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(125,211,252,.35);
}

.list li span{
  color: var(--text);
  font-weight: 600;
}

/* ====== Footer ====== */
.footer{
  margin-top: 60px;
  padding: 30px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(7,11,20,.55);
}

.contenido-footer{
  display:flex;
  justify-content:center;
}

.copyright{
  margin: 18px 0 0;
  text-align:center;
  color: var(--muted);
  font-size: .9rem;
}

/* ====== Responsive ====== */
@media (max-width: 820px){
  .mision-vision{ grid-template-columns: 1fr; }
  .list ul{ grid-template-columns: 1fr; }
  .contenido-portada{ padding: 70px 0; }
}

.contacto-page{
    text-align:center;
    padding:60px 20px;
}

.subtitulo{
    color:#777;
    margin-bottom:40px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:30px;
}

.contact-card{
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
    color: #070b14;
}

.contact-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

.contact-card h3{
    margin-bottom:10px;
}

.contact-card a{
    display:inline-block;
    margin-top:10px;
    color:#1e73be;
    font-weight:bold;
    text-decoration:none;
}

.contact-card a:hover{
    text-decoration:underline;
}
.barra-contacto img,
.barra img{
    height: 60px;
    width: auto;
}

