/* ============================================================
   WebData — style.css
   ============================================================ */

/* Reset & base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #06070b;
  --surface:   #0f1118;
  --card:      #131722;
  --border:    rgba(255,255,255,.08);
  --text:      #f4f7fb;
  --muted:     #96a0b5;
  --primary:   #4f8ef7;
  --secondary: #7c6cf5;
  --gradient:  linear-gradient(135deg, #4f8ef7, #7c6cf5);
  --shadow:    0 20px 60px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Ambient glow blobs */
body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,.18), transparent 70%);
  top: -250px; right: -150px;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,245,.12), transparent 70%);
  bottom: -200px; left: -100px;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin: auto;
}

section { padding: 110px 0; }

.section-tag {
  color: var(--primary);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 1.2rem;
  font-weight: 800;
  max-width: 12ch;
}

.section-desc {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(6,7,11,.72);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav-wrap {
  width: min(1200px, 92%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo img {
  height: 32px !important;
  width: auto !important;
  max-width: none;
  display: inline-block;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  transition: .25s;
}

.nav-links a:hover { color: #fff; }

.nav-btn {
  text-decoration: none;
  background: var(--gradient);
  color: #fff;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(79,142,247,.25);
  transition: .25s;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(79,142,247,.12);
  border: 1px solid rgba(79,142,247,.18);
  color: var(--primary);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -5px;
  margin-bottom: 2rem;
  font-weight: 800;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  transition: .25s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 15px 35px rgba(79,142,247,.25);
}

.btn-primary:hover { transform: translateY(-3px); }

.btn-secondary {
  border: 1px solid var(--border);
  color: #fff;
}

.btn-secondary:hover { border-color: rgba(255,255,255,.25); }

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.hero-stats strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.hero-stats span {
  color: var(--muted);
  font-size: .9rem;
}

/* Hero visual / dashboard */
.hero-visual { position: relative; }

.dashboard {
  background: rgba(19,23,34,.75);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  overflow: hidden;
}

/* Hero image inside dashboard */
.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
  transition: .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,142,247,.08), transparent 40%);
  opacity: 0;
  transition: .3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,142,247,.25);
  box-shadow: var(--shadow);
}

.service-card:hover::before { opacity: 1; }

/* Service icon image */
.service-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  border-radius: 12px;
}

.service-number {
  color: var(--primary);
  font-size: .8rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--muted);
  font-size: .96rem;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: .3s;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.project-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f8ef7, #7c6cf5);
}

/* When a real image is placed inside .project-image */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project:hover .project-image img { transform: scale(1.05); }

.project-content { padding: 1.8rem; }

.project-tag {
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: .14em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.project h3 {
  margin-bottom: .8rem;
  font-size: 1.2rem;
}

.project p {
  color: var(--muted);
  font-size: .92rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
}

/* Client avatar */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(79,142,247,.3);
}

.testimonial p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.testimonial strong {
  display: block;
  margin-bottom: .2rem;
}

.testimonial span {
  color: var(--primary);
  font-size: .9rem;
}
a {
  color: white;
  text-decoration: none; /* opcional, saca el subrayado */
}
/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
  background: linear-gradient(135deg, rgba(79,142,247,.14), rgba(124,108,245,.14));
  border: 1px solid rgba(79,142,247,.2);
  border-radius: 32px;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
}

.cta-box p {
  max-width: 55ch;
  margin: auto;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
}

.contact-info h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.15);
  color: var(--primary);
  font-size: .85rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: .25s;
  font-family: inherit;
}

input:focus,
textarea:focus { border-color: rgba(79,142,247,.4); }

textarea {
  min-height: 140px;
  resize: none;
}

button {
  border: none;
  background: var(--gradient);
  color: #fff;
  padding: 1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 2rem 0;
}

.footer-wrap {
  width: min(1200px, 92%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  color: var(--muted);
  font-size: .9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {

  .hero-grid,
  .contact-grid,
  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .dashboard { transform: none; }

  .hero { padding-top: 120px; }

  .nav-links { display: none; }

  .cta-box { padding: 3rem 2rem; }

}

@media (max-width: 700px) {

  section { padding: 80px 0; }

  .hero h1 { letter-spacing: -3px; }

  .hero-actions { flex-direction: column; }

  .btn-primary,
  .btn-secondary { text-align: center; }

  .hero-stats { gap: 1rem; }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }

}
