/* Estilos corporativos de Cascos Fresh - Basado en Manual de Identidad DREC */

:root {
  /* Paleta de Colores Corporativos Tema Claro */
  --primary-dark: #07304E;       /* Azul Profundo */
  --secondary-dark: #26465B;     /* Azul Pizarra */
  --cyan-bright: #57D1E9;        /* Celeste/Cian Claro */
  --aqua-accent: #43D0BB;        /* Turquesa / Aqua */
  --emerald-success: #25AE82;    /* Verde Esmeralda */
  --pure-white: #FFFFFF;
  --bg-ultra-light: #F4F9FC;     /* Fondo gris/celeste ultra claro */
  
  /* Tipografías Corporativas Simuladas */
  --font-crenzo: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;           /* Fuerza, personalidad, mayúsculas pesadas */
  --font-arboria: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;       /* Subtítulos o frases importantes (Black/Bold) */
  --font-argentum: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; /* Letra base, moderna y limpia para párrafos */
}

/* Base resets for Light Mode */
body {
  font-family: var(--font-argentum);
  background-color: var(--pure-white);
  color: var(--secondary-dark);
}

/* Tipografía Corporativa Jerarquizada */
.font-crenzo {
  font-family: var(--font-crenzo);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-arboria {
  font-family: var(--font-arboria);
  font-weight: 900;
}

.font-argentum {
  font-family: var(--font-argentum);
}

/* Transición fluida de pestañas SPA y optimización de renderizado */
.tab-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  content-visibility: hidden;
}

.tab-content.active-tab {
  display: block;
  opacity: 1;
  transform: translateY(0);
  content-visibility: visible;
}

/* Botón de navegación activo con acentos de marca en Light Mode */
nav button.active-nav-btn {
  background-color: rgba(87, 209, 233, 0.15);
  color: var(--primary-dark) !important;
  font-weight: 800;
  border-bottom: 2px solid #0ea5e9;
  border-radius: 6px 6px 0 0;
}

/* Animación del nebulizador activo en el simulador */
@keyframes pulseMist {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

.nebulizador-mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(87, 209, 233, 0.4) 0%, transparent 70%);
  animation: pulseMist 2.5s infinite ease-in-out;
  pointer-events: none;
}

/* Estilo premium de pasos activos en Light Mode */
.step-card.active-step {
  border-color: #0ea5e9;
  box-shadow: 0 10px 25px rgba(87, 209, 233, 0.15);
  background-color: var(--pure-white) !important;
}

.step-card.active-step .step-number {
  background-color: #0ea5e9;
  color: var(--pure-white);
}

/* Despliegue de Drawer móvil */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Leaflet map styling overrides for light theme */
.leaflet-container {
  background-color: var(--bg-ultra-light) !important;
}

.leaflet-popup-content-wrapper {
  background-color: var(--pure-white) !important;
  color: var(--primary-dark) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  border: 2px solid #57D1E9;
}

.leaflet-popup-tip {
  background-color: var(--pure-white) !important;
}

/* Custom sidebar list items transition */
.location-item {
  transition: all 0.2s ease-in-out;
}

/* Scrollbar refinada */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-ultra-light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* Estilos de impresión para la Hoja de Reclamación Oficial */
@media print {
  body * {
    visibility: hidden;
  }
  #reclamation-modal, #reclamation-modal * {
    visibility: visible;
  }
  #reclamation-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    color: black;
  }
  #reclamation-modal button {
    display: none !important;
  }
}

/* Background Canvas Rain Styles */
#rainCanvas {
  pointer-events: none;
  z-index: 0;
}

/* Efecto de Gota de Agua para el Logo */
.water-drop-logo {
  position: relative;
  width: 68px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.75) 0%, rgba(87, 209, 233, 0.18) 70%, rgba(67, 208, 187, 0.28) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  
  box-shadow: 
    inset 4px 4px 8px rgba(255, 255, 255, 0.95),
    inset -4px -4px 8px rgba(7, 48, 78, 0.08),
    4px 6px 12px rgba(7, 48, 78, 0.08),
    inset 0px 2px 4px rgba(255, 255, 255, 0.65);
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: waterDropWobble 6s ease-in-out infinite alternate;
}

@media (min-width: 1024px) {
  .water-drop-logo {
    width: 78px;
    height: 86px;
    box-shadow: 
      inset 5px 5px 10px rgba(255, 255, 255, 0.95),
      inset -5px -5px 10px rgba(7, 48, 78, 0.09),
      5px 8px 14px rgba(7, 48, 78, 0.1),
      inset 0px 3px 5px rgba(255, 255, 255, 0.7);
  }
}

/* Specular highlight (shine) at top-left */
.water-drop-logo::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 1024px) {
  .water-drop-logo::before {
    top: 8px;
    left: 12px;
    width: 16px;
    height: 8px;
  }
}

/* Soft light reflection inside the drop near bottom-right */
.water-drop-logo::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 1024px) {
  .water-drop-logo::after {
    bottom: 8px;
    right: 12px;
    width: 8px;
    height: 8px;
  }
}

/* Gentle organic wobble animation to simulate liquid water drop */
@keyframes waterDropWobble {
  0% {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  }
  33% {
    border-radius: 52% 48% 51% 49% / 57% 62% 38% 43%;
  }
  66% {
    border-radius: 48% 52% 47% 53% / 62% 57% 43% 38%;
  }
  100% {
    border-radius: 50% 50% 50% 50% / 59% 59% 41% 41%;
  }
}

.water-drop-logo:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 
    inset 10px 10px 16px rgba(255, 255, 255, 1),
    inset -10px -10px 16px rgba(7, 48, 78, 0.12),
    8px 16px 24px rgba(7, 48, 78, 0.14),
    inset 0px 5px 8px rgba(255, 255, 255, 0.75);
}

