@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;700;900&display=swap');

:root {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --text: #101818;
  --muted: #5d6a6a;
  --primary: #00bfb3;
  --primary-dark: #008f86;
  --border: rgba(0, 191, 179, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0,191,179,.16), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.radical {
  --bg: #030606;
  --surface: rgba(3, 10, 10, 0.78);
  --text: #f2f2f2;
  --muted: #b8c1c1;
  --primary: #00fff0;
  --primary-dark: #00bfb3;
  --border: rgba(0,255,240,.45);

  background:
    radial-gradient(circle at 75% 20%, rgba(0,255,240,.22), transparent 28%),
    linear-gradient(rgba(0,0,0,.88), rgba(0,0,0,.96)),
    url("assets/logo-visiolab.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container {
  width: min(90%, 1240px);
  margin: auto;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 86px;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body.radical .header {
  background: rgba(0,0,0,.72);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo img {
  width: 175px;
  height: 64px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .8px;
}

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

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary-dark);
  padding: 12px 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

body.radical .theme-toggle,
body.radical .menu-toggle {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

h1, h2 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(52px, 7vw, 110px);
  max-width: 720px;
}

h1 span,
h2 span {
  color: var(--primary);
}

.hero-content p {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  margin: 28px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #021010;
  border: 1px solid var(--primary);
  padding: 15px 26px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,191,179,.25);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
}

body.radical .btn-secondary {
  color: var(--primary);
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  max-width: 620px;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}

body.radical .hero-logo img {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 50px rgba(0,255,240,.5));
}

.section {
  padding: 110px 0;
}

.section h2 {
  font-size: clamp(42px, 5vw, 76px);
  max-width: 900px;
  margin-bottom: 45px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card,
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px;
  border-radius: 22px;
  min-height: 210px;
  box-shadow: 0 22px 50px rgba(0,0,0,.06);
  transition: .3s;
}

.card:hover,
.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

body.radical .card,
body.radical .case-card {
  box-shadow: 0 0 35px rgba(0,255,240,.12);
}

.card h3,
.case-card h3 {
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-size: 24px;
}

body.radical .card h3,
body.radical .case-card h3 {
  color: var(--primary);
}

.card p,
.case-card p,
.contact p {
  color: var(--muted);
}

.cases {
  background: rgba(0,191,179,.06);
}

body.radical .cases {
  background: rgba(0,0,0,.5);
}

.case-card small {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
}

.case-card strong {
  display: block;
  color: var(--primary);
  font-size: 54px;
  margin-top: 20px;
}

.case-card span {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  border-radius: 14px;
  font: inherit;
}

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

.footer {
  text-align: center;
  padding: 35px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity .8s ease, transform .8s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 86px;
    right: 5%;
    width: 260px;
    padding: 25px;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    max-width: 420px;
  }

  .theme-toggle {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .logo img {
    width: 130px;
  }

  .header-inner {
    gap: 10px;
  }

  h1 {
    font-size: 54px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}


/* WHATSAPP BASE */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* MODO RADICAL */
body.radical .whatsapp-btn {
  background: transparent;
  border: 2px solid #00fff0;
  color: #00fff0;
  box-shadow:
    0 0 10px #00fff0,
    0 0 25px #00fff0,
    inset 0 0 10px rgba(0,255,240,0.3);
}

body.radical .whatsapp-btn:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow:
    0 0 20px #00fff0,
    0 0 50px #00fff0;
}

/* EFECTO PULSO SOLO EN RADICAL */
body.radical .whatsapp-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00fff0;
  animation: pulse 1.5s infinite;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.form-status {
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
}

.form-status.success {
  color: #00b894;
}

.form-status.error {
  color: #ff4d4d;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
