
:root {
  --bg-body-dark: #050816;
  --bg-elevated-dark: #101828;
  --bg-alt-dark: #060b1b;
  --text-main-dark: #f9fafb;
  --text-muted-dark: #9ca3af;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.2);
  --border-subtle-dark: #1f2933;

  --bg-body-light: #f3f4f6;
  --bg-elevated-light: #ffffff;
  --bg-alt-light: #e5e7eb;
  --text-main-light: #111827;
  --text-muted-light: #4b5563;
  --border-subtle-light: #d1d5db;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.35);

  --transition-fast: 0.18s ease-out;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1d4ed8, #020617 55%);
  background-attachment: fixed;
  color: var(--text-main-dark);
}

/* Light theme overrides */
html[data-theme="light"] body {
  background: radial-gradient(circle at top left, #dbeafe, #f3f4f6 55%);
  color: var(--text-main-light);
}

/* Utilities */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15,23,42,0.75), rgba(15,23,42,0.9));
}

html[data-theme="light"] .section-alt {
  background: #e5e7eb;
}

.section-muted {
  background: transparent;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted-dark);
}

html[data-theme="light"] .section-header p {
  color: var(--text-muted-light);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(3,7,18,0.92), rgba(15,23,42,0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(209, 213, 219, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  color: #f9fafb;
}

html[data-theme="light"] .logo-text {
  color: #111827;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #e5e7eb;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #22c55e, #2563eb);
  transition: width var(--transition-fast);
}

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

html[data-theme="light"] .nav a {
  color: #1f2937;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-actions button {
  border: none;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.header-actions button:hover {
  background: rgba(37,99,235,0.9);
  transform: translateY(-1px);
}

.lang-toggle {
  padding-inline: 0.65rem;
  gap: 0.25rem;
  width: auto;
}

.lang-toggle span {
  font-size: 0.8rem;
}

html[data-theme="light"] .header-actions button {
  background: #e5e7eb;
  color: #111827;
}

/* Mobile nav */

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(3,7,18,0.98);
    transform: translateY(-100%);
    transition: transform var(--transition-fast);
  }

  html[data-theme="light"] .nav {
    background: rgba(255,255,255,0.98);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  padding-top: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

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

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #93c5fd;
  margin-bottom: 0.3rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  color: var(--text-muted-dark);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

html[data-theme="light"] .hero-subtitle {
  color: var(--text-muted-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.50rem;
  font-size: 0.8rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.5);
}

.hero-badges i {
  color: #22c55e;
}

html[data-theme="light"] .hero-badges span {
  background: #ffffff;
}

/* Hero card */

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-card-inner {
  background: radial-gradient(circle at top left, #1d4ed8, #020617);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
  color: #e5e7eb;
  max-width: 420px;
}

.hero-card-inner h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.hero-card-inner p {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.trust-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4ade80;
}

/* Brand strip */

.brand-strip {
  padding: 1.5rem 0 0.5rem;
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(37,99,235,0.45), rgba(15,23,42,0.96));
  box-shadow: 0 14px 35px rgba(15,23,42,0.65);
}

.brand-strip-label {
  font-size: 0.9rem;
  white-space: nowrap;
}

.brand-strip-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}

.brand-strip-logos img {
  height: 48px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}

@media (max-width: 768px) {
  .brand-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.25rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 10px 28px rgba(37,99,235,0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(37,99,235,0.6);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.6);
}

html[data-theme="light"] .btn.ghost {
  color: #1f2937;
  border-color: #d1d5db;
}

/* License cards */

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .license-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.license-card {
  background: rgba(15,23,42,0.95);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148,163,184,0.4);
}

html[data-theme="light"] .license-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.license-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  color: #f9fafb;
}

