/* ============================================
   GLOBAL STYLES & TYPOGRAPHY
   ============================================ */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #6366f1;
  --accent-color: #8b5cf6;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.professional-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.professional-navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98) !important;
}

.professional-navbar .navbar-brand {
  font-family: 'Satisfy', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.professional-navbar .brand-name {
  color: var(--primary-color);
}

.professional-navbar .yo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.professional-navbar .yo:hover {
  transform: scale(1.1);
}

.professional-navbar .navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: color 0.3s ease;
}

.professional-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.professional-navbar .navbar-nav .nav-link:hover,
.professional-navbar .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.professional-navbar .navbar-nav .nav-link:hover::after,
.professional-navbar .navbar-nav .nav-link.active::after {
  width: 80%;
}

.professional-navbar .rrss {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.professional-navbar .rrss:hover {
  transform: scale(1.2);
  filter: grayscale(0%);
  opacity: 1;
}

.professional-navbar .navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.professional-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.professional-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-buttons .btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #f8f9fa;
}

.hero-buttons .btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.hero-buttons .btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-down {
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  display: block;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-knowledge {
  background: var(--bg-light);
  padding: 5rem 0;
}

.section-projects {
  background: var(--bg-white);
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ============================================
   ACCORDION / SKILLS STYLES
   ============================================ */

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  background: white;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.accordion-button {
  background: white !important;
  border: none !important;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark) !important;
  padding: 1.25rem 1.5rem !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color) !important;
  background: var(--bg-light) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
  border-color: transparent;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-body {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
}

/* Skill bars styling */
.maquetacion,
.frontend,
.backend,
.mobile,
.cms,
.otros {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  min-height: 40px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.maquetacion {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.frontend {
  background: linear-gradient(135deg, #10b981, #059669);
}

.backend {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.mobile {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cms {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.otros {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.maquetacion:hover,
.frontend:hover,
.backend:hover,
.mobile:hover,
.cms:hover,
.otros:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   PROJECT CARDS STYLES
   ============================================ */

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
  background: var(--bg-light);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(139, 92, 246, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project-overlay .badge {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: white !important;
  color: var(--primary-color) !important;
  border-radius: 20px;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* Ensure H3 styles are consistent */
h3.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .professional-navbar .navbar-brand {
    font-size: 1.25rem;
  }
  
  .professional-navbar .yo {
    width: 35px;
    height: 35px;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-knowledge,
  .section-projects {
    padding: 3rem 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fuente_blanca {
  color: white;
}

.opciones_menu {
  transition: all 0.3s ease;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}