/**
 * NOVADERM - UX/UI Enhancements
 * Mejoras de experiencia de usuario y accesibilidad
 */

/* ==================== MEJORAS GENERALES ==================== */

/* Suavizar scroll y mejorar animaciones */
html {
  scroll-behavior: smooth;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mejorar focus para accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #5c986a;
  outline-offset: 3px;
  transition: outline-offset 0.2s ease;
}

/* ==================== TIPOGRAFÍA Y LEGIBILIDAD ==================== */

/* Mejorar legibilidad de párrafos */
p {
  line-height: 1.7;
  color: #4a4a4a;
}

.big {
  line-height: 1.8;
  color: #3a3a3a;
  font-size: 17px;
}

/* Subtítulos más legibles */
.subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 32px;
  font-weight: 400;
}

/* ==================== SECCIONES Y ESPACIADO ==================== */

/* Mejorar espaciado entre rows */
.row-30 {
  margin-top: -15px;
  margin-bottom: -15px;
}

.row-30 > [class*="col"] {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* ==================== ICONOS Y ELEMENTOS VISUALES ==================== */

/* Mejorar iconos con transiciones suaves */
.icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon:hover {
  transform: scale(1.1);
}

/* ==================== CARDS Y CONTENEDORES ==================== */

/* Sombras consistentes y suaves */
.card,
.light-box,
.product-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==================== LISTAS Y CONTENIDO ==================== */

/* Mejorar listas marcadas */
.list-marked > li {
  padding-left: 28px;
  position: relative;
  line-height: 1.8;
  margin-bottom: 12px;
}

.list-marked > li:before {
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5c986a;
}

/* ==================== ANIMACIONES DE ENTRADA ==================== */

/* Fade in para secciones */
section {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 767px) {
  /* Mejorar espaciado en móvil */
  .section-lg {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  /* Texto más grande en móvil para legibilidad */
  body {
    font-size: 16px;
  }
  
  p {
    font-size: 15px;
    line-height: 1.7;
  }
  
  /* Botones más accesibles en móvil */
  .button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==================== OPTIMIZACIONES DE CONTACTO ==================== */

/* Mejorar lista de contacto */
.contact-list li {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #4a4a4a;
}

.contact-list a {
  color: #5c986a;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: #4d8059;
  text-decoration: underline;
}

/* ==================== MEJORAS DE FOOTER ==================== */

.page-footer-default {
  line-height: 1.7;
}

.page-footer-default h1 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.page-footer-default .list-marked > li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-footer-default .list-marked a {
  transition: all 0.3s ease;
  display: inline-block;
}

.page-footer-default .list-marked a:hover {
  transform: translateX(4px);
}

/* ==================== OPTIMIZACIONES DE BOTONES ==================== */

/* Todos los botones más accesibles */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.button:active {
  transform: scale(0.98);
}

/* ==================== MEJORAS DE CONTRASTE ==================== */

/* Asegurar contraste adecuado en textos */
.context-dark .big,
.context-dark p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.context-dark h1,
.context-dark h2,
.context-dark h3,
.context-dark h4,
.context-dark h5 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Mejorar overlay de imágenes de fondo para mejor legibilidad */
.bg-image-19.bg-mask:before {
  background: rgba(0, 0, 0, 0.65) !important;
}

@media (min-width: 768px) {
  .bg-image-19.bg-mask:before {
    display: block !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%) !important;
  }
}

/* Mejorar lista de items en contextos oscuros */
.context-dark .list-marked > li {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.context-dark .list-marked > li:before {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==================== HOVER STATES MEJORADOS ==================== */

/* Links más claros */
a {
  transition: all 0.3s ease;
}

a:not(.button):hover {
  opacity: 0.85;
}

/* ==================== LOADING Y ESTADOS ==================== */

/* Mejorar preloader */
.page-loader {
  backdrop-filter: blur(4px);
}

/* ==================== ACCESIBILIDAD DE IMÁGENES ==================== */

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

/* ==================== GRID GAPS CONSISTENTES ==================== */

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.row > [class*="col"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* ==================== OPTIMIZACIÓN DE COPYRIGHT ==================== */

.copyright {
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.copyright a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.copyright a:hover {
  color: #ffffff;
}

/* ==================== ESTILOS ESPECÍFICOS DE SECCIONES ==================== */

/* Sección de Cuidado Experto - Alineación izquierda */
.bg-image-19 .col-md-7.col-lg-6 {
  text-align: left;
}

/* Sección de Compromiso con Calidad - Justificado */
.bg-image-17 .big {
  text-align: justify;
}

/* Botón de productos - Espaciado superior */
.bg-image-17 .col-md-6:last-child {
  padding-top: 300px;
}

/* Espaciado para íconos de redes sociales en footer */
.page-footer-default .list-inline-sm li {
  margin-right: 15px;
}

.page-footer-default .list-inline-sm li:last-child {
  margin-right: 0;
}

/* ==================== MEJORAS DE ACCESIBILIDAD ==================== */

/* Mejorar contraste en enlaces de footer */
.page-footer-default .list-marked a {
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-footer-default .list-marked a:hover,
.page-footer-default .list-marked a:focus {
  text-decoration: underline;
  color: #ffffff;
}

/* ==================== AJUSTE DE MARCA 3 ==================== */

img[alt="Marca 3"] {
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

img[alt="Marca 4"] {
  max-height: 120px;
  width: auto;
  height: auto;
}

img[alt="Marca 5"] {
  max-height: 160px;
  width: auto;
  height: auto;
}

img[alt="Marca 5"] {
  max-height: 160px;
  width: auto;
  height: auto;
}
/* ==================== GALERÍA LOCAL (SIN FLICKR API) ==================== */

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -4px;
  margin-right: -4px;
  transform: translateY(-4px);
}

.gallery-grid .gallery-item {
  display: inline-block;
  max-width: 33.333%;
  flex-basis: 33.333%;
  padding-left: 2px;
  padding-right: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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