/* Cosvion Technologies - style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --accent: #a8d65a;
  --accent-glow: #8bc34a;
  --bg-primary: #2c3e50;
  --bg-dark: #1a252f;
  --bg-card: rgba(44, 62, 80, 0.7);
  --white: #F9FAFB;
  --text-muted: #94a3b8;
  --border-soft: rgba(168, 214, 90, 0.15);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --radius: 22px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* Glassmorphism */
.glass {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-soft);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transition: box-shadow var(--transition), border var(--transition);
}

.glass:hover {
  box-shadow: 0 12px 40px 0 rgba(168, 214, 90, 0.15);
  border-color: rgba(168, 214, 90, 0.35);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 37, 47, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 80px;
  width: auto;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(168, 214, 90, 0.12);
  border: 1px solid rgba(168, 214, 90, 0.3);
  color: var(--accent);
  margin-left: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  color: var(--bg-dark) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 40%, var(--accent) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 80%, var(--accent-glow) 0%, transparent 80%);
  opacity: 0.12;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(168, 214, 90, 0.12);
  border: 1px solid rgba(168, 214, 90, 0.3);
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 214, 90, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(168, 214, 90, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta:hover {
  transform: translateY(-2px);
}

.cta-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(168, 214, 90, 0.3);
}

.cta-primary:hover {
  box-shadow: 0 8px 30px rgba(168, 214, 90, 0.45);
}

.cta-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-glass);
}

.cta-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.hero-visuals {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.visual-card {
  padding: 1.25rem 1.75rem;
  text-align: center;
}

.visual-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.visual-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* SECTIONS */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(168, 214, 90, 0.12);
  border: 1px solid rgba(168, 214, 90, 0.3);
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.section-header h2 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* SERVICIOS */
.servicios {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(44, 62, 80, 0.3) 100%);
}

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

.service-card {
  padding: 2rem;
  position: relative;
}

.service-card.featured {
  border-color: rgba(168, 214, 90, 0.4);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  color: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.25rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* PROCESO */
.proceso {
  background: var(--bg-dark);
}

.process-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-glow));
  opacity: 0.3;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* TECNOLOGÍAS */
.tecnologias {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(44, 62, 80, 0.3) 100%);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tech-category {
  padding: 1.75rem;
}

.tech-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(168, 214, 90, 0.1);
  border: 1px solid rgba(168, 214, 90, 0.2);
  color: var(--text-muted);
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(168, 214, 90, 0.2);
  border-color: var(--accent);
  color: var(--white);
}

/* PORTAFOLIO */
.portafolio {
  background: var(--bg-dark);
}

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

.portfolio-card {
  overflow: hidden;
}

.portfolio-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-emoji {
  font-size: 4rem;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-tech span {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* CONTACTO */
.contacto {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(44, 62, 80, 0.3) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.contact-info h2 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 214, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
}

.contact-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-glass);
  background: rgba(11, 17, 32, 0.6);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  align-self: flex-start;
}

/* FOOTER */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-soft);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-badge {
    display: none;
  }

  .nav-logo-img {
    height: 80px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 37, 47, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats {
    gap: 1.5rem;
  }

  .hero-visuals {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

  .services-grid,
  .portfolio-grid,
  .tech-categories {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    left: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .process-step {
    gap: 1rem;
  }
}
