:root {
  --bg: #050a11;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #e8f3ff;
  --muted: #99aac2;
  --accent: #f2b35c;
  --accent-2: #63f0c5;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  filter: saturate(1.05) contrast(1.1);
}

/* Overlay sutil para mejorar contraste del texto sin perder la flama */
#bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(5, 10, 17, 0.35) 100%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cfilter id="n" x="0" y="0" width="100%25" height="100%25"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  opacity: 0.6;
  mix-blend-mode: soft-light;
  z-index: -1;
}

.page {
  position: relative;
  padding: 32px 28px 72px;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(5, 10, 17, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.logo {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

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

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 8px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c0f1a;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.button.tertiary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 14px 26px;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: flex-start;
  margin-top: 26px;
}

.hero-copy h1 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 10px 0 18px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(5, 10, 17, 0.8);
}

.hero-copy h1 span {
  color: var(--accent-2);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(99, 240, 197, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cfd9e8;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(5, 10, 17, 0.7);
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  color: #d9e3f7;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(99, 240, 197, 0.12), transparent 35%),
    radial-gradient(circle at 80% 40%, rgba(242, 179, 92, 0.14), transparent 38%),
    rgba(12, 16, 26, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(99, 240, 197, 0.5);
}

.metric {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.metric .label {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.metric .value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.metric .sub {
  color: #c3cee0;
  margin: 0;
}

.status-bar {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.status-item {
  display: grid;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding: 0 14px;
}

.section-head h2 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 8px 0 10px;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 6px 24px rgba(5, 10, 17, 0.7);
}

.section-head .lede {
  max-width: 780px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(12, 16, 26, 0.85), rgba(12, 16, 26, 0.75));
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(99, 240, 197, 0.16), transparent 36%);
  pointer-events: none;
}

.card-top {
  position: relative;
  z-index: 1;
}

.card .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(5, 10, 17, 0.7);
}

.card-copy {
  color: #c6d3e7;
  line-height: 1.55;
  margin: 0 0 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 1;
  position: relative;
}

.card-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #d9e6ff;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.step {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(99, 240, 197, 0.6);
}

.step-label {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.step-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(5, 10, 17, 0.7);
}

.step-copy {
  margin: 0;
  color: #c7d5eb;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.service-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  min-height: 180px;
}

.service-title {
  margin: 6px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(5, 10, 17, 0.7);
}

.service-copy {
  margin: 0;
  color: #c9d5e9;
  line-height: 1.55;
}

.cta {
  margin-top: 70px;
}

.cta-inner {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(99, 240, 197, 0.08), rgba(242, 179, 92, 0.08)),
    rgba(12, 16, 26, 0.75);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 22px 16px 60px;
  }

  .nav {
    padding: 14px 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .status-bar {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Carousel */
.portfolio-carousel {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.portfolio-carousel::before,
.portfolio-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.portfolio-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.portfolio-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 60s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track img {
  width: 400px;
  height: 225px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.carousel-track img:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-420px * 24));
  }
}

@media (max-width: 768px) {
  .carousel-track img {
    width: 300px;
    height: 169px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-320px * 24));
    }
  }
}

@media (max-width: 480px) {
  .carousel-track img {
    width: 260px;
    height: 146px;
  }

  .portfolio-carousel::before,
  .portfolio-carousel::after {
    width: 60px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 24));
    }
  }
}

/* Testimonials Section */
.testimonials {
  margin-top: 80px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(12, 16, 26, 0.9), rgba(12, 16, 26, 0.7));
  backdrop-filter: blur(12px);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0dae8;
  margin: 0 0 20px;
  padding-left: 10px;
  font-style: italic;
}

.testimonial-author {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-name {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.author-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* FAQ Section */
.faq {
  margin-top: 80px;
}

.faq-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item[open] {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: #c6d3e7;
  line-height: 1.7;
  font-size: 1rem;
}

/* Contact Form Section */
.contact-form-section {
  margin-top: 80px;
}

.contact-form {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(12, 16, 26, 0.9), rgba(12, 16, 26, 0.8));
  backdrop-filter: blur(16px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2399aac2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: #0c1018;
  color: var(--text);
}

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

.contact-form .button {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.form-note {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--accent-2);
  border-radius: 20px;
  background: rgba(99, 240, 197, 0.1);
}

.form-success p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-2);
  font-weight: 600;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

/* Location Section */
.location {
  margin-top: 60px;
  padding: 0;
}

.location-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(99, 240, 197, 0.05), rgba(242, 179, 92, 0.05)),
    rgba(12, 16, 26, 0.7);
  backdrop-filter: blur(12px);
}

.location-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  margin: 10px 0 8px;
  color: var(--text);
}

.location-info > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.05rem;
}

.location-hours {
  margin: 16px 0;
  padding: 10px 16px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #c6d3e7;
}

.location-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.location-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.location-contact a:hover {
  color: var(--accent-2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
