/* MOL EFV TECH - STYLE.CSS */
:root {
  --bg: #050816;
  --bg-soft: #0b1120;
  --surface: rgba(255, 255, 255, .06);
  --surface-strong: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .14);
  --blue: #2563eb;
  --cyan: #22d3ee;
  --green: #22c55e;
  --gold: #fbbf24;
  --white: #f8fafc;
  --muted: #94a3b8;
  --danger: #fb7185;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .24), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(34, 197, 94, .14), transparent 30%),
    var(--bg);
  font-family: "Poppins", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

img, video {
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3 {
  font-family: "Orbitron", sans-serif;
}

section {
  padding: 100px 8%;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 15px;
  border-radius: 10px;
  color: #020617;
  background: var(--cyan);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #020617;
  transition: opacity .7s ease, visibility .7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: min(90%, 430px);
  text-align: center;
}

.loader-content img {
  width: 110px;
  border-radius: 22px;
  box-shadow: 0 0 35px rgba(34, 211, 238, .45);
}

.loader h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--cyan);
}

.loader p {
  margin-top: 12px;
  color: var(--muted);
}

.loading-bar {
  height: 8px;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #111827;
}

.loading-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  animation: loading 2.8s forwards;
}

.loading-text {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: var(--green);
  font-size: .82rem;
}

@keyframes loading {
  to { width: 100%; }
}

/* Navegación */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, .74);
  backdrop-filter: blur(18px);
  transition: .3s ease;
}

.navbar.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(2, 6, 23, .96);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  filter: drop-shadow(0 0 14px rgba(34,211,238,.55));
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: .92rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  background: var(--surface);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 145px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,6,23,.96) 0%, rgba(2,6,23,.78) 48%, rgba(2,6,23,.22) 100%),
    url("../img/gamer.png") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 17px;
  border: 1px solid rgba(34, 211, 238, .65);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .08);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98;
  text-shadow: 0 0 24px rgba(37,99,235,.85), 0 0 55px rgba(34,211,238,.45);
}

.hero h2 {
  margin: 25px 0;
  color: var(--cyan);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.4;
}

.hero p {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 25px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
  transform: translateY(-5px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 26px rgba(34,211,238,.38);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #15803d, var(--green));
  box-shadow: 0 0 26px rgba(34,197,94,.35);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

.hero-badges i {
  color: var(--cyan);
}

/* Encabezados */
.section-header {
  max-width: 850px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-header > span {
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.section-header h2 {
  margin: 13px 0;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.section-header p {
  color: var(--muted);
  line-height: 1.8;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.stats article {
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(15px);
}

.stats strong,
.stats article > span {
  color: var(--cyan);
  font: 700 2.5rem "Orbitron", sans-serif;
}

.stats p {
  margin-top: 10px;
  color: var(--muted);
}

/* Cards */
.service-grid,
.advantages-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 24px;
}

.service-card,
.advantage-card,
.price-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.service-card:hover,
.advantage-card:hover,
.price-card:hover {
  transform: translateY(-10px);
  border-color: rgba(34,211,238,.75);
  box-shadow: 0 20px 55px rgba(34,211,238,.15);
}

.icon,
.advantage-card > i,
.price-card > i {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  color: white;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 24px rgba(34,211,238,.28);
}

.service-card h3,
.advantage-card h3,
.price-card h3 {
  margin-bottom: 13px;
}

.service-card p,
.advantage-card p,
.price-card p {
  color: var(--muted);
  line-height: 1.75;
}

/* Sistemas */
.systems-section {
  background: rgba(255,255,255,.018);
}

.systems-image {
  width: min(100%, 1050px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.systems-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #020617;
}

.system-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.system-tags span {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.system-tags i {
  margin-right: 8px;
  color: var(--cyan);
}

/* Historia */
.about-content {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 45px;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.about-card {
  padding: 42px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
}

.about-card > i {
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 4rem;
}

.about-card p {
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* Mascota flotante */
.mascot-section {
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at center, rgba(34,211,238,.11), transparent 55%);
}

.mascot-stage {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.mascot-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%);
  filter: blur(35px);
}

.floating-mascot {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: 70vh;
  border: 1px solid rgba(34,211,238,.5);
  border-radius: 28px;
  object-fit: contain;
  background: #020617;
  box-shadow: 0 25px 70px rgba(34,211,238,.22);
  animation: mascotFloat 4.8s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-24px) rotate(.4deg); }
}

/* Before/After */
.results-section {
  background: rgba(255,255,255,.018);
}

.before-after-grid {
  display: grid;
  gap: 24px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
}

.comparison-card > i {
  color: var(--cyan);
  font-size: 2rem;
}

.before,
.after {
  padding: 25px;
  border-radius: 20px;
}

.before {
  border: 1px solid rgba(251,113,133,.35);
  background: rgba(251,113,133,.07);
}

.after {
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.07);
}

.before span {
  color: var(--danger);
}

.after span {
  color: var(--green);
}

.before h3,
.after h3 {
  margin: 9px 0 15px;
}

.before ul,
.after ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

/* Galería */
.gallery {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #020617;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 22px 20px;
  background: linear-gradient(transparent, rgba(2,6,23,.94));
  font-family: "Orbitron", sans-serif;
}

/* Precios */
.price-card {
  text-align: center;
}

.price-card > i {
  margin-left: auto;
  margin-right: auto;
}

.price-card strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--green);
  font: 700 1.35rem "Orbitron", sans-serif;
}

/* Diagnóstico y formularios */
.diagnostic-form,
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.diagnostic-form {
  grid-template-columns: repeat(3, 1fr);
}

.diagnostic-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
}

label {
  display: grid;
  gap: 8px;
  color: #dbeafe;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--white);
  background: rgba(2,6,23,.85);
}

select option {
  color: white;
  background: #0b1120;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.diagnostic-result {
  max-width: 760px;
  margin: 25px auto 0;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(34,197,94,.4);
  border-radius: 24px;
  background: rgba(34,197,94,.07);
}

.diagnostic-result p {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.contact-box {
  display: grid;
  gap: 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: .3s ease;
}

.contact-btn:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
}

.contact-btn i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.45rem;
  background: rgba(34,211,238,.12);
  color: var(--cyan);
}

