:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f4fb;
  --text: #172033;
  --muted: #5e667a;
  --line: rgba(23, 32, 51, 0.08);
  --primary: #263d9b;
  --primary-dark: #1a2d74;
  --accent: #6c63ff;
  --shadow: 0 20px 50px rgba(20, 28, 58, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--muted); }
h1, h2, h3, strong { color: var(--text); margin-top: 0; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 249, 252, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1rem;
}

.brand img {
  height: 54px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  font-size: 0.98rem;
  color: var(--text);
}
.site-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 999px;
}

.section {
  padding: 5.5rem 0;
}
.section-soft {
  background: var(--surface-soft);
}

.hero {
  overflow: clip;
  padding-top: 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1,
.section-head h2,
.story-copy h2,
.booking-copy h2,
.products-copy h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.15rem;
}
.hero .lead,
.section-head p,
.story-copy p,
.booking-copy p,
.products-copy p,
.contact-copy p {
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0;
}
.hero-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.hero-points li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  flex: 0 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 12px 30px rgba(38, 61, 155, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(38, 61, 155, 0.28); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-sm { padding: 0.8rem 1.15rem; }
.btn-full { width: 100%; }

.hero-visual {
  position: relative;
  min-height: 640px;
}
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card-large {
  inset: 5% 0 0 10%;
  height: 84%;
}
.hero-card-small {
  width: 38%;
  height: 48%;
}
.hero-card-small.top {
  top: 0;
  left: 0;
}
.hero-card-small.bottom {
  right: 6%;
  bottom: 0;
}

.trust-grid,
.services-grid,
.team-grid,
.products-grid,
.contact-grid,
.story-grid,
.booking-layout {
  display: grid;
  gap: 1.4rem;
}
.trust-grid {
  grid-template-columns: repeat(4, 1fr);
}
.trust-card,
.service-card,
.team-card,
.policy-card,
.contact-card,
.note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-card,
.service-card,
.policy-card,
.contact-card {
  padding: 1.6rem;
}
.trust-card strong,
.service-card h3,
.policy-card h3,
.contact-card h3 { font-size: 1.15rem; }

.section-head {
  max-width: 760px;
  margin-bottom: 2.2rem;
}
.section-head h2 { font-size: clamp(2rem, 3vw, 3.5rem); }

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(38,61,155,0.12), rgba(108,99,255,0.16));
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}
.service-card ul {
  margin: 0;
  padding-left: 1rem;
}
.service-card li + li { margin-top: 0.55rem; }

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}
.team-card {
  overflow: hidden;
}
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.team-copy {
  padding: 1.45rem;
}
.role {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.muted { color: var(--muted); font-size: 0.96rem; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1rem;
}
.showcase-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 260px;
  cursor: zoom-in;
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.showcase-item:hover img { transform: scale(1.03); }
.showcase-item-large {
  grid-row: span 2;
  min-height: 560px;
}

.story-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}
.story-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 1rem;
}
.story-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-stack img:first-child {
  grid-row: span 2;
}

.booking-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}
.steps {
  margin: 1.4rem 0 0;
  padding-left: 1.15rem;
}
.steps li { margin-bottom: 0.7rem; }
.note-box {
  padding: 1.25rem 1.3rem;
  margin-top: 1.4rem;
}
.policy-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
}
.policy-list li + li { margin-top: 0.75rem; }

.products-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.3rem 0 1.6rem;
}
.product-tags span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(38, 61, 155, 0.08);
  color: var(--primary);
  font-weight: 700;
}
.products-photo img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  grid-template-columns: 1fr 0.85fr;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.7rem;
}
.label {
  display: block;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.contact-card ul {
  padding-left: 1rem;
  margin: 0 0 1.5rem;
}
.contact-card li + li { margin-top: 0.75rem; }

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-wrap img { height: 44px; width: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 25, 0.86);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 60;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.7rem;
  cursor: pointer;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .booking-layout,
  .products-grid,
  .contact-grid,
  .team-grid,
  .services-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid article:last-child,
  .services-grid article:last-child,
  .trust-grid > *:last-child {
    grid-column: span 2;
  }
  .hero-visual { min-height: 540px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-item-large { grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hero-grid,
  .story-grid,
  .booking-layout,
  .products-grid,
  .contact-grid,
  .team-grid,
  .services-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .team-grid article:last-child,
  .services-grid article:last-child,
  .trust-grid > *:last-child { grid-column: auto; }
  .hero-visual {
    order: -1;
    min-height: 420px;
  }
  .hero-card-large { inset: 6% 0 0 0; }
  .hero-card-small { width: 40%; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-item-large { grid-column: auto; min-height: 320px; }
  .story-stack { grid-template-columns: 1fr; grid-template-rows: auto; }
  .story-stack img:first-child { grid-row: auto; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .announcement-bar { font-size: 0.8rem; }
  .nav-wrap { min-height: 76px; }
  .brand img { height: 46px; }
  .section { padding: 4rem 0; }
  .hero { padding-top: 2.4rem; }
  .hero-visual { min-height: 340px; }
  .hero-card-small { height: 44%; }
  .trust-card,
  .service-card,
  .policy-card,
  .contact-card,
  .team-copy { padding: 1.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}


/* ===== BLOQUES FUSIONADOS DESDE LA OTRA VERSIÓN ===== */
.certifications-layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:32px;
  align-items:start;
}
.cert-list{
  display:grid;
  gap:14px;
  margin-top:20px;
}
.cert-item{
  background:#ffffff;
  border:1px solid rgba(15, 23, 42, 0.08);
  border-radius:20px;
  padding:18px 20px;
  box-shadow:0 18px 40px rgba(15, 23, 42, 0.06);
}
.cert-item strong{
  display:block;
  margin-bottom:6px;
}
.cert-item p{
  margin:0;
  color:#475467;
}
.certifications-gallery{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}
.cert-photo{
  margin:0;
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15, 23, 42, 0.08);
}
.cert-photo img{
  width:100%;
  height:100%;
  min-height:220px;
  object-fit:cover;
  display:block;
}

@media (max-width: 991px){
  .certifications-layout{
    grid-template-columns:1fr;
  }
}
