/* Tema inspirado en Gemini - Refinamientos Premium */

:root.gemini-dark {
  /* Colores principales Gemini - Temperatura optimizada */
  --text-color: #F0F0F0; /* Temperatura cálida para lectura nocturna */
  --subheading-color: #C0C0C0; /* Mayor contraste */
  --placeholder-color: #909090; /* Mejor visibilidad */
  --primary-color: #1A1A1A;
  --secondary-color: #262626; /* Tinte cálido sutil */
  --secondary-hover-color: #383838;
  --border-color-subtle: #3A3A3A; /* Más definido */
  --accent-color: #8AB4F8;
  --accent-hover-color: #9DC2FF;
  --error-color: #F28B82;
  --success-color: #81C995;
  
  /* Bordes refinados matemáticamente */
  --border-radius: 18px;
  --border-radius-large: 24px;
  --border-radius-button: 9999px;
  --border-radius-input: 9999px;
  --border-radius-table: 16px;
  
  /* Transiciones premium */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Sombras sofisticadas */
  --shadow-premium: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(138, 180, 248, 0.15);
}

:root.gemini-light {
  /* Colores principales Gemini - Temperatura fría para claridad */
  --text-color: #1C1C1C; /* Tinte azul muy sutil */
  --subheading-color: #555555; /* Contraste optimizado */
  --placeholder-color: #707070; /* Mejor visibilidad */
  --primary-color: #FAFAFA;
  --secondary-color: #FEFEFE; /* Blanco más puro */
  --secondary-hover-color: #F6F6F6;
  --border-color-subtle: #E8EAED;
  --accent-color: #1A73E8;
  --accent-hover-color: #1967D2;
  --error-color: #EA4335;
  --success-color: #34A853;
  
  /* Sombras para tema claro */
  --shadow-premium: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(26, 115, 232, 0.1);
}

/* === ESTILOS GENERALES PREMIUM === */

body {
  transition: all var(--transition-smooth);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Mejor contraste de color en diferentes ambientes */
  color-scheme: light dark;
}

/* === HEADER PREMIUM CON GRADIENTE === */

.main-header {
  box-shadow: none;
  background: linear-gradient(180deg, 
    var(--primary-color) 0%, 
    rgba(38, 38, 38, 0.03) 100%);
  border-bottom: 1px solid var(--border-color-subtle);
  backdrop-filter: blur(8px);
  position: relative;
}

.main-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent-color), 
    transparent);
  opacity: 0.3;
}

.logo {
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.logo:hover {
  transform: translateY(-1px);
}

/* === TARJETAS PREMIUM === */

.card {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-subtle);
  background: linear-gradient(145deg, 
    var(--secondary-color), 
    rgba(56, 56, 56, 0.05));
  box-shadow: none;
  transition: all var(--transition-smooth);
  overflow: hidden;
  position: relative;
  will-change: transform;
  transform: translateZ(0);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(138, 180, 248, 0.2), 
    transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  background: linear-gradient(145deg, var(--secondary-hover-color), rgb(56 56 56 / 67%));
  border-color: var(--accent-color);
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-premium);
}

.card:hover::before {
  opacity: 1;
}

/* === BOTONES PREMIUM === */

.button {
  border-radius: var(--border-radius-button);
  font-weight: 500;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-color-subtle);
  box-shadow: none;
  padding: 14px 32px; /* Más generoso */
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.925rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.1), 
    transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-2px) translateZ(0);
  border-color: var(--accent-color);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.12),
    0 4px 8px rgba(0,0,0,0.08);
}

