:root {
  --opas-navy: #071d32;
  --opas-blue: #0878c9;
  --opas-cyan: #24b9d7;
  --opas-ink: #172432;
  --opas-muted: #607080;
  --opas-surface: #f4f8fb;
  --opas-white: #fff;
}

html { scroll-behavior: smooth; }

body {
  color: var(--opas-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  background: var(--opas-white);
}

h1, h2, h3, h4, h5, h6 { text-transform: none; letter-spacing: -.02em; }
p { line-height: 1.75; }

.st-navbar {
  background: rgba(255,255,255,.96);
  border: 0;
  box-shadow: 0 8px 30px rgba(7,29,50,.08);
  backdrop-filter: blur(12px);
}

#header .navbar { min-height: 76px; }
.st-navbar .navbar-header { margin-top: 18px; }
.logo img { width: 190px; height: auto; }
.st-navbar ul { margin-top: 12px; }
.st-navbar ul li a { color: var(--opas-navy); font-size: 13px; letter-spacing: .07em; margin: 14px 16px; }
.st-navbar ul li a:hover, .st-navbar ul li a:focus { color: var(--opas-blue); }

#slider { margin-top: 76px; }
#home-carousel .item { min-height: 620px; background-position: center; background-size: cover; }
#home-carousel .item:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,21,37,.9) 0%, rgba(4,21,37,.62) 48%, rgba(4,21,37,.12) 100%);
}
.carousel-caption { top: 50%; bottom: auto; transform: translateY(-50%); text-align: left; }
.carousel-caption h1 { font-size: 54px; line-height: 1.05; margin: 0 0 8px; }
.carousel-caption h1 a, .carousel-caption p a { color: #fff; }
.carousel-caption h2 { color: var(--opas-cyan); font-size: 32px; line-height: 1.2; margin: 0 0 20px; text-transform: none; }
.carousel-caption p { max-width: 650px; font-size: 18px; color: rgba(255,255,255,.9); }
.hero-cta, .hero-cta:hover, .hero-cta:focus {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--opas-blue);
  color: #fff;
  font-weight: 700;
}
.hero-cta i { margin-left: 8px; }

