﻿/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CSS variables used across the theme */
:root {
  --muted: rgba(255, 255, 255, 0.95);
  --muted-2: rgba(255, 255, 255, 0.72);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===================== NAVBAR ===================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
}
.nav .logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff8c00, #ff0080);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links li {
  display: inline-block;
  margin-left: 2rem;
  transition: 0.3s;
}
.nav-links li:hover a {
  color: #ff8c00;
}

/* ===================== HERO ===================== */
.hero {
  /* leave space for the fixed nav at the top */
  padding: 8rem 2rem 2rem;
  height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff0080, #ff8c00);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
}
.hero h1 span {
  background: linear-gradient(90deg, #00fff7, #ff00f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.5s ease forwards;
}
.btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #ff00f7, #00fff7);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(255, 0, 247, 0.4);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 0, 247, 0.6);
}

/* ===================== SECCIONES ===================== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  color: #ff00f7;
}
.section-title::after {
  content: "";
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff0080, #00fff7);
  display: block;
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

/* ===================== SERVICIOS ===================== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.servicio-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.5s;
  box-shadow: 0 10px 30px rgba(255, 0, 247, 0.2);
}
.servicio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ff0080, #00fff7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.servicio-card p {
  font-size: 1rem;
}
.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 0, 247, 0.4);
}

/* ===================== PORTFOLIO ===================== */
.pricing {
  padding-top: 2rem;
}
.pricing-toggle {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: 999px;
  justify-content: center;
  margin: 0 auto 2rem auto;
}
.billing-toggle {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background 220ms var(--ease), color 220ms var(--ease),
    transform 160ms var(--ease);
}
.billing-toggle.active,
.billing-toggle[aria-pressed="true"] {
  background: linear-gradient(90deg, #ff00f7, #00fff7);
  color: #0a0a0a;
  transform: translateY(-2px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.price-card .card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.price-card .subtitle {
  font-size: 0.95rem;
  color: var(--muted-2);
  margin: 0;
}
.price-card .price-value {
  font-weight: 900;
  font-size: 2.4rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price-value .currency {
  font-size: 1rem;
  opacity: 0.85;
}
.price-card .price-value .period {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-2);
}
.price-card .features {
  list-style: none;
  display: block;
  padding-left: 0;
  color: var(--muted-2);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.price-card .features li {
  padding: 6px 0;
}
.price-card .btn-primary {
  align-self: start;
}
.price-card.recommended {
  background: linear-gradient(
    180deg,
    rgba(255, 0, 247, 0.06),
    rgba(0, 255, 247, 0.03)
  );
  border: 1px solid rgba(255, 0, 247, 0.18);
  box-shadow: 0 18px 50px rgba(255, 0, 247, 0.06);
}
.price-card .badge {
  position: absolute;
  right: 12px;
  top: -12px;
  background: linear-gradient(90deg, #ff0080, #00fff7);
  color: #0a0a0a;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-toggle {
    width: 100%;
  }
  .billing-toggle {
    flex: 1;
  }
  .price-card .price-value {
    font-size: 1.8rem;
  }
}

/* End pricing styles */
/* Portfolio grid - improved layout and visuals */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
}
.portfolio-item img {
  width: 100%;
  display: block;
  height: 260px;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.portfolio-item:hover img {
  transform: scale(1.06) translateY(-6px);
  filter: brightness(0.9) saturate(1.05);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.6),
    rgba(10, 10, 10, 0.45)
  );
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-overlay h3 {
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}

/* Overlay CTA link/button */
.portfolio-link {
  display: block;
  color: inherit;
}
.portfolio-overlay .overlay-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #ff0080, #00fff7);
  color: #070707;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(6px);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.portfolio-overlay .overlay-cta:hover {
  transform: translateY(0);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-overlay .overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-category {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0080, #ffb400);
  color: #070707;
  font-weight: 800;
}
.overlay-desc {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin: 0;
}
.portfolio-subtitle {
  text-align: center;
  color: var(--muted-2);
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-item img {
    height: 200px;
  }
  .portfolio-overlay {
    padding: 14px;
  }
}

/* ===================== TESTIMONIOS ===================== */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}
.testimonial {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 255, 247, 0.2);
  font-style: italic;
}
.testimonial.active {
  display: block;
}
.testimonial h4 {
  margin-top: 1rem;
  font-weight: 700;
  color: #ff0080;
}
.testimonial-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 10px;
}
.testimonial-carousel .prev {
  left: 1rem;
}
.testimonial-carousel .next {
  right: 1rem;
}
.testimonial-carousel button:hover {
  background: rgba(255, 0, 247, 0.3);
}

/* ===================== PROCESO ===================== */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.5s;
  box-shadow: 0 10px 30px rgba(255, 0, 247, 0.2);
}

/* ===================== FAQ / ACCORDION ===================== */
.faq {
  padding-top: 2rem;
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: box-shadow 320ms ease, transform 320ms ease;
}
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
  color: #ffffff; /* asegurar texto visible */
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-q .chev {
  transition: transform 320ms var(--ease);
  color: var(--muted-2);
}
.faq-a {
  padding: 0 18px 16px 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 360ms var(--ease), opacity 300ms var(--ease);
  color: var(--muted-2);
}
.faq-item.open .faq-a {
  max-height: 360px;
  opacity: 1;
  padding-top: 12px;
}
.faq-item.open .chev {
  transform: rotate(180deg);
}

/* Mejor foco para accesibilidad en botones de FAQ */
.faq-q:focus-visible {
  outline: 3px solid rgba(255, 0, 247, 0.25);
  outline-offset: 4px;
  border-radius: 10px;
}

/* small responsive tweak */
@media (max-width: 768px) {
  .faq-q {
    padding: 14px;
  }
  .faq-list {
    gap: 10px;
  }
}
.step h3 {
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ff0080, #00fff7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 0, 247, 0.4);
}

/* ===================== CONTACTO ===================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 0, 247, 0.5);
  box-shadow: 0 0 12px rgba(255, 0, 247, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.contact-form button {
  margin-top: 0.5rem;
  align-self: flex-start;
}
.form-feedback {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  min-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  pointer-events: none;
}
.form-feedback.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.form-feedback.success {
  background: rgba(0, 255, 200, 0.15);
  color: #00ffc8;
  border: 1px solid rgba(0, 255, 200, 0.3);
}
.form-feedback.error {
  background: rgba(255, 0, 100, 0.15);
  color: #ff0064;
  border: 1px solid rgba(255, 0, 100, 0.3);
}
.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .contact-form {
    gap: 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* prevenir zoom en mÃ³vil */
  }
}

/* ===================== FOOTER ===================== */
.footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  border-top: 2px solid #ff0080;
}
.footer .socials {
  margin-top: 1rem;
}
.footer .socials a {
  margin: 0 1rem;
  color: #ff0080;
  transition: 0.3s;
}
.footer .socials a:hover {
  color: #00fff7;
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== SCROLL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== MEDIA QUERIES ===================== */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 1rem 2rem;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