.button.primary-button {
  background: linear-gradient(135deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  color: #FFFFFF;
  border-color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(138, 180, 248, 0.3);
}

.button.primary-button:hover {
  background: linear-gradient(135deg, 
    var(--accent-hover-color), 
    #A5C8FF);
  box-shadow: 
    0 12px 32px rgba(138, 180, 248, 0.4),
    0 6px 16px rgba(138, 180, 248, 0.2);
  transform: translateY(-3px) translateZ(0);
}

/* === BOTONES ICON-ONLY PREMIUM === */

.button.icon-only {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.button.icon-only::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.button.icon-only:hover::after {
  width: 100%;
  height: 100%;
}

/* === BOTÓN DE GRABACIÓN PREMIUM === */

#record-button {
    border-radius: 50%;
    width: 60px; /* Más grande para mayor prominencia */
    height: 60px;
    padding: 0;
    background: linear-gradient(135deg, 
      var(--accent-color), 
      var(--accent-hover-color));
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 
      0 6px 20px rgba(138, 180, 248, 0.3),
      0 2px 8px rgba(138, 180, 248, 0.2);
    position: relative;
    overflow: hidden;
}

#record-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent);
  animation: rotate 2s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#record-button:hover::before {
  opacity: 1;
}

#record-button:hover {
    background: linear-gradient(135deg, 
      var(--accent-hover-color), 
      #A5C8FF);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
      0 12px 40px rgba(138, 180, 248, 0.4),
      0 8px 20px rgba(138, 180, 248, 0.3);
}

#record-button.is-recording {
  background: linear-gradient(135deg, #EA4335, #EA4335);
  animation: recording-pulse-premium 1.5s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4), 0 2px 8px rgba(234, 67, 53, 0.3);
  color: #fff !important;
}

@keyframes recording-pulse-premium {
    0%, 100% { 
      transform: scale(1); 
      box-shadow: 
        0 6px 20px rgba(234, 67, 53, 0.4),
        0 0 0 0 rgba(234, 67, 53, 0.3);
    }
    50% { 
      transform: scale(1.08); 
      box-shadow: 
        0 8px 24px rgba(234, 67, 53, 0.5),
        0 0 0 10px rgba(234, 67, 53, 0);
    }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === TARJETAS DE REUNIONES PREMIUM === */

.meeting-suggestion-item {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-subtle);
  transition: all var(--transition-smooth);
  padding: 28px; /* Más generoso */
  box-shadow: none;
  margin-bottom: 20px;
  background: linear-gradient(145deg, 
    var(--secondary-color), 
    rgba(56, 56, 56, 0.03));
  display: flex;
  flex-direction: column;
  height: auto;
  margin-top: 0 !important;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.meeting-suggestion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(138, 180, 248, 0.05), 
    transparent);
  transition: left 0.6s ease;
}

.meeting-suggestion-item:hover::before {
  left: 100%;
}

.meeting-suggestion-item:hover {
  background: linear-gradient(145deg, 
    var(--secondary-hover-color), 
    rgba(56, 56, 56, 0.06));
  border-color: var(--accent-color);
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-premium);
}

.meeting-title-preview {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.4;
  position: relative;
}

.meeting-title-preview::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  transition: width var(--transition-smooth);
}

.meeting-suggestion-item:hover .meeting-title-preview::after {
  width: 60px;
}

/* ===== TODOS LOS BOTONES REDONDEADOS (FORMA DE PÍLDORA) ===== */
button,
.button,
input[type="button"],
input[type="submit"],
.btn,
a.btn,
a.button,
[class*="btn"],
[type="button"] {
  border-radius: var(--border-radius-button) !important;
  font-weight: 500;
  transition: background-color 0.2s ease;
  box-shadow: none !important; /* Sin sombras para estilo flat */
  overflow: hidden;
}

/* Botones con estilo Gemini - refinados */
.button {
  border-radius: var(--border-radius-button);
  font-weight: 500;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-color-subtle);
  box-shadow: none;
  padding: 12px 28px; /* Padding más generoso */
  min-height: 44px; /* Altura consistente mejorada */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.925rem;
  letter-spacing: 0.01em;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); /* Sombra muy sutil */
}

