:root {
  --bg: #0B0F14;
  --bg-soft: #11161D;
  --bg-dark: #0E1319;
  --primary: #7CFF3A;
  --primary-hover: #5BE625;
  --text: #E5E7EB;
  --text-soft: #9CA3AF;
  --border: #1F2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg) url("../imagenes/background.jpg") center / cover no-repeat fixed;
  color: var(--text);
  line-height: 1.6;
}

@supports (background-image: image-set(url("../imagenes/background.webp") type("image/webp"))) {
  body {
    background-image: image-set(
      url("../imagenes/background.webp") type("image/webp"),
      url("../imagenes/background.jpg") type("image/jpeg")
    );
  }
}

.site-header {
  padding: 28px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 200px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-header {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

#servicios .container {
  max-width: 1400px;
}

.section {
  padding: 100px 0;
}

#servicios {
  padding-bottom: 70px;
}

#nosotros {
  padding-top: 70px;
}

.hero.section {
  padding-bottom: 60px;
}

section[id] {
  scroll-margin-top: 120px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--text-soft);
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  animation: float 6s ease-in-out infinite;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.card {
  background: var(--bg-soft);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.services-detail {
  margin-top: 70px;
}

.services-intro {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.services-intro h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.services-intro p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.services-rows {
  display: grid;
  gap: 16px;
}

.service-row {
  background: rgba(13, 18, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.service-row:hover,
.service-row:focus-within,
.service-row:focus {
  border-color: rgba(124, 255, 58, 0.6);
  box-shadow: 0 12px 30px rgba(7, 10, 12, 0.35);
}

.service-row-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-row-header h4 {
  font-size: 1.1rem;
  margin-right: auto;
}

.service-row-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 58, 0.35);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease, border 0.3s ease;
}

.service-row-toggle::before,
.service-row-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.service-row-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-row-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  margin-top: 0;
}

.service-row:hover .service-row-body,
.service-row:focus-within .service-row-body,
.service-row:focus .service-row-body {
  max-height: 420px;
  opacity: 1;
  margin-top: 16px;
}

.service-row:hover .service-row-toggle,
.service-row:focus-within .service-row-toggle,
.service-row:focus .service-row-toggle {
  border-color: rgba(124, 255, 58, 0.7);
  transform: rotate(45deg);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 255, 58, 0.12);
  border: 1px solid rgba(124, 255, 58, 0.35);
  color: var(--primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon i {
  font-size: 22px;
  line-height: 1;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.service-list li::before {
  content: "-";
  color: var(--primary);
  margin-right: 8px;
}

.service-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.service-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-bullets li:not(:last-child)::before {
  content: "-";
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .service-row {
    padding: 18px;
  }
}

.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}

.feature {
  flex: 1;
  min-width: 200px;
  padding: 210px 24px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  font-family: inherit;
  background: rgba(7, 10, 12, 0.65);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: 0.3s ease;
}

.feature:hover {
  border-color: var(--primary);
}

.feature-label {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6, 9, 12, 0.75);
  border: 1px solid rgba(124, 255, 58, 0.25);
  color: var(--text);
}

.feature-hint {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.feature:hover .feature-hint,
.feature:focus-visible .feature-hint {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.7);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  width: min(640px, 92vw);
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #0d1318;
  border: 1px solid rgba(124, 255, 58, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.modal-body {
  color: var(--text-soft);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 1px solid rgba(124, 255, 58, 0.3);
  background: rgba(124, 255, 58, 0.08);
  color: var(--text);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cta {
  text-align: center;
  background: rgba(17, 22, 29, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.6);
  box-shadow: 0 20px 40px rgba(6, 9, 12, 0.35);
  backdrop-filter: blur(6px);
}

.contact-form {
  margin-top: 30px;
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: center;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #0B0F14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
  font-size: 26px;
  color: #0B0F14;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}

.form-alert {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-alert.success {
  border-color: #22c55e;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.form-alert.error {
  border-color: #ef4444;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.08);
}

footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: rgba(124, 255, 58, 0.08);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(124, 255, 58, 0.15), 0 12px 26px rgba(12, 22, 12, 0.35);
}

.btn-primary:hover {
  background: rgba(124, 255, 58, 0.18);
  color: #eaffdb;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(124, 255, 58, 0.35), 0 16px 34px rgba(12, 22, 12, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(229, 231, 235, 0.9);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }
}


.ventas-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/Componentes.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.ventas-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.15), rgba(10, 14, 18, 0.65));
  z-index: 1;
}

.ventas-img > * {
  position: relative;
  z-index: 2;
}

.ventas-img .btn {
  margin-top: auto;
  align-self: flex-start;
}

.ventas-img .btn-primary:hover {
  background: rgba(10, 14, 18, 0.55);
  border-color: rgba(229, 231, 235, 0.9);
  color: #fff;
}


.ventas-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/Componentes.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.ventas-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.15), rgba(10, 14, 18, 0.65));
  z-index: 1;
}

.ventas-img > * {
  position: relative;
  z-index: 2;
}

.ventas-img .btn {
  margin-top: auto;
  align-self: flex-start;
}

.servicios-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/Servicios_it.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.servicios-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.15), rgba(10, 14, 18, 0.65));
  z-index: 1;
}

.servicios-img > * {
  position: relative;
  z-index: 2;
}

.servicios-img .btn {
  margin-top: auto;
  align-self: flex-start;
}

.servicios-img .btn-outline {
  background: rgba(10, 14, 18, 0.55);
  border-color: rgba(229, 231, 235, 0.9);
  color: #fff;
}

.servicios-img .btn-outline:hover {
  border-color: var(--primary);
  color: #fff;
}

.features1-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/features1.svg');
  background-size: 120px;
  background-position: center 36px;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.features2-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/features2.svg');
  background-size: 120px;
  background-position: center 36px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.features3-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/features3.svg');
  background-size: 120px;
  background-position: center 36px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}

.features4-img {
  position: relative;
  overflow: hidden;
  background-image: url('../imagenes/features4.svg');
  background-size: 120px;
  background-position: center 36px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  z-index: 0;
}