.contact-btn span {
  display: grid;
  gap: 3px;
}

.contact-btn small,
.contact-form small {
  color: var(--muted);
}

.contact-btn.email {
  background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(14,165,233,.09));
}

.contact-btn.instagram {
  background: linear-gradient(
    135deg,
    rgba(131, 58, 180, .26),
    rgba(225, 48, 108, .22),
    rgba(252, 175, 69, .16)
  );
  border-color: rgba(225, 48, 108, .35);
}

.contact-btn.instagram i {
  color: #f472b6;
  background: rgba(225, 48, 108, .14);
}

.contact-btn.instagram:hover {
  border-color: #f472b6;
  box-shadow: 0 18px 40px rgba(225, 48, 108, .18);
}

/* Footer */
footer {
  padding: 60px 8%;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #020617;
}

.footer-logo img {
  width: 90px;
  border-radius: 18px;
}

.footer-logo h2 {
  margin: 15px 0 8px;
  color: var(--cyan);
}

.footer-logo p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
}

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

.copyright {
  color: #64748b;
  font-size: .9rem;
}

/* Botones flotantes */
.whatsapp-float,
.btn-top,
.music-toggle {
  position: fixed;
  right: 24px;
  z-index: 997;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 1.35rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    opacity .3s ease;
}

.whatsapp-float:hover,
.btn-top:hover,
.music-toggle:hover {
  transform: translateY(-4px);
}

.whatsapp-float {
  bottom: 22px;
  background: var(--green);
}

.btn-top {
  bottom: 90px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transition: .3s ease;
}

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

.music-toggle {
  bottom: 154px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 22px rgba(236,72,153,.28);
}

.music-toggle.playing {
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 24px rgba(34,211,238,.42);
}


/* Animaciones al scroll */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .75s ease, transform .75s ease;
}

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

/* Imagen de los sistemas operativos */

.systems-image {
    width: min(100%, 950px);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.systems-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
}


/* Galería de tecnología */

.gallery {
    width: min(100%, 1150px);
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.gallery-item,
.gallery-item.gallery-wide {
    width: 100%;
    height: 280px;
    min-height: 0;

    grid-column: auto;
    grid-row: auto;

    overflow: hidden;
    border-radius: 22px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Las imágenes de sistemas y del logo no se recortan */

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img {
    object-fit: contain;
    padding: 10px;
    background: #020617;
}


/* Tablets */

@media (max-width: 900px) {

    .systems-image {
        max-width: 720px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item,
    .gallery-item.gallery-wide {
        height: 250px;
    }

}


/* Celulares */

@media (max-width: 640px) {

    .systems-image {
        width: 100%;
        max-width: 100%;
    }

    .systems-image img {
        max-height: 320px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item,
    .gallery-item.gallery-wide {
        height: 220px;
    }

}
