/*!
 * Sistema de Diseño Unificado - ArrayanMed
 * Versión 2.0 - Diseño coherente y profesional
 */

/* ============================================
   1. VARIABLES GLOBALES DEL SISTEMA
   ============================================ */
:root {
  /* Colores principales */
  --primary-green: #8FAE71;
  --primary-green-hover: #7A9560;
  --primary-green-light: rgba(143, 174, 113, 0.1);
  
  --accent-gold: #E6C757;
  --accent-gold-hover: #D4B545;
  --accent-gold-light: rgba(230, 199, 87, 0.1);
  
  /* Grises y neutrales */
  --text-dark: #2C3E50;
  --text-medium: #5A6C7D;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-light: rgba(0, 0, 0, 0.08);
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Tamaños de fuente */
  --fs-xs: 0.875rem;    /* 14px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 1.875rem;   /* 30px */
  --fs-3xl: 2.25rem;    /* 36px */
  
  /* Espaciado */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */
  
  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.35s ease;
}

/* ============================================
   2. RESET Y BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. TIPOGRAFÍA UNIFICADA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
}

/* ============================================
   4. SISTEMA DE BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font-primary);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Botón primario */
.btn-primary {
  background: var(--primary-green);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Botón secundario */
.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--primary-green-light);
  transform: translateY(-2px);
}

/* Botón ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
}

/* Tamaños de botón */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--fs-md);
}

/* Botón con icono */
.btn-icon {
  padding-left: 24px;
}

.btn i {
  font-size: 1.1em;
}

/* Eliminar todos los emojis de botones */
.btn-primary::before,
.btn-secondary::before,
.btn-ghost::before {
  content: none !important;
}

/* ============================================
   5. TARJETAS DEL EQUIPO
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.team-card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.team-card-role {
  font-size: var(--fs-sm);
  color: var(--primary-green);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.team-card-bio {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-medium);
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.team-card-footer {
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.team-card-location {
  font-size: var(--fs-xs);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.team-card-social {
  font-size: var(--fs-xs);
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.team-card-social:hover {
  color: var(--primary-green);
}

/* ============================================
   6. SECCIÓN HERO LIMPIA
   ============================================ */
.hero-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--primary-green-light), var(--accent-gold-light));
  text-align: center;
}

.hero-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-medium);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* ============================================
   7. BOTÓN FLOTANTE SUTIL
   ============================================ */
.float-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary-green);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  z-index: 100;
}

.float-button:hover {
  transform: scale(1.1);
  background: var(--primary-green-hover);
}

.float-button i {
  font-size: 24px;
}

/* Tooltip del botón flotante */
.float-button-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.float-button:hover .float-button-tooltip {
  opacity: 1;
}

/* ============================================
   8. INFORMACIÓN DE CONTACTO
   ============================================ */
.contact-banner {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin: var(--spacing-sm) 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--fs-base);
  color: var(--text-medium);
}

.contact-item i {
  color: var(--primary-green);
  width: 20px;
}

.contact-item a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ============================================
   9. SECCIONES Y CONTENEDORES
   ============================================ */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-alt {
  background: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

/* ============================================
   10. UTILIDADES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Ocultar elementos decorativos innecesarios */
.decorative-emoji,
.emoji-icon {
  display: none !important;
}

/* ============================================
   11. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .float-button {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-3xl: 1.875rem;
    --fs-2xl: 1.5rem;
    --fs-xl: 1.25rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}
