/* =========================
   DIMAR - STYLE CSS PREMIUM
   Bootstrap 5
========================= */

:root {
  --dimar-primary: #0b4f9c;
  --dimar-primary-dark: #083b74;
  --dimar-secondary: #1565b0;
  --dimar-accent: #f2c318;
  --dimar-accent-hover: #dba900;

  --dimar-dark: #071f3d;
  --dimar-text: #1f2f3f;
  --dimar-text-soft: #607086;

  --dimar-white: #ffffff;
  --dimar-light: #f4f8fc;
  --dimar-light-2: #edf3f9;
  --dimar-border: #dbe5f0;

  --dimar-shadow-sm: 0 8px 20px rgba(11, 79, 156, 0.08);
  --dimar-shadow-md: 0 14px 30px rgba(11, 79, 156, 0.12);
  --dimar-shadow-lg: 0 20px 40px rgba(11, 79, 156, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--dimar-text);
  background: var(--dimar-white);
  line-height: 1.6;
}

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

section[id] {
  scroll-margin-top: 110px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  background: var(--dimar-primary-dark);
  color: var(--dimar-white);
  font-size: 0.95rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-item i {
  color: var(--dimar-accent);
}

/* =========================
   HEADER / NAVBAR
========================= */

.main-header .navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf2f7;
  box-shadow: 0 4px 14px rgba(8, 59, 116, 0.04);
}

.logo-img {
  height: 90px;
  width: auto;
  max-width: none;
}

.navbar-nav .nav-link {
  color: var(--dimar-primary-dark);
  margin: 0 0.45rem;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--dimar-accent);
}

/* =========================
   BUTTONS
========================= */

.btn-dimar {
  background: var(--dimar-accent);
  color: var(--dimar-primary-dark);
  font-weight: 800;
  border-radius: 0.7rem;
  border: none;
  padding: 0.85rem 1.45rem;
  transition: 0.25s ease;
  box-shadow: 0 8px 16px rgba(242, 195, 24, 0.22);
}

.btn-dimar:hover,
.btn-dimar:focus,
.btn-dimar:active {
  background: var(--dimar-accent-hover);
  color: var(--dimar-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(219, 169, 0, 0.28);
}

/* =========================
   HERO SECTION
========================= */

.hero-section .carousel-item,
.hero-slide {
  height: 700px;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 31, 61, 0.88) 0%,
    rgba(7, 31, 61, 0.72) 38%,
    rgba(7, 31, 61, 0.18) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.text-lg-end .hero-content {
  margin-left: auto;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--dimar-white);
}

.hero-title span {
  color: var(--dimar-accent);
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 95%;
  color: rgba(255, 255, 255, 0.92);
}

.text-lg-end .hero-text {
  margin-left: auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 7%;
}

