/**
 * CCDMAOF - Estilos Principales
 * Colegio de Cirujanos Dentistas Mexicanos - Armonización Orofacial
 */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  --gold: #d4af37;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

/* ========================================
   GLOBAL STYLES
======================================== */
body {
  font-family: "Poppins", sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--gray-900);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ========================================
   NAVBAR
======================================== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 110, 253, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 5px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-light {
  border-width: 2px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../img/pattern.svg") repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SECTIONS
======================================== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

/* ========================================
   CARDS
======================================== */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--gray-600);
}

/* ========================================
   FEATURE BOXES
======================================== */
.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--gray-600);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #c5a028 100%);
  color: var(--white);
  border: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  color: var(--white);
}

/* ========================================
   TEAM / MESA DIRECTIVA
======================================== */
.team-member {
  text-align: center;
  padding: 2rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid var(--primary);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-specialty {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ========================================
   PRICING / PRODUCTOS
======================================== */
.pricing-card {
  border-radius: 20px;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: "Recomendado";
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 40px;
  font-size: 0.8rem;
  transform: rotate(45deg);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-features li i {
  color: var(--success);
  margin-right: 0.5rem;
}

/* ========================================
   FORMS
======================================== */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--gray-300);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 20px;
}

footer p,
footer li {
  color: var(--gray-400);
}

footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--primary);
}

footer a:hover {
  color: var(--white);
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========================================
   UTILITIES
======================================== */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.bg-light-gray {
  background: var(--gray-100);
}

.text-gold {
  color: var(--gold);
}

.shadow-lg-hover:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image {
    margin-top: 3rem;
  }

  section {
    padding: 60px 0;
  }
}

/* ========================================
   LOGIN / AUTH PAGES
======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
  max-width: 150px;
  margin-bottom: 2rem;
}

/* ========================================
   DASHBOARD
======================================== */
.dashboard-sidebar {
  background: var(--gray-900);
  min-height: 100vh;
  padding: 2rem 0;
}

.dashboard-nav .nav-link {
  color: var(--gray-400);
  padding: 1rem 1.5rem;
  border-radius: 0;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
  color: var(--white);
  background: var(--primary);
}

.dashboard-content {
  padding: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-card .stat-label {
  color: var(--gray-600);
}

/* ========================================
   TABLES
======================================== */
.table-responsive {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.table thead {
  background: var(--gray-100);
}

.table th {
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

/* ========================================
   BADGES
======================================== */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: 6px;
}

.badge-fundador {
  background: linear-gradient(135deg, var(--gold) 0%, #c5a028 100%);
  color: var(--white);
}

.badge-nuevo {
  background: var(--primary);
  color: var(--white);
}

.badge-profesor {
  background: var(--success);
  color: var(--white);
}

/* ========================================
   ALERTS
======================================== */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
}

.alert-success {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
}

.alert-info {
  background: rgba(13, 202, 240, 0.1);
  color: #0c5460;
}

/* ========================================
   BENEFIT CARDS
======================================== */
.benefit-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

/* ========================================
   TEAM CARDS
======================================== */
.team-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder i {
  font-size: 2.5rem;
  color: var(--gray-500);
}

/* ========================================
   PRODUCT CARDS
======================================== */
.product-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.price-tag .old-price {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 1rem;
}

.price-tag .current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   STAT CARDS
======================================== */
.stat-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ========================================
   MEMBER CARDS
======================================== */
.member-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar-placeholder i {
  font-size: 2rem;
  color: var(--white);
}

/* ========================================
   RESPONSIVE UTILITIES
======================================== */
.min-vh-75 {
  min-height: 75vh;
}

@media (max-width: 991.98px) {
  .min-vh-75 {
    min-height: 50vh;
  }
}