.button.primary-button {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-color: var(--accent-color);
  font-weight: 600;
}

.button.primary-button:hover {
  background-color: var(--accent-hover-color);
  border-color: var(--accent-hover-color);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15); /* Sombra acorde al color */
}

/* Estilos especiales para botones icon-only - refinados */
.button.icon-only {
  border-radius: 50%;
  width: 44px; /* Tamaño más equilibrado */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--transition-smooth);
}

.button.icon-only:hover {
  transform: translateY(-1px) scale(1.02); /* Efecto más sutil */
}

/* Estilo para botón de Grabar - refinado */
#record-button {
    border-radius: 50%;
    width: 56px; /* Ligeramente más grande */
    height: 56px;
    padding: 0;
    background-color: var(--accent-color);
    color: #1a1a1a;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2); /* Sombra inicial sutil */
}

#record-button:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px) scale(1.05); /* Efecto más prominente */
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

#record-button.is-recording {
    background-color: #EA4335; /* Color de grabación */
    animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Ícono del micrófono en tema Gemini */
#record-button .material-symbols-rounded {
    font-size: 26px; /* Ligeramente más grande */
    line-height: 1;
}

/* Botón de guardar reunión - estilo normal en Gemini */
#save-meeting-button {
    border-radius: var(--border-radius-button);
    padding: 0.7rem 1.4rem;
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    width: auto;
    height: auto;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#save-meeting-button:hover {
    background-color: var(--accent-hover-color);
}

/* === INPUTS Y FORMULARIOS PREMIUM === */

input[type="search"], 
input[placeholder*="Buscar"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-radius: var(--border-radius-input);
  border: 1px solid var(--border-color-subtle);

  padding: 16px 24px; /* Más generoso */
  min-height: 52px; /* Altura más premium */
  box-shadow: none;
  transition: all var(--transition-smooth);
  font-size: 0.925rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  will-change: transform;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);

  box-shadow: 
    0 0 0 3px rgba(138, 180, 248, 0.12),
    0 4px 12px rgba(138, 180, 248, 0.08);
  transform: translateY(-2px);
}

textarea {
  border-radius: 20px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  padding: 20px 24px;
}

/* === BOTÓN DE PAUSA PREMIUM === */

.pause-button-inline {
  background: linear-gradient(145deg, 
    transparent, 
    rgba(56, 56, 56, 0.05));
  color: var(--subheading-color);
  margin-left: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-color-subtle);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.pause-button-inline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(138, 180, 248, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.pause-button-inline:hover::before {
  width: 100%;
  height: 100%;
}

.pause-button-inline:hover {
  background: linear-gradient(145deg, 
    var(--secondary-hover-color), 
    rgba(138, 180, 248, 0.05));
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(138, 180, 248, 0.15);
}

#pause-button.is-paused {
  background: linear-gradient(135deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  border-color: var(--accent-color);
  color: white;
  box-shadow: 
    0 0 0 4px rgba(138, 180, 248, 0.2),
    0 6px 20px rgba(138, 180, 248, 0.3);
}

#pause-button.is-paused:hover {
  background: linear-gradient(135deg, 
    var(--accent-hover-color), 
    #A5C8FF);
  box-shadow: 
    0 0 0 5px rgba(138, 180, 248, 0.25),
    0 8px 24px rgba(138, 180, 248, 0.4);
}

/* === MODAL PREMIUM === */

.modal-content {
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-color-subtle);
  background: linear-gradient(145deg, var(--secondary-color), rgb(40 40 40 / 92%));
  box-shadow: var(--shadow-premium);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent-color), 
    transparent);
  opacity: 0.5;
}

.close-button {
  opacity: 0.7;
  transition: all var(--transition-fast);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(145deg, 
    transparent, 
    rgba(56, 56, 56, 0.05));
  border: 1px solid var(--border-color-subtle);
  will-change: transform;
}