.bg-primary { background: var(--opas-navy); padding: 88px 0; }
.bg-primary .section-heading { color: #fff; font-size: 36px; }
.bg-primary .text-faded { color: rgba(255,255,255,.78); font-size: 17px; }
.btn { border-radius: 8px; font-weight: 700; letter-spacing: .02em; padding: 12px 22px; }
.btn-default { color: var(--opas-navy); border: 0; }
.btn-send { background: var(--opas-blue); border-radius: 8px; padding: 12px 22px; }
.btn-send:hover, .btn-send:focus { background: #0563a7; }

#services, #portfolio, #contact { padding: 96px 0; }
.section-title { margin-bottom: 55px; }
.section-title h1, .section-heading { color: var(--opas-navy); font-size: 40px; }
.st-border { width: 54px; height: 4px; border-radius: 2px; background: var(--opas-cyan); margin-top: 14px; }
.st-service { min-height: 200px; margin: 0 0 28px; padding: 30px; border: 1px solid #e3ebf1; border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgba(7,29,50,.06); }
.st-service h2 { color: var(--opas-navy); font-size: 19px; line-height: 1.35; }
.st-service h2 i { color: var(--opas-blue); margin-right: 8px; }
.st-service p { color: var(--opas-muted); }

#portfolio { background: var(--opas-surface); }
.section-subheading { margin-bottom: 45px; }
.portfolio-item { margin-bottom: 30px; }
.portfolio-item .portfolio-link { overflow: hidden; border-radius: 14px 14px 0 0; background: #dce7ef; }
.portfolio-item .portfolio-link img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease; }
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-caption { min-height: 140px; padding: 24px !important; border-radius: 0 0 14px 14px; box-shadow: 0 12px 30px rgba(7,29,50,.07); }
.portfolio-caption h4 { color: var(--opas-navy); font-size: 20px; }

#about-us { background: var(--opas-navy); }
#about-us .about-us { background: transparent; padding-top: 13%; }
#about-us .about-us h4 { color: #fff; font-size: 28px; }
#about-us .about-us p { color: rgba(255,255,255,.75); }

#contact { background: #fff; }
.contact-info p { color: var(--opas-muted); }
.contact-info i { width: 24px; color: var(--opas-blue); }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: var(--opas-surface);
  color: var(--opas-ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--opas-blue); box-shadow: 0 0 0 3px rgba(8,120,201,.12); }
.contact-form input[type="submit"] { width: auto; border: 0; background: var(--opas-blue); color: #fff; }

#footer { padding: 30px 0; background: #041525; color: rgba(255,255,255,.72); }
#footer a { color: #fff; }
.footer-social-icons { text-align: right; }

@media (max-width: 767px) {
  .navbar-nav { background: #fff; padding: 12px 0 18px; }
  .logo img { width: 165px; }
  #home-carousel .item { min-height: 520px; }
  .carousel-caption { top: 46%; }
  .carousel-caption h1 { font-size: 34px; }
  .carousel-caption h2 { font-size: 22px; }
  .carousel-caption p { font-size: 15px; }
  #services, #portfolio, #contact { padding: 70px 0; }
  .section-title h1, .section-heading { font-size: 32px; }
  .st-service { min-height: 0; margin-top: 0; }
  .footer-social-icons, .copyright { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

.project-page { padding-top: 105px; background: var(--opas-surface); }
.project-page .page-header { color: var(--opas-navy); font-size: 42px; border: 0; margin-bottom: 12px; }
.project-page .breadcrumb { background: transparent; padding-left: 0; }
.project-page content { display: block; max-width: 900px; color: var(--opas-muted); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.project-page .img-thumbnail { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 0; border-radius: 12px; padding: 0; margin-bottom: 28px; box-shadow: 0 10px 30px rgba(7,29,50,.1); }

.cases-page { background: var(--opas-surface); }
.cases-hero {
  margin-top: 76px;
  padding: 105px 0 90px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(4,21,37,.96), rgba(7,52,84,.88)),
    url("../fotos/casos-exito-2026/el-abra-sitio.jpg") center 52%/cover;
}
.eyebrow { display: block; margin-bottom: 12px; color: var(--opas-cyan); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cases-hero h1 { margin: 0 0 20px; color: #fff; font-size: 58px; }
.cases-hero p { max-width: 780px; margin: 0; color: rgba(255,255,255,.82); font-size: 19px; }
.cases-list { padding: 90px 0 55px; }
.case-study {
  display: flex;
  align-items: stretch;
  min-height: 480px;
  margin-bottom: 70px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(7,29,50,.1);
}
.case-reverse { flex-direction: row-reverse; }
.case-gallery { position: relative; flex: 0 0 52%; min-height: 480px; background: #d9e4eb; }
.case-gallery img { position: absolute; width: 70%; height: 78%; object-fit: cover; }
.case-gallery img:first-child { left: 0; top: 0; }
.case-gallery img:last-child { right: 0; bottom: 0; border: 8px solid #fff; }
.case-content { flex: 1; padding: 55px 50px; }
.case-sector { color: var(--opas-blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-content h2 { margin: 12px 0 8px; color: var(--opas-navy); font-size: 31px; line-height: 1.2; }
.case-client { margin-bottom: 22px; color: var(--opas-muted); font-weight: 700; }
.case-content > p:not(.case-client) { color: var(--opas-muted); }
.case-content ul { margin: 22px 0 0; padding: 0; list-style: none; }
.case-content li { position: relative; margin-bottom: 10px; padding-left: 25px; color: #40505f; line-height: 1.55; }
.case-content li:before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--opas-blue); font-weight: 700; }
.cases-cta { padding: 65px 0; color: #fff; background: var(--opas-navy); }
.cases-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cases-cta h2 { margin: 0; color: #fff; font-size: 34px; }
.cases-cta .btn { flex: 0 0 auto; }

@media (max-width: 991px) {
  .case-study, .case-reverse { flex-direction: column; }
  .case-gallery { flex: none; min-height: 420px; }
}

@media (max-width: 767px) {
  .cases-hero { margin-top: 76px; padding: 75px 0 65px; }
  .cases-hero h1 { font-size: 40px; }
  .cases-hero p { font-size: 16px; }
  .cases-list { padding: 55px 0 25px; }
  .case-study { min-height: 0; margin-bottom: 40px; border-radius: 14px; }
  .case-gallery { min-height: 300px; }
  .case-content { padding: 35px 26px; }
  .case-content h2 { font-size: 26px; }
  .cases-cta .container { display: block; }
  .cases-cta h2 { margin-bottom: 25px; font-size: 28px; }
}
