/* ========================================
   REUSO BRAND STYLES - Menu Lateral
   ======================================== */

/* Contenedor del menú lateral */
ion-menu {
  --background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Header del menú */
ion-menu ion-header ion-toolbar {
  --background: linear-gradient(135deg, #008B8B 0%, #20B2AA 100%);
  --color: white;
  padding: 10px 0;
  min-height: 80px;
}

/* Fila del header del menú */
.reuso-menu-header-row {
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 5px 10px;
}

/* Contenedor del ícono */
.reuso-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.reuso-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reuso-menu-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Contenido de la marca */
.reuso-brand-content {
  display: flex;
  align-items: center;
  padding: 0 10px 0 5px;
}

.reuso-brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.reuso-brand-title {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.reuso-brand-subtitle {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  line-height: 1.1;
}

.reuso-brand-tagline {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  font-style: italic;
  line-height: 1;
}

/* ========================================
   REUSO MAIN BRANDING STYLES
   ======================================== */

/* Variables de colores de Reuso */
:root {
  --reuso-primary: #008B8B;
  --reuso-secondary: #20B2AA;
  --reuso-accent: #00CED1;
  --reuso-dark: #006666;
  --reuso-light: #E0F7FA;
  --reuso-white: #FFFFFF;
  --reuso-black: #000000;
  --reuso-gray: #666666;
}

/* Textos con colores de marca */
.reuso-text-primary {
  color: var(--reuso-primary) !important;
}

.reuso-text-secondary {
  color: var(--reuso-secondary) !important;
}

.reuso-text-accent {
  color: var(--reuso-accent) !important;
}

.reuso-text-dark {
  color: var(--reuso-dark) !important;
}

/* Gradientes de marca */
.reuso-gradient-bg {
  background: linear-gradient(135deg, var(--reuso-primary) 0%, var(--reuso-secondary) 100%);
}

.reuso-gradient-text {
  background: linear-gradient(135deg, var(--reuso-primary) 0%, var(--reuso-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   LOGOS Y ICONOS
   ======================================== */

/* Logo genérico */
.reuso-logo {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Logo grande para landing */
.reuso-logo-large {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  margin: 0px 0;
  transition: all 0.3s ease;
}

/* Ícono pequeño */
.reuso-icon {
  width: 10%;
  height: 10%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Logo específico para header */
.reuso-header-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

/* Efecto hover para todos los logos */
.reuso-logo:hover,
.reuso-logo-large:hover,
.reuso-icon:hover,
.reuso-header-logo:hover {
  transform: scale(1.05);
}

/* ========================================
   COMPONENTES ESPECÍFICOS
   ======================================== */

/* Header principal */
.reuso-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Ajustes para ion-title en header */
ion-header ion-toolbar ion-title {
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto del header */
.reuso-header-text {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-left: 5px;
}

/* Contenedor de marca en landing */
.reuso-brand-container {
  text-align: center;
  margin: 40px 0;
}

/* Botones con estilo de marca */
.reuso-button {
  --background: linear-gradient(135deg, var(--reuso-primary) 0%, var(--reuso-secondary) 100%);
  --color: white;
  --border-radius: 25px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
}

.reuso-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
}

/* ========================================
   EFECTOS Y ANIMACIONES
   ======================================== */

/* Animación de aparición */
@keyframes reusoFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reuso-brand-header {
  animation: reusoFadeIn 0.6s ease-out;
}

.reuso-header-title {
  animation: reusoFadeIn 0.4s ease-out;
}

/* Eliminamos la animación que interfiere */

/* ========================================
   FORZAR TAMAÑOS DEL LOGO
   ======================================== */
#home ion-header ion-toolbar ion-title .reuso-header-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
}

ion-header .reuso-header-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  object-fit: contain !important;
  animation: none !important;
  transform: none !important;
}

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

@media (max-width: 768px) {
  /* Header del menú en móvil */
  ion-menu ion-header ion-toolbar {
    min-height: 70px;
    padding: 8px 0;
  }
  
  .reuso-menu-header-row {
    padding: 3px 8px;
  }
  
  .reuso-brand-title {
    font-size: 18px;
    letter-spacing: 1.5px;
  }
  
  .reuso-brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  
  .reuso-brand-tagline {
    font-size: 8px;
    letter-spacing: 0.2px;
  }
  
  .reuso-menu-icon {
    width: 28px;
    height: 28px;
  }
  
  .reuso-icon-container {
    width: 45px;
    height: 45px;
  }
  
  .reuso-brand-content {
    padding: 0 8px 0 3px;
  }
  
  /* Header principal en móvil */
  .reuso-header-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  
  .reuso-header-text {
    font-size: 16px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 480px) {
  /* Ajustes para pantallas muy pequeñas */
  .reuso-brand-title {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .reuso-brand-subtitle {
    font-size: 9px;
  }
  
  .reuso-brand-tagline {
    font-size: 7px;
  }
  
  .reuso-icon-container {
    width: 40px;
    height: 40px;
  }
  
  .reuso-menu-icon {
    width: 24px;
    height: 24px;
  }
  
  /* Header principal en pantallas pequeñas */
  .reuso-header-logo {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
  }
  
  .reuso-header-text {
    font-size: 14px;
    letter-spacing: 1px;
  }
  
  .reuso-header-title {
    gap: 6px;
  }
}

/* ========================================
   LANGUAGE SELECTOR STYLES
   ======================================== */

/* Selector de idioma en el menú */
.language-selector-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
}

.language-toggle-btn {
  --background: rgba(255, 255, 255, 0.15);
  --background-hover: rgba(255, 255, 255, 0.25);
  --background-activated: rgba(255, 255, 255, 0.35);
  --color: white;
  --border-radius: 12px;
  --padding-start: 8px;
  --padding-end: 8px;
  --padding-top: 8px;
  --padding-bottom: 8px;
  min-width: 40px;
  min-height: 40px;
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.language-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.language-flag {
  font-size: 20px;
  line-height: 1;
  display: block;
}

/* Estilos responsivos para el selector de idioma */
@media (max-width: 768px) {
  .language-toggle-btn {
    min-width: 36px;
    min-height: 36px;
    --padding-start: 6px;
    --padding-end: 6px;
    --padding-top: 6px;
    --padding-bottom: 6px;
  }
  
  .language-flag {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .language-toggle-btn {
    min-width: 32px;
    min-height: 32px;
    --padding-start: 4px;
    --padding-end: 4px;
    --padding-top: 4px;
    --padding-bottom: 4px;
  }
  
  .language-flag {
    font-size: 16px;
  }
}