.close-button:hover {
  opacity: 1;
  background: linear-gradient(145deg, 
    var(--secondary-hover-color), 
    rgba(138, 180, 248, 0.05));
  border-color: var(--accent-color);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 12px rgba(138, 180, 248, 0.15);
}

/* === NAVEGACIÓN PREMIUM === */

.main-nav a, 
nav a {
  border-radius: var(--border-radius-button);
  transition: all var(--transition-smooth);
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(138, 180, 248, 0.08), 
    transparent);
  transition: left 0.4s ease;
}

.main-nav a:hover::before {
  left: 100%;
}

.main-nav a:hover,
nav a:hover {
  background: linear-gradient(145deg, 
    var(--secondary-hover-color), 
    rgba(138, 180, 248, 0.03));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === SEPARADORES PREMIUM === */

.separator {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--border-color-subtle), 
    var(--accent-color), 
    var(--border-color-subtle), 
    transparent);
  margin: 40px 0;
  position: relative;
}

.separator::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  border-radius: 2px;
  opacity: 0.6;
}

/* === ESTADOS VACÍOS PREMIUM === */

.empty-state {
  text-align: center;
  padding: 4rem 3rem;
  color: var(--subheading-color);
  animation: fadeInUp 0.6s var(--transition-smooth);
  position: relative;
}

.empty-state::before {
  font-size: 4rem;
  display: block;
  margin-bottom: 2rem;
  opacity: 0.6;
  filter: grayscale(10%);
  animation: gentle-float 4s ease-in-out infinite;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.empty-state p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
  opacity: 0.9;
}

/* === BADGES PREMIUM === */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  color: white;
  box-shadow: 
    0 2px 8px rgba(138, 180, 248, 0.3),
    0 1px 3px rgba(138, 180, 248, 0.4);
  animation: fadeInUp 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  transition: left 0.6s ease;
}

.badge:hover::before {
  left: 100%;
}

/* === INDICADORES DE ESTADO PREMIUM === */

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    var(--success-color), 
    #66BB6A);
  animation: gentle-pulse-premium 2.5s infinite;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(129, 199, 132, 0.4);
}

@keyframes gentle-pulse-premium {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 8px rgba(129, 199, 132, 0.4);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(129, 199, 132, 0.6);
  }
}

.status-indicator.recording {
  background: linear-gradient(135deg, #EA4335, #F28B82);
  animation: gentle-pulse-premium 1.2s infinite;
  box-shadow: 0 0 8px rgba(234, 67, 53, 0.4);
}

.status-indicator.processing {
  background: conic-gradient(
    var(--accent-color), 
    var(--accent-hover-color), 
    var(--accent-color));
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 8px rgba(138, 180, 248, 0.4);
}

/* === MICRO-INTERACCIONES CONTEXT-AWARE === */

/* Botones que reaccionan al cursor */
.button,
.card,
.meeting-suggestion-item {
  background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(138, 180, 248, 0.05) 0%, #242424a6 50%);
}

/* === SCROLLBAR PREMIUM === */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(
    var(--primary-color), 
    var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    var(--border-color-subtle), 
    var(--subheading-color));
  border-radius: 4px;
  transition: all var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, 
    var(--accent-color), 
    var(--accent-hover-color));
  box-shadow: 0 0 8px rgba(138, 180, 248, 0.3);
}

/* === SELECCIÓN DE TEXTO PREMIUM === */

