:root{
  --navy:#0b1a33;
  --navy-2:#112a52;
  --white:#ffffff;
  --ink:#0f172a;
  --muted:#5b6475;
  --line:rgba(15,23,42,.10);
  --card:rgba(255,255,255,.92);
  --shadow: 0 18px 40px rgba(0,0,0,.16);
  --radius:18px;
  --radius2:26px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: var(--white);
  overflow-x:hidden;
}

/* Fondo con imágenes + patrón */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(120deg, rgba(11,26,51,.92), rgba(11,26,51,.40)),
    url("assets/bg-hero.jpg");
  background-size: cover;
  background-position:center;
  filter:saturate(1.05);
}

/* Patrón con logo (si existe logo.png) */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background: url("logo.png") repeat;
  background-size: 220px auto;
  opacity:.05; /* súper transparente */
  mix-blend-mode:multiply;
}

/* Layout */
.container{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--navy);
  font-weight:800;
  letter-spacing:.3px;
}
.brand .logo{
  width:46px;
  height:46px;
  border-radius:14px;
  background: rgba(11,26,51,.06);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.brand .logo img{width:100%; height:100%; object-fit:contain; padding:6px}
.brand .name{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand .name small{font-weight:700; color:var(--muted)}

.menu{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end; /* alineado a la derecha */
  flex-wrap:wrap;
}
.menu a{
  text-decoration:none;
  color:var(--navy);
  font-weight:700;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.2s;
}
.menu a:hover{
  background: rgba(11,26,51,.06);
  border-color: rgba(11,26,51,.12);
}
.menu a.active{
  background: var(--navy);
  color: var(--white);
  border-color: rgba(11,26,51,.40);
}

/* Hero */
.hero{
  padding:64px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  border-radius: var(--radius2);
  padding:26px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(11,26,51,.08);
  color: var(--navy);
  font-weight:800;
  font-size:13px;
}
.h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--navy);
  letter-spacing:-.6px;
}
.lead{
  margin:0;
  color: var(--muted);
  font-size: 16.5px;
  line-height:1.65;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(11,26,51,.18);
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  transition:.2s;
}
.btn.primary{
  background: var(--navy);
  color: var(--white);
  border-color: rgba(11,26,51,.40);
}
.btn.primary:hover{transform: translateY(-1px)}
.btn.ghost{
  background: rgba(255,255,255,.70);
  color: var(--navy);
}
.btn.ghost:hover{background: rgba(11,26,51,.06)}

.hero-side{
  display:grid;
  gap:12px;
}
.mini{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  padding:18px;
}
.mini h3{
  margin:0 0 6px;
  color: var(--navy);
  font-size:16px;
}
.mini p{margin:0; color:var(--muted); line-height:1.6}
.mini .tag{
  margin-top:10px;
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(11,26,51,.08);
  color: var(--navy);
  font-weight:800;
  font-size:12px;
}

/* Secciones */
.section{
  padding: 26px 0;
}
.section .title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:12px;
}
.section h2{
  margin:0;
  color: var(--white);
  font-size: 26px;
  letter-spacing:-.3px;
}
.section .sub{
  margin:0;
  color: rgba(255,255,255,.80);
  line-height:1.6;
  max-width: 70ch;
}

.panel{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-pad{padding:18px}

/* Tarjetas y grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-4{grid-column: span 4;}
.col-6{grid-column: span 6;}
.col-8{grid-column: span 8;}
.col-12{grid-column: span 12;}

.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  padding:16px;
}
.card h3{margin:0 0 8px; color:var(--navy)}
.card p{margin:0; color:var(--muted); line-height:1.6}

.icon{
  width:42px;height:42px;
  border-radius:14px;
  background: rgba(11,26,51,.08);
  display:grid; place-items:center;
  border:1px solid rgba(11,26,51,.12);
  margin-bottom:10px;
  font-weight:900;
  color:var(--navy);
}

.hr{
  height:1px;
  background: rgba(15,23,42,.12);
  margin:14px 0;
}

/* Galerías */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.tile{
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background: #fff;
  min-height: 170px;
  position:relative;
}
.tile::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,26,51,.05), rgba(11,26,51,.45));
}
.tile img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.tile .caption{
  position:absolute;
  left:14px; right:14px; bottom:12px;
  color:#fff;
  font-weight:900;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.tile.small{grid-column: span 4;}
.tile.big{grid-column: span 8; min-height: 260px;}

/* Form */
.form{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:12px;
}
.field{grid-column: span 6;}
.field.full{grid-column: span 12;}
label{
  display:block;
  font-weight:800;
  color:var(--navy);
  margin-bottom:6px;
  font-size:13px;
}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.16);
  outline:none;
  background: rgba(255,255,255,.95);
  font: inherit;
}
textarea{min-height:130px; resize:vertical}
input:focus, textarea:focus{
  border-color: rgba(11,26,51,.55);
  box-shadow: 0 0 0 4px rgba(11,26,51,.08);
}
.form-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
}
.note{color:var(--muted); font-size:13px; line-height:1.6}

/* Footer */
.footer{
  margin-top: 30px;
  padding: 24px 0 34px;
  background: rgba(11,26,51,.95);
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
.footer a{color:#fff; font-weight:800; text-decoration:none}
.footer small{color:rgba(255,255,255,.70)}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-weight:800;
  font-size:12px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr;}
  .col-4,.col-6,.col-8{grid-column: span 12;}
  .tile.small,.tile.big{grid-column: span 12;}
  .footer-grid{grid-template-columns:1fr;}
  .field{grid-column: span 12;}
  body::after{background-size: 170px auto;}
}
