/* COEM - Estilos principales (Azul / Gris / Verde) */
:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --soft:#f6f8fb;

  --blue:#0b5cab;
  --green:#16a34a;
  --gray:#64748b;

  --shadow: 0 10px 30px rgba(2,6,23,.10);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

a{color:inherit}
img{max-width:100%; display:block}

.container{
  width:min(1120px, 92vw);
  margin-inline:auto;
}

.skip{
  position:absolute;
  left:-999px;
  top:10px;
  background:#000;
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}
.skip:focus{left:10px}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}
.brand-mark{
  width:52px; height:52px;
  border-radius:16px;
  display:grid; place-items:center;
  color:white;
  font-weight:800;
  letter-spacing:.5px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: var(--shadow);
}
.brand-name{font-weight:900; letter-spacing:.5px}
.brand-tagline{color:var(--muted); font-size:.88rem}

.nav{
  display:flex;
  gap:14px;
  flex:1;
  justify-content:center;
}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  font-size:.95rem;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{background:var(--soft); color:var(--text)}

.header-cta{display:flex; gap:10px}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:white;
  border-radius:14px;
  padding:10px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  margin:5px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  border:1px solid transparent;
}
.btn-primary{
  background: linear-gradient(135deg, var(--blue), var(--green));
  color:#fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover{filter:brightness(0.98)}
.btn-ghost{
  background:#fff;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{background:var(--soft)}

.hero{
  padding:46px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight:700;
  width:fit-content;
}
.hero h1{
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height:1.05;
  margin:12px 0 10px;
  letter-spacing:.2px;
}
.hero-subtitle{
  color: var(--muted);
  font-size:1.05rem;
  margin:0 0 16px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.hero-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.mini-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px 14px;
  background:#fff;
}
.mini-card h3{margin:0 0 6px; font-size:1rem}
.mini-card p{margin:0; color:var(--muted); font-size:.92rem}

.hero-visual{
  position:relative;
  border-radius: 26px;
  padding:18px;
  background: radial-gradient(1200px 500px at 20% 0%, rgba(11,92,171,.12), transparent 55%),
              radial-gradient(1200px 500px at 90% 40%, rgba(22,163,74,.10), transparent 55%),
              #fff;
  border:1px solid var(--line);
  overflow:hidden;
}
.hero-photo-stack{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
  align-items:stretch;
}
.hero-photo-stack img{
  border-radius: 18px;
  height: 210px;
  object-fit: cover;
  width:100%;
  box-shadow: var(--shadow);
}
.hero-photo-stack img:nth-child(1){grid-column: 1 / 8;}
.hero-photo-stack img:nth-child(2){grid-column: 8 / 13; height: 160px;}
.hero-photo-stack img:nth-child(3){grid-column: 5 / 13; height: 180px; margin-top:-18px;}

.hero-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px 14px;
  box-shadow: var(--shadow);
}
.hero-badge-title{font-weight:900}
.hero-badge-sub{color:var(--muted); font-weight:800; font-size:.92rem}

.section{padding:54px 0}
.section.soft{background: var(--soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-head h2{margin:0; font-size:1.8rem}
.section-head p{margin:0; color:var(--muted); max-width: 520px}

.grid{display:grid; gap:14px}
.cards-3{grid-template-columns: repeat(3, 1fr)}
.cards-2{grid-template-columns: repeat(2, 1fr)}
.mt-24{margin-top:24px}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px 18px;
  background:#fff;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.card h3{margin:0 0 10px}
.card ul{margin:0; padding-left:18px; color:var(--muted)}
.card li{margin:6px 0}
.card p{margin:0; color:var(--muted)}
.card.accent{
  background: linear-gradient(180deg, rgba(11,92,171,.08), rgba(22,163,74,.05));
}
.cols{columns: 2; column-gap: 22px}
.muted{color:var(--muted)}

.badges{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.badge{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 999px;
  padding:12px 14px;
  font-weight:900;
  text-align:center;
}

.chips{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  color: var(--text);
}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.gitem{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.gitem img{
  height: 210px;
  width:100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gitem:hover img{transform: scale(1.03)}
.gallery .gitem:nth-child(1){grid-column:1 / 5}
.gallery .gitem:nth-child(2){grid-column:5 / 9}
.gallery .gitem:nth-child(3){grid-column:9 / 13}
.gallery .gitem:nth-child(4){grid-column:1 / 7}
.gallery .gitem:nth-child(5){grid-column:7 / 13}
.gallery .gitem:nth-child(6){grid-column:1 / 7}
.gallery .gitem:nth-child(7){grid-column:7 / 13}

.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
}
.contact-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  margin-top:12px;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
}
.contact-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed var(--line);
}
.contact-row:last-child{border-bottom:0}
.label{color:var(--muted); font-weight:800}
.value{font-weight:900; text-decoration:none}
.contact-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

.info-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
  margin-bottom:14px;
}
.info-box h3{margin:0 0 8px}

.site-footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background:#fff;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.footer-title{font-weight:900}
.footer-sub{color:var(--muted)}
.footer-meta{display:flex; gap:16px; flex-wrap:wrap; color:var(--muted); font-weight:800}
.footer-meta a{color:var(--blue); text-decoration:none}
.footer-meta a:hover{text-decoration:underline}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  z-index:999;
}
.lightbox.open{display:flex}
.lightbox-img{
  max-width:min(1100px, 95vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.lightbox-close{
  position:absolute;
  top:16px;
  right:16px;
  width:46px;
  height:46px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size: 30px;
  line-height: 1;
  cursor:pointer;
}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .nav-toggle{display:inline-block}
  .hero-grid{grid-template-columns: 1fr}
  .hero-cards{grid-template-columns: 1fr; }
  .cards-3{grid-template-columns:1fr}
  .cards-2{grid-template-columns:1fr}
  .badges{grid-template-columns:1fr 1fr}
  .chips{grid-template-columns:1fr 1fr}
  .contact{grid-template-columns:1fr}
  .cols{columns:1}
  .hero-photo-stack img{height: 190px}
  .gallery{grid-template-columns:1fr 1fr}
  .gallery .gitem{grid-column:auto !important}
  .gitem img{height: 180px}
  .footer-inner{flex-direction:column}
}