::selection {
  background: linear-gradient(135deg, 
    rgba(138, 180, 248, 0.3), 
    rgba(138, 180, 248, 0.2));
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

::-moz-selection {
  background: linear-gradient(135deg, 
    rgba(138, 180, 248, 0.3), 
    rgba(138, 180, 248, 0.2));
  color: var(--text-color);
}

/* === OPTIMIZACIONES DE RENDIMIENTO === */

.button,
.card,
.meeting-suggestion-item,
.modal-content {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

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

@keyframes fadeInUpPremium {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFromRightPremium {
  from {
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

.fade-in-up-premium {
  animation: fadeInUpPremium 0.8s var(--transition-smooth);
}

.slide-in-premium {
  animation: slideInFromRightPremium 0.6s var(--transition-smooth);
}

/* === TOQUES FINALES SUTILES === */

/* Mejoras en scroll suave */
html {
  scroll-behavior: smooth;
}

/* Selección de texto refinada */
::selection {
  background-color: rgba(138, 180, 248, 0.2);
  color: var(--text-color);
}

::-moz-selection {
  background-color: rgba(138, 180, 248, 0.2);
  color: var(--text-color);
}

/* Scrollbar personalizada muy sutil */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-subtle);
  border-radius: 3px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--subheading-color);
}

/* Refinamiento de enfoque para mejor accesibilidad */
*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
.button:focus-visible {
  outline-offset: 3px;
}

/* Estados disabled refinados */
button:disabled,
.button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === MEJORAS SUTILES EN LA NAVEGACIÓN MÓVIL === */

/* Arreglar menú móvil - más opaco y z-index correcto */
@media (max-width: 768px) {
  #mobile-nav {
    background: var(--secondary-color) !important; /* Fondo sólido, no transparente */
    backdrop-filter: none !important; /* Quitar blur que causa problemas */
    z-index: 9999 !important; /* Z-index más alto */
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important; /* Sombra más prominente */
  }
  
  #mobile-nav a {
    transition: all var(--transition-fast);
    background-color: transparent;
    border-bottom: 1px solid var(--border-color-subtle);
  }
  
  #mobile-nav a:hover {
    background-color: var(--secondary-hover-color) !important;
    padding-left: 20px; /* Efecto sutil de indentación */
  }
}

/* === ESTILOS PARA AUTENTICACIÓN CON GOOGLE ===== */

/* Contenedor del botón de Google */
.google-auth-container {
  margin-top: 24px;
  text-align: center;
}

/* Separador "O" entre formulario y botón de Google */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color-subtle);
}

.separator span {
  padding: 0 16px;
  color: var(--subheading-color);
  font-size: 14px;
  background: var(--primary-color);
  position: relative;
  z-index: 1;
}

/* Botón de Google - Arreglado */
.google-auth-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 12px 24px !important;
  border: 1px solid var(--border-color-subtle) !important;
  border-radius: var(--border-radius-button) !important;
  background-color: var(--secondary-color) !important;
  color: var(--text-color) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all var(--transition-smooth) !important;
  min-height: 48px !important;
  font-size: 0.925rem !important;
  gap: 12px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.google-auth-button:hover {
  background-color: var(--secondary-hover-color) !important;
  text-decoration: none !important;
  border-color: var(--accent-color) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  color: var(--text-color) !important;
}

.google-auth-button:active {
  transform: translateY(0) !important;
}

.google-auth-button img {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.google-auth-button span {
  flex: 1 !important;
  text-align: center !important;
  color: inherit !important;
}

/* Asegurar que el botón no sea afectado por otros estilos */
a.google-auth-button,
button.google-auth-button,
.google-auth-button {
  appearance: none !important;
  outline: none !important;
  user-select: none !important;
}

.google-auth-button:focus {
  outline: 2px solid var(--accent-color) !important;
  outline-offset: 2px !important;
}

/* Refinamiento de sombras condicionales */
@media (prefers-reduced-motion: no-preference) {
  .card:hover,
  .meeting-suggestion-item:hover,
  .button:hover {
    transition: all var(--transition-smooth);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras de espaciado para mejor respirabilidad */
.meeting-suggestion-content > * + * {
  margin-top: 0.5rem;
}

.form-group > * + * {
  margin-top: 0.3rem;
}

/* Estados de error refinados */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(229, 88, 101, 0.1);
}

/* Estados de éxito refinados */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
} 