.custom-arrow {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-item.active .hero-zoom {
  animation: heroZoom 6s ease-in-out forwards;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-animate-left {
  opacity: 0;
  transform: translateX(-35px);
}

.carousel-item.active .hero-animate-left {
  animation: heroFadeLeft 0.9s ease forwards;
  animation-delay: 0.35s;
}

@keyframes heroFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-35px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-animate-right {
  opacity: 0;
  transform: translateX(35px);
}

.carousel-item.active .hero-animate-right {
  animation: heroFadeRight 0.9s ease forwards;
  animation-delay: 0.35s;
}

@keyframes heroFadeRight {
  0% {
    opacity: 0;
    transform: translateX(35px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================
   GLOBAL SECTIONS
========================= */

.section-title {
  color: var(--dimar-primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.4px;
}

.section-title span {
  color: var(--dimar-accent);
}

.section-subtitle {
  color: var(--dimar-white);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-subtitle_nosotros {
  color: var(--dimar-text-soft);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* =========================
   QUICK SERVICES
========================= */

.quick-services {
  background: var(--dimar-white);
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}

.service-card,
.service-detail-card,
.contact-box,
.form-box,
.contact-bottom-box,
.mini-box {
  border-radius: 1rem;
}

.service-card {
  padding: 1rem;
  background: var(--dimar-white);
  border: 1px solid var(--dimar-border);
  box-shadow: var(--dimar-shadow-sm);
  transition: all 0.3s ease;
}

.service-card:hover,
.service-detail-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-inline: auto;
}

.service-title {
  color: var(--dimar-primary-dark);
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0;
}

/* =========================
   CLIENTS SECTION
========================= */

.clients-section {
  background: var(--dimar-light);
  border-top: 1px solid var(--dimar-border);
  border-bottom: 1px solid var(--dimar-border);
}

.client-logo {
  max-height: 52px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0.9;
  transition: 0.25s ease;
  filter: grayscale(10%);
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.about-image {
  border-radius: 18px;
  box-shadow: var(--dimar-shadow-md);
  transition: all 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

.mini-box {
  background: var(--dimar-white);
  border: 1px solid var(--dimar-border);
  padding: 30px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(11, 79, 156, 0.08);
  transition: all 0.3s ease;
}

.mini-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 79, 156, 0.12);
}

.mini-box h4 {
  color: var(--dimar-primary-dark);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* =========================
   MISION VISION VALORES
========================= */

.icon-mvv {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.mini-box-mvv {
  position: relative;
  padding: 34px 24px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e6edf6;
  box-shadow: 0 10px 24px rgba(11, 79, 156, 0.08);
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
}

.mini-box-mvv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--dimar-primary) 0%,
    var(--dimar-secondary) 55%,
    var(--dimar-accent) 100%
  );
}

.mini-box-mvv:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(11, 79, 156, 0.14);
}

.icon-mvv-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #eef5fc);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(11, 79, 156, 0.1);
  border: 1px solid #e3ebf5;
  transition: all 0.35s ease;
}

.mini-box-mvv:hover .icon-mvv-wrap {
  transform: scale(1.05);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(11, 79, 156, 0.16);
}

.mini-box-mvv h4 {
  color: var(--dimar-primary-dark);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.mini-box-mvv p {
  color: var(--dimar-text-soft);
  margin-bottom: 0;
  line-height: 1.75;
  font-size: 0.97rem;
}

/* =========================
   SERVICES SECTION
========================= */

.services-section {
  background: linear-gradient(
    180deg,
    var(--dimar-light) 0%,
    var(--dimar-light-2) 100%
  );
}

.service-card-premium {
  position: relative;
  padding: 34px 24px 30px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e7eef7;
  box-shadow: 0 10px 24px rgba(11, 79, 156, 0.08);
  transition: all 0.35s ease;
  overflow: hidden;
  height: 100%;
}

.service-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--dimar-primary) 0%,
    var(--dimar-secondary) 55%,
    var(--dimar-accent) 100%
  );
}

.service-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: var(--dimar-shadow-lg);
}

.icon-service-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #eef4fb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(11, 79, 156, 0.1);
  border: 1px solid #e3ebf5;
  transition: all 0.35s ease;
}

.service-card-premium:hover .icon-service-wrap {
  transform: scale(1.05);
}