.license-icon.kaspersky { background: #059669; }
.license-icon.mcafee { background: #b91c1c; }
.license-icon.eset { background: #0891b2; }
.license-icon.m365 { background: #f97316; }
.license-icon.windows { background: #2563eb; }
.license-icon.sage { background: #16a34a; }

.license-card h3 {
  margin: 0 0 0.45rem;
}

.license-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted-dark);
}

html[data-theme="light"] .license-card p {
  color: var(--text-muted-light);
}

.license-link {
  font-size: 0.85rem;
  text-decoration: none;
  color: #93c5fd;
}

/* Catalog */

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

html[data-theme="light"] .filter-label {
  color: var(--text-muted-light);
}

#brandFilter,
#searchInput {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
}

#searchInput {
  min-width: 180px;
}

html[data-theme="light"] #brandFilter,
html[data-theme="light"] #searchInput {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.95);
  box-shadow: var(--shadow-subtle);
}

html[data-theme="light"] .table-wrapper {
  background: #ffffff;
  border-color: #e5e7eb;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.catalog-table th,
.catalog-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.catalog-table thead {
  position: sticky;
  top: 0;
  background: rgba(15,23,42,0.98);
}

html[data-theme="light"] .catalog-table thead {
  background: #f3f4f6;
}

.catalog-table th {
  font-weight: 600;
  border-bottom: 1px solid rgba(148,163,184,0.7);
}

.catalog-table tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.7);
}

html[data-theme="light"] .catalog-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.catalog-table tbody tr:hover {
  background: rgba(37,99,235,0.22);
}

html[data-theme="light"] .catalog-table tbody tr:hover {
  background: rgba(191,219,254,0.7);
}

.catalog-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

html[data-theme="light"] .catalog-note {
  color: var(--text-muted-light);
}

/* Equipos */

.equip-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .equip-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.equip-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.equip-list li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.45rem;
}

.equip-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  position: absolute;
  left: 0;
  top: 0.45rem;
}

.equip-card-inner {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #22c55e, #020617);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

/* FAQ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.5);
  margin-bottom: 0.7rem;
}

html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #e5e7eb;
}

.faq-item summary {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary span {
  font-weight: 500;
}

.faq-item .faq-body {
  padding: 0 0.9rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted-dark);
}

html[data-theme="light"] .faq-item .faq-body {
  color: var(--text-muted-light);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.2fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.contact-details p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.contact-card-inner {
  border-radius: var(--radius-lg);
  background: rgba(15,23,42,0.96);
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148,163,184,0.5);
}

html[data-theme="light"] .contact-card-inner {
  background: #ffffff;
  border-color: #e5e7eb;
}

.contact-form .form-row {
  margin-bottom: 0.75rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .contact-form textarea {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

/* Legal */

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 1.75rem;
}

@media (max-width: 800px) {
  .legal-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148,163,184,0.4);
  padding: 1.5rem 0 1.1rem;
  background: rgba(3,7,18,0.98);
}

html[data-theme="light"] .site-footer {
  background: #111827;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 600;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 360px;
  color: #9ca3af;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-social a {
  margin-left: 0.65rem;
  font-size: 1.1rem;
}

.footer-copy {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(22,163,74,0.6);
  z-index: 60;
}

/* Small devices adjustments */

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-card {
    justify-content: stretch;
  }

  .hero-card-inner {
    max-width: none;
  }
}

/* Evitar scroll horizontal / recortes en móvil */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Contenedor general para que nunca desborde */
.section,
.hero,
.section-alt {
  padding-inline: 1.25rem;
}

/* Ajuste específico del hero en pantallas pequeñas */
@media (max-width: 768px) {
  .hero-inner,
  .hero-grid {
    padding-inline: 0;
    margin-inline: 0;
  }

  .hero-card,
  .hero-text {
    border-radius: 20px;
  }
}

.license-logo-wrap {
  display: flex;
  justify-content: left;
  align-items: left;
  margin-bottom: 1rem;
}

.license-logo-wrap img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.catalog-table-wrapper {
  max-height: 480px;          /* altura máx. en escritorio */
  overflow-y: auto;           /* scroll interno */
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
  background: var(--surface-elevated, #e6ebfa);
}

/* Opcional: hacer el encabezado de la tabla “pegado” arriba */
.catalog-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* En pantallas pequeñas bajamos un poco la altura */
@media (max-width: 768px) {
  .catalog-table-wrapper {
    max-height: 360px;
  }
}

.mcafee-hero {
  padding-top: 4.5rem;
}

.mcafee-products-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.mcafee-products-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 980px;
  margin: 1.5rem auto 0;
}

.mcafee-product-card {
  flex: 1 1 0;
}

@media (min-width: 900px) {
  .mcafee-products-grid {
    flex-direction: row;
  }
}

.mcafee-product-card .license-price {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.mcafee-product-card .license-price-value {
  font-size: 1.15rem;
}

.mcafee-product-card .license-footnote {
  font-size: 0.85rem;
  opacity: 0.8;
}

.mcafee-extra-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
