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

:root {
  --primary: #c70c0f;
  --primary-dark: #a0090b;
  --primary-light: #f53d40;
  --accent: #c70c0f;
  --accent-dark: #a0090b;
  --accent-light: #f53d40;
  --purple: #c70c0f;
  --purple-dark: #a0090b;
  --purple-light: #f53d40;
  --cyan: #c70c0f;
  --cyan-dark: #a0090b;
  --cyan-light: #f53d40;
  --orange: #c70c0f;
  --orange-dark: #a0090b;
  --orange-light: #f53d40;
  --bg: #000000;
  --bg-2: #080808;
  --bg-3: #0f0f0f;
  --bg-4: #1a1a1a;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --text-dim: #808080;
  --border: rgba(199, 12, 15, 0.15);
  --border-light: rgba(199, 12, 15, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(199, 12, 15, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(199, 12, 15, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(199, 12, 15, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(199, 12, 15, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(199, 12, 15, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(199, 12, 15, 0.4);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.header-logo {
  height: 40px;
  width: auto;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: var(--transition);
  border-radius: 2px;
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-nav .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

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

.header-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.header-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-gradient-1 {
  top: -200px;
  right: -200px;
  background: var(--purple);
}

.hero-gradient-2 {
  bottom: -200px;
  left: -200px;
  background: var(--cyan);
  opacity: 0.1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 100%;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-banner-img {
  flex-shrink: 0;
}

.hero-banner-img img {
  max-width: 320px;
  height: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(199, 12, 15, 0.1);
  border: 1px solid rgba(199, 12, 15, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #c70c0f;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .line {
  display: block;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat h3 {
  font-size: 2.2rem;
  font-weight: 800;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
  animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan-light);
  margin-bottom: 4px;
}

.price-usd {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

.service-card .price-from {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-card ul li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-card ul li::before {
  content: '→';
  color: var(--purple-light);
  font-weight: 700;
}

.service-card .btn {
  width: 100%;
  justify-content: center;
}

.service-card-featured {
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), var(--bg-3));
}

.service-card-featured .service-card-icon {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
}

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.portfolio-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 12, 15, 0.3);
  box-shadow: var(--shadow-glow);
}

.portfolio-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 3rem;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}

.portfolio-card-img-placeholder span {
  font-size: 1rem;
  color: var(--text-dim);
}

.portfolio-card-body {
  padding: 28px;
}

.portfolio-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.portfolio-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.portfolio-card-tech span {
  padding: 4px 10px;
  background: var(--bg-4);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-light);
  transition: var(--transition);
}

.portfolio-card-link:hover {
  gap: 10px;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(199, 12, 15, 0.3);
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* CAROUSEL */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.carousel-track {
  display: flex;
  gap: 24px; /* espacio entre tarjetas — ajusta a 16px, 24px o 32px según qué tanto aire quieras */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track .testimonial-card {
  min-width: calc((100% - 24px * 2) / 3); /* resta los 2 gaps entre 3 tarjetas visibles */
  box-sizing: border-box;
  padding-left: 14px;
  padding-right: 14px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  transition: var(--transition);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* FAQ */
.faq-list {
  max-width: 960px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-items: start;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-column .faq-item {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(124, 58, 237, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-3);
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-4);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

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

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-card-link:hover {
  gap: 10px;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail a, .contact-detail span {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-detail a:hover {
  color: var(--purple-light);
}

.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

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

.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' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-3);
}

.cf-turnstile {
  max-width: 100%;
  overflow: hidden;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 20px 0;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--bg-4);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.footer-social a:hover .social-icon {
  filter: brightness(0) invert(0.8) sepia(1) hue-rotate(340deg) saturate(10);
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-legal {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* PAGE HEADER */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.article {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* SERVICE DETAIL */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-category {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.service-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.service-category p {
  color: var(--text-muted);
}

/* ANIMATIONS ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--text);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-4);
  border-color: var(--purple);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.back-to-top.visible:hover {
  transform: translateY(-2px);
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(199, 12, 15, 0.4);
  transition: var(--transition);
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(199, 12, 15, 0.5);
}

.whatsapp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c70c0f;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #000;
  line-height: 1;
}

/* SVG ICON BASE */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* RESPONSIVE */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .hero-row {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-banner-img img {
    max-width: 180px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .hero-stat:nth-child(3) {
    grid-column: 1;
  }

  .hero-stat h3 {
    font-size: 1.6rem;
  }

  .hero-stat p {
    font-size: 0.8rem;
  }

  .hero-scroll {
    display: none;
  }

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

  .services-page-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand img {
    margin: 0 auto;
  }

  .footer-brand p {
    margin: 20px auto;
  }

  .footer-social {
    justify-content: center;
  }

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

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: 16px;
    right: 16px;
  }

  .cta-section {
    padding: 60px 0;
  }

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

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

  .carousel-track .testimonial-card {
    min-width: 100%;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .article {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }

  .contact-form {
    padding: 24px 20px;
    overflow: hidden;
  }

  .contact-grid {
    overflow: hidden;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 360px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .hero-banner-img img {
    max-width: 140px;
  }
}

.cursor-dot, .cursor-glow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  body a,
  body button,
  body input,
  body textarea,
  body select {
    cursor: none;
  }

  .cursor-dot, .cursor-glow {
    display: block;
  }
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #c70c0f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
  will-change: transform;
}

.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(199, 12, 15, 0.4), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  will-change: transform;
}

.cursor-dot.active {
  width: 14px;
  height: 14px;
}

.cursor-glow.active {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(199, 12, 15, 0.5), transparent 70%);
}

/* ===== ROB CHATBOT ===== */
.rob-widget {
  z-index: 220;
  font-family: var(--font);
}

.rob-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 220;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(199, 12, 15, 0.45);
  transition: var(--transition);
  padding: 0;
}
.rob-launcher svg {
  width: 26px;
  height: 26px;
}
.rob-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(199, 12, 15, 0.55);
}
.rob-launcher .rob-close-icon { display: none; }
.rob-widget.open .rob-launcher .rob-open-icon { display: none; }
.rob-widget.open .rob-launcher .rob-close-icon { display: block; }

.rob-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #000;
  line-height: 1;
}
.rob-badge.show { display: flex; }

.rob-chat {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 221;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 130px));
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: var(--transition);
  overflow: hidden;
}
.rob-widget.open .rob-chat {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rob-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  flex-shrink: 0;
}
.rob-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rob-avatar svg { width: 24px; height: 24px; }
.rob-header-info { flex: 1; min-width: 0; }
.rob-header-name { font-weight: 800; font-size: 0.95rem; }
.rob-header-sub { font-size: 0.72rem; opacity: 0.92; }
.rob-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
  margin-right: 5px;
}
.rob-header-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.rob-header-close svg { width: 18px; height: 18px; }
.rob-header-close:hover { background: rgba(255, 255, 255, 0.18); }

.rob-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}
.rob-messages::-webkit-scrollbar { width: 6px; }
.rob-messages::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

.rob-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}
.rob-msg-bot { align-self: flex-start; }
.rob-msg-user { align-self: flex-end; }
.rob-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 2px;
}
.rob-msg-avatar svg { width: 16px; height: 16px; }
.rob-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rob-msg-bot .rob-msg-bubble {
  background: var(--bg-4);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.rob-msg-user .rob-msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.rob-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  transition: var(--transition);
}
.rob-wa-btn svg { width: 18px; height: 18px; }
.rob-wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.rob-typing .rob-msg-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px;
}
.rob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: robBlink 1.2s infinite;
}
.rob-dot:nth-child(2) { animation-delay: 0.2s; }
.rob-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes robBlink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.rob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.rob-chip {
  background: var(--bg-4);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
}
.rob-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.rob-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
}
.rob-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-4);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.rob-input:focus { border-color: var(--primary); }
.rob-input::placeholder { color: var(--text-dim); }
.rob-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.rob-send svg { width: 20px; height: 20px; }
.rob-send:hover { transform: scale(1.08); }

.rob-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  padding: 8px 16px 12px;
  flex-shrink: 0;
}

/* Apilar botones flotantes: WhatsApp arriba del launcher de Rob */
.whatsapp-float { bottom: 96px; }
.back-to-top { bottom: 172px; }

@media (max-width: 968px) {
  .whatsapp-float { bottom: 72px; }
  .back-to-top { bottom: 128px; }
  .rob-launcher {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  .rob-chat {
    bottom: 76px;
    right: 16px;
  }
}