.service-card-premium .service-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.service-card-premium .service-title {
  color: var(--dimar-primary-dark);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card-premium p {
  color: var(--dimar-text-soft);
  line-height: 1.75;
  font-size: 0.97rem;
  margin-bottom: 0;
}

.service-detail-card .card-body {
  padding: 2rem 1.4rem;
  text-align: center;
}

/* =========================
   ADVANTAGES SECTION
========================= */

.advantages-section {
  background:
    linear-gradient(rgba(0, 40, 85, 0.92), rgba(0, 40, 85, 0.92)),
    url("../images/backgrounds/bg-pattern.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.advantages-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
}

.advantages-section .container {
  position: relative;
  z-index: 2;
}

.advantages-section .advantage-card {
  height: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 30px 20px;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantages-section .advantage-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.advantages-section .icon-circle {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbf00, #f5a300);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.advantages-section .icon-circle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.advantages-section .icon-circle img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.advantages-section .advantage-card:hover .icon-circle {
  transform: translateY(-4px) scale(1.05);
}

.advantages-section .advantage-card:hover .icon-circle img {
  transform: scale(1.08);
}

.advantages-section .advantage-card h4 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.advantages-section .advantage-card p {
  color: #cfd8dc;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffc107;
}

.stat-card p {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 0;
}

/* =========================
   QUOTE SECTION
========================= */

.quote-section {
  background: var(--dimar-white);
}

.quote-info-box {
  background: linear-gradient(135deg, #0a3b74 0%, #0b4f9c 55%, #1565b0 100%);
  border-radius: 22px;
  padding: 38px 32px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 79, 156, 0.18);
  position: relative;
  overflow: hidden;
}

.quote-info-box::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.quote-badge {
  display: inline-block;
  background: rgba(242, 195, 24, 0.16);
  color: #ffe07a;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.quote-info-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.quote-info-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quote-feature-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.quote-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.quote-feature-item i {
  color: var(--dimar-accent);
  font-size: 1.15rem;
}

.quote-mini-card {
  background: #ffffff;
  color: var(--dimar-text);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.quote-mini-card h6 {
  color: var(--dimar-primary-dark);
  font-weight: 800;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  background: linear-gradient(180deg, #f4f8fc 0%, #edf3f9 100%);
}

.contact-box,
.contact-info-box,
.form-box,
.contact-bottom-box {
  background: #ffffff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(11, 79, 156, 0.08);
  border: 1px solid #e6edf6;
}

.contact-info-box {
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon-circle {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.contact-icon-circle i {
  color: #ffffff;
}

.contact-item h6 {
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dimar-primary-dark);
}

.contact-item p {
  margin: 0;
  color: var(--dimar-text-soft);
}

.map-image {
  width: 100%;
  border-radius: 1rem;
}

.map-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(11, 79, 156, 0.12);
  border: 1px solid #e6edf6;
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* =========================
   FORMS
========================= */

.form-control,
.form-select {
  border-radius: 0.75rem;
  padding: 0.82rem 1rem;
  border: 1px solid #d8e2ed;
  color: var(--dimar-text);
  background: #ffffff;
}

.form-control::placeholder {
  color: #97a6b6;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dimar-accent);
  box-shadow: 0 0 0 0.2rem rgba(242, 195, 24, 0.16);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: var(--dimar-dark);
  color: #dfe8f7;
}

.footer-link {
  color: #dfe8f7;
  text-decoration: none;
  margin-left: 1rem;
  transition: 0.25s ease;
}

.footer-link:hover {
  color: var(--dimar-accent);
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  font-size: 1.9rem;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.06);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  section[id] {
    scroll-margin-top: 90px;
  }

  .hero-section .carousel-item,
  .hero-slide {
    height: 620px;
  }

  .quick-services {
    margin-top: 0;
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }

  .logo-img {
    height: 58px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .text-lg-end {
    text-align: left !important;
  }

  .text-lg-end .hero-content,
  .text-lg-end .hero-text {
    margin-left: 0;
  }

  .advantages-section .icon-circle {
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
  }

  .advantages-section .icon-circle img {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    display: none;
  }

  .hero-section .carousel-item,
  .hero-slide {
    height: 560px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-content {
    max-width: 100%;
  }

  .contact-box,
  .contact-info-box,
  .form-box,
  .contact-bottom-box {
    padding: 1.4rem;
  }

  .map-wrapper iframe {
    height: 320px;
  }

  .footer-link {
    display: inline-block;
    margin: 0.35rem 0.5rem 0;
  }

  .icon-mvv-wrap,
  .icon-service-wrap {
    width: 95px;
    height: 95px;
  }

  .icon-mvv,
  .service-card-premium .service-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 575.98px) {
  .hero-section .carousel-item,
  .hero-slide {
    height: 520px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn-dimar {
    width: 100%;
    text-align: center;
  }

  .advantages-section .icon-circle {
    width: 74px;
    height: 74px;
    min-width: 74px;
    min-height: 74px;
  }

  .advantages-section .icon-circle img {
    width: 40px;
    height: 40px;
  }

  .advantages-section .advantage-card h4 {
    font-size: 1.15rem;
  }

  .advantages-section .advantage-card p {
    font-size: 0.92rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }
}
