:root {
  --primary: #0a0f2c;
  --accent: #7b5cff;
  --accent2: #00d4ff;
  --bg: #f7f9fc;
  --text: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* NAV */
.header {
  background: white;
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

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

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #0a0f2c, #1a1f4b);
  color: white;
  text-align: center;
  padding: 120px 20px;
}

h1 {
  font-size: 2.8rem;
}

section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 25px;
}

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

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #7b5cff, #00d4ff);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.cta {
  background: #0a0f2c;
  color: white;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 20px;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: green;
  color: white;
  padding: 15px;
  border-radius: 50%;
}

/* ANIMACIONES */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.logo {
  height: 50px;
  width: auto;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card {
  text-align: center;
  font-weight: 500;
}
/* SPLIT SECTION */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.split img {
  width: 100%;
  border-radius: 12px;
}

/* BENEFITS */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  text-align: center;
}

/* ANIMACIONES TIPO APPLE */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translate(0);
}

.delay {
  transition-delay: 0.2s;
}

.delay2 {
  transition-delay: 0.4s;
}

/* HERO ANIMADO */
.hero-animate h1 {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* HERO CONTACTO */
.contact-hero {
  background: linear-gradient(135deg, #0a0f2c, #1a1f4b);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7b5cff;
}

/* INFO */
.contact-info h3 {
  margin-bottom: 15px;
}

.contact-info .mail {
  margin-top: 20px;
  font-weight: 600;
}

.contact-box {
  background: white;
  padding: 20px;
  margin-top: 15px;
  border-radius: 10px;
}
/* INPUT PRO */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #888;
  transition: 0.3s;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:valid + label,
.input-group textarea:valid + label {
  top: -10px;
  left: 8px;
  font-size: 12px;
  color: #7b5cff;
  background: white;
  padding: 0 5px;
}

/* ERROR */
.error {
  color: red;
  font-size: 12px;
  display: none;
}

.input-error input,
.input-error textarea {
  border-color: red;
}

.input-error .error {
  display: block;
}

/* BOTÓN LOADING */
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: none;
  margin-left: 10px;
}

button.loading .loader {
  display: inline-block;
  animation: spin 1s linear infinite;
}

button.loading span {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* SUCCESS */
.success-msg {
  color: green;
  display: none;
  margin-top: 15px;
}
.service-box {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
}
.image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transition: 0.4s;
}

.image:hover {
  transform: scale(1.03);
}
/* CONTACTO PRO */
.contact-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-subtitle {
  color: #666;
  margin-bottom: 25px;
}

.contact-actions {
  margin-bottom: 25px;
}

.whatsapp-btn {
  display: inline-block;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
}

.contact-email {
  background: #f4f6fb;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.contact-email span {
  font-size: 12px;
  color: #888;
}

.contact-email p {
  font-weight: 600;
}

/* BENEFITS */
.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 18px;
  border-radius: 12px;
  transition: 0.3s;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.icon {
  font-size: 20px;
}
.results-section {
  padding: 100px 20px;
  background: #f8f9fc;
}

.results-header {
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 60px;
}

.results-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.results-header p {
  color: #666;
  font-size: 1.1rem;
}

/* GRID */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD */
.result-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  transition: 0.4s;
  border: 1px solid #eee;
}

.result-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* CONTENT */
.result-content h3 {
  margin-bottom: 10px;
}

.result-desc {
  color: #666;
  margin-bottom: 20px;
}

/* METRICS */
.result-metrics {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.result-metrics div {
  display: flex;
  flex-direction: column;
}

.result-metrics strong {
  font-size: 1.5rem;
  color: #4f46e5;
}

.result-metrics span {
  font-size: 0.8rem;
  color: #888;
}

/* LINK */
.result-link {
  text-decoration: none;
  font-weight: 600;
  color: #4f46e5;
}

/* CTA */
.results-cta {
  text-align: center;
  margin-top: 50px;
}
/* EMAIL PRO */
.contact-email-pro {
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #eaeaea;
  margin-bottom: 25px;
  transition: 0.3s;
}

.contact-email-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

/* HEADER */
.email-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.email-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.email-status {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}

/* EMAIL BOX */
.email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.email-icon {
  font-size: 18px;
}

.email-link {
  font-weight: 600;
  text-decoration: none;
  color: #111;
  transition: 0.3s;
}

.email-link:hover {
  color: #4f46e5;
}

/* NOTE */
.email-note {
  font-size: 0.9rem;
  color: #666;
}
/* ===== PORTFOLIO PREMIUM ===== */

.portfolio-hero {
  padding: 100px 20px 60px;
  text-align: center;
}

.portfolio-hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.portfolio-hero p {
  color: #666;
  font-size: 18px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding-bottom: 80px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* IMAGEN CONTROLADA */
.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

/* OVERLAY PRO */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* TEXTO */
.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 22px;
  margin: 10px 0;
}

.project-content p {
  color: #666;
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  background: linear-gradient(90deg, #6c63ff, #00c6ff);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
}
/* FIX ULTRA IMPORTANTE */

.portfolio-premium img {
  display: block;
  max-width: 100%;
}

.project-image {
  height: 260px !important;
}

.project-image img {
  height: 100% !important;
  object-fit: cover !important;
}

/* Evita que imágenes gigantes rompan todo */
img {
  max-width: 100%;
  height: auto;
}
/* ABOUT HERO */
.about-hero {
  background: linear-gradient(135deg, #0a0f2c, #1a1f4b);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

/* INTRO */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
}

/* VALUES */
.about-values {
  background: #f7f9fc;
  padding: 80px 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  text-align: center;
}

.value {
  background: white;
  padding: 30px;
  border-radius: 12px;
}

/* TEAM */
.team-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 25px;
}

.team-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  transition: 0.3s;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.team-card span {
  display: block;
  margin: 10px 0;
  color: #7b5cff;
  font-weight: 500;
}
