/* CLAUDER - Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --secondary: #424242;
  --surface: #ffffff;
  --background: #fafafa;
  --error: #d32f2f;
  --success: #388e3c;
  --warning: #f57c00;
  --text-primary: #212121;
  --text-secondary: #757575;
  --divider: #e0e0e0;
  
  /* Shadows */
  --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER SECTION */
.header-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/fondo.png') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR TOP */
.navbar-top {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-top .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.contact-info:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-info i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  font-size: 10px;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* NAVBAR PRINCIPAL */
.navbar-main {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.logo:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  margin: 0;
  background: rgba(248, 250, 252, 0.8);
  padding: var(--space-xs);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item a:hover {
  color: var(--primary);
  background: white;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
  transform: translateY(-1px);
}

.nav-item a.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* HERO BANNER */
.hero-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
}

.hero-content h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: var(--space-xxl);
  letter-spacing: -1px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-2);
}

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* SOCIAL MEDIA SIDEBAR */
.social-sidebar {
  position: fixed;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  border: 2px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-link:nth-child(1):hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.social-link:nth-child(2):hover {
  background: #e4405f;
  color: white;
  border-color: #e4405f;
}

.social-link:nth-child(3):hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.social-link:nth-child(4):hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.social-link:nth-child(5):hover {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
}

/* SERVICES CARDS SECTION */
.services-section {
  padding: var(--space-xxl) 0;
  background: #ffffff;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xxl);
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
  border-color: #1976d2;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: #1976d2;
  font-size: 28px;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: #1976d2;
  color: white;
  transform: scale(1.05);
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: var(--space-md);
}

.service-description {
  color: #475569;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-size: 14px;
}

.btn-outline {
  background: #1976d2;
  color: white;
  border: 1px solid #1976d2;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all var(--transition-fast);
  display: inline-block;
}

.btn-outline:hover {
  background: #1565c0;
  border-color: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* SECTION TITLES */
.section-title {
  text-align: center;
  margin-bottom: var(--space-xxl);
  position: relative;
}

.section-subtitle {
  color: #1976d2;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* CATEGORIES SECTION */
.categories-section {
  padding: var(--space-xxl) 0;
  background: #ffffff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xxl);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
  aspect-ratio: 4/3;
  border: 1px solid #e2e8f0;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
  border-color: #1976d2;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 118, 210, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-overlay h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.category-overlay p {
  font-size: 16px;
  opacity: 0.9;
}

/* COLLABORATORS SECTION */
.collaborators-section {
  padding: var(--space-xxl) 0;
  background: #ffffff;
  color: #212121;
}

.collaborator-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-top: var(--space-xxl);
}

.collaborator-slide {
  display: none;
  align-items: center;
  padding: var(--space-xxl);
  gap: var(--space-xxl);
}

.collaborator-slide.active {
  display: flex;
}

.collaborator-content {
  flex: 1;
}

.collaborator-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: #1976d2;
}

.collaborator-description {
  font-size: 18px;
  line-height: 1.6;
  color: #475569;
}

.collaborator-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1976d2;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.carousel-controls {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  background: #1976d2;
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #1565c0;
  transform: scale(1.05);
}

/* SERVICES CAROUSEL SECTION */
.services-carousel-section {
  padding: var(--space-xxl) 0;
  background: #ffffff;
}

.services-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-lg) 0;
  scroll-behavior: smooth;
  margin-top: var(--space-xxl);
}

.service-carousel-card {
  min-width: 300px;
  max-width: 300px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e2e8f0;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.service-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
  border-color: #1976d2;
}

.service-carousel-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-carousel-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-carousel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
  text-transform: capitalize;
}

.service-carousel-schedule {
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  background: rgba(25, 118, 210, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.service-view-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

.service-view-btn:hover {
  background: #1976d2;
  color: white;
  transform: scale(1.1);
}

.service-extract {
  margin-bottom: var(--space-sm);
}

.service-extract strong {
  color: #1976d2;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  background: rgba(25, 118, 210, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.service-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-top: auto;
}

/* FOOTER */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--primary-light);
}

.footer-brand p {
  line-height: 1.6;
  opacity: 0.8;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

/* MODALS */
.modal-modern .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-4);
  overflow: hidden;
}

.modal-modern .modal-header {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-lg);
  border-bottom: none;
}

.modal-modern .modal-body {
  padding: var(--space-xl);
}

.modal-modern .modal-title {
  font-weight: 600;
  font-size: 24px;
}

.modal-modern .close {
  color: white;
  opacity: 0.8;
  font-size: 28px;
  font-weight: 300;
}

.modal-modern .close:hover {
  opacity: 1;
  color: white;
}

/* Modal Content Styling */
.modal-modern .row_p {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.modal-modern .popou_img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.modal-modern .content_pagos {
  flex: 1;
}

.modal-modern .frm_pagos {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.modal-modern .plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-sm);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast);
}

.modal-modern .plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.modal-modern .plan img {
  border-radius: 50%;
  box-shadow: var(--shadow-2);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(25, 118, 210, 0.1);
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar-top .container {
    display: none !important;
  }
  
  .navbar-container {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: block !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    text-align: left;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    border: none;
    padding: var(--space-xl) var(--space-lg);
    transition: left var(--transition-normal);
    z-index: 9999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: var(--space-sm) 0;
  }
  
  .nav-item a {
    display: block;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-xs) 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .services-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .collaborator-slide {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-sidebar {
    display: none;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* UTILITIES */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }