* {
  font-family: "Krub", sans-serif !important;
}

:root {
  /* Color System */
  --primary: #ffffff;
  --secondary: #333e66;
  --accent: #23aeba;

  /* Spacing variables for consistency */
  --logo-height: 120px;
  --logo-mobile-height: 100px;
  --hero-padding: 140px;
  --hero-mobile-padding: 120px;

  --bg-secondary: var(--secondary);
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

/* Background and button colors overrides Bootstrap defaults */
.bg-secondary {
  background-color: var(--bg-secondary) !important;
}

.btn.btn-info {
  background-color: var(--accent) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  :root {
    --logo-height: var(--logo-mobile-height);
    --hero-padding: var(--hero-mobile-padding);
  }
}

/*
----------------------------------------------------------
Hero Section Styling
----------------------------------------------------------
*/

/* Logo positioning - Fixed */
.logo-header {
  position: absolute;
  top: 20px;
  z-index: 10;
  height: var(--logo-height);
  max-width: calc(90vw - 40px);
  /* Prevent overflow */
}

.logo-header img {
  height: var(--logo-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Mejor control de la imagen */
}

/* Hero content positioning */
.hero-content {
  padding-top: var(--hero-padding);
}

/* Hero background - Mejorado */
.hero-bg {
  background: url("../../public/images/hero-background/example.webp")
    center/cover no-repeat;
  min-height: 80vh;
  max-height: 100vh;
  position: relative;
  background-attachment: fixed;
  /* Efecto parallax ligero */
}

/* Fallback para dispositivos móviles donde fixed puede causar problemas */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

/*
----------------------------------------------------------
Services Section Styling
----------------------------------------------------------
*/

/* Service sections */
.service-section {
  margin-bottom: 5rem;
}

.service-image {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Efecto hover suave */
}

.service-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Custom list styling */
.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
  /* Mejor legibilidad */
}

.service-list li:before {
  content: "–";
  /* Usar em-dash en lugar de guión */
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Text highlighting */
.highlight-text {
  color: var(--secondary);
  font-weight: 600;
}

/* Mejora de accesibilidad - Focus visible */
.service-image:focus,
.logo-header:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Loading states - opcional */
.service-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/*
----------------------------------------------------------
Gallery Section Styling
----------------------------------------------------------
*/

.gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 200px;
  }
}

/* 
----------------------------------------------------------
Separator Section Styling
----------------------------------------------------------
*/

.separator {
  background: url("../../public/images/utils/separator.webp") center/cover
    no-repeat;
  height: 200px;
  position: relative;
}

/*
----------------------------------------------------------
Footer Section Styling
----------------------------------------------------------
*/

.footer-img-bg {
  background: url("../../public/images/footer-background/ocean.webp")
    center/cover no-repeat;
  min-height: 200px;
  max-height: 300px;
  position: relative;
}

.logo-footer {
  height: var(--logo-height);
}

.logo-footer img {
  height: var(--logo-height);
  width: auto;
}

@media (max-width: 768px) {
  .logo-footer {
    text-align: center !important;
  }
}
