/* 
============================================================
ABC CODERS - ESTILOS PRINCIPALES
============================================================
*/

/* Variables CSS */
:root {
  --primary-color: #2563eb;
  --secondary-color: #0f172a;
  --accent-color: #8b5cf6;
  --light-color: #f8fafc;
  --dark-color: #0f172a;
  --gray-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

/* Reset y estilo base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo h2 {
  color: var(--primary-color);
  font-weight: 700;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--primary-color);
}

/* Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 10px;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.tech-tags span {
  background-color: var(--light-color);
  border: 1px solid #e2e8f0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Experience */
.experience {
  padding: 80px 0;
  text-align: center;
}

.experience h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.experience p {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.timeline-item {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  min-width: 100px;
}

.timeline-arrow {
  font-weight: bold;
  color: var(--gray-color);
}

/* Services */
.services {
  padding: 80px 0;
  background-color: #f8fafc;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: var(--gray-color);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-link {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Portfolio */
.portfolio {
  padding: 80px 0;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.portfolio-header p {
  font-size: 1.1rem;
  color: var(--gray-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: white;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content .category-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.project-content p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  height: 60px;
  overflow: hidden;
}

.project-content .technologies {
  font-size: 0.8rem;
  color: var(--gray-color);
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-content .btn-view {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.project-content .btn-view:hover {
  background-color: #1d4ed8;
}

/* Technologies */
.technologies {
  padding: 80px 0;
  background-color: #f8fafc;
}

.technologies h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.technologies p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.technology-group {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.technology-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.technology-group h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
}

.technology-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.technology-group li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.technology-group li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 10px;
}

.technology-group li:last-child {
  border-bottom: none;
}

/* Contact */
.contact {
  padding: 80px 0;
  text-align: center;
  background-color: #f8fafc;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact p {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-info p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: black;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.modal-details h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.modal-details .categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.category-tag {
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-details p {
  color: var(--gray-color);
  line-height: 1.6;
}

.modal-details .features, .modal-details .technologies, .modal-details .platform, .modal-details .year, .modal-details .status {
  margin-bottom: 15px;
}

.modal-details .features ul, .modal-details .technologies ul {
  padding-left: 20px;
}

.modal-details .features li, .modal-details .technologies li {
  margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .navbar ul {
    gap: 15px;
    font-size: 0.9rem;
  }
  
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .timeline-item {
    min-width: 80px;
    padding: 8px 15px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons .btn-primary, .cta-buttons .btn-secondary {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  
  .tech-tags {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-body img {
    height: 200px;
  }
}