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

:root {
  --primary-color: #00c6ff;
  --secondary-color: #0072ff;
  --accent-color: #f857a6;
  --accent-color-2: #ff5858;
  --bg-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  --text-color: #e5e7eb;
  --text-muted-color: #9ca3af;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(17, 24, 39, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background: var(--bg-gradient);
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Animación de fondo */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; /* no interfiere con clicks */
  background: transparent; /* ✅ no tapa el fondo */
}

.code-particle {
  position: absolute;
  top: -50px; /* empiezan arriba */
  font-size: 1rem;
  color: #0ff; /* puedes ajustar */
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Animación de caída */
@keyframes fall {
  from {
    transform: translateY(-50px);
    opacity: 0.8;
  }
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid var(--card-border);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color);
}

.logo-accent {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.active .line2 {
  opacity: 0;
}
.mobile-menu-toggle.active .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.gradient-text {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted-color);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
}

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

.btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--card-border);
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.card-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}
.card-dots {
  display: flex;
  gap: 8px;
}
.dot-style {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-style.red {
  background: #ff5f56;
}
.dot-style.yellow {
  background: #ffbd2e;
}
.dot-style.green {
  background: #27ca3f;
}
.card-content {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
}
.code-tag {
  color: var(--accent-color);
}
.code-text {
  color: var(--primary-color);
}
.code-indent {
  color: var(--text-muted-color);
}

/* General Section Styling */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-muted-color);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.plan-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}
.plan-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}
.featured-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 40px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: rotate(45deg);
}
.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}
.plan-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
}
.plan-icon svg {
  width: 100%;
  height: 100%;
}
.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}
.currency {
  font-size: 1.2rem;
  color: var(--primary-color);
}
.amount {
  font-size: 3rem;
  font-weight: 800;
  color: white;
}
.period {
  font-size: 1rem;
  color: var(--text-muted-color);
}
.features-list {
  list-style: none;
}
.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.check {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}
.plan-button {
  display: block;
  text-align: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
}
.portfolio-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.portfolio-item {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  height: 300px;
  position: relative;
}
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.portfolio-image {
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.portfolio-info {
  color: white;
}
.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Portfolio Page */
.portfolio-page-section {
  padding: 120px 0 60px;
}
.portfolio-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
.portfolio-item-full {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.portfolio-content-full {
  padding: 2.5rem;
}
.portfolio-content-full h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}
.portfolio-content-full p {
  color: var(--text-muted-color);
  margin-bottom: 1.5rem;
}
.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}
.portfolio-link-full {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
}
.portfolio-item-full:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}
.portfolio-item-full:nth-child(even) .portfolio-image {
  order: 2;
}

/* Contact Page */
.contact-section {
  padding: 120px 0 60px;
}
.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}
.contact-form-wrapper {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid var(--card-border);
}
.contact-form .form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted-color);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.3);
}
.contact-info-wrapper {
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-info-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 5px;
}
.contact-info-item h3 {
  margin-bottom: 0.25rem;
  color: white;
}
.contact-info-item p {
  color: var(--text-muted-color);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--card-border);
  margin-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-section {
  color: white;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-description {
  color: var(--text-muted-color);
  line-height: 1.6;
}
.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  color: white;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a,
.footer-links li {
  color: var(--text-muted-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted-color);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid-home {
    grid-template-columns: 1fr;
  }
  .portfolio-item-full {
    grid-template-columns: 1fr;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 20px 20px;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  .nav-menu.active {
    right: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.cross {
  color: #ff4444; /* rojo */
  margin-right: 5px;
}

