/*
Theme Name: TGMMEDIC
Theme URI: https://tgmmedic.com/
Author: TGMMEDIC
Description: Tema ligero para TGM Medic, empresa de instrumental quirurgico y soluciones biomedicas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: tgmmedic
*/

:root {
  --green: #338e06;
  --green-bright: #69c43a;
  --green-dark: #133409;
  --teal: #0b7a75;
  --blue: #145c9e;
  --ink: #111d17;
  --muted: #607169;
  --line: #dbe8e1;
  --soft: #f2f7f4;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(19, 52, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.topbar {
  background: var(--green-dark);
  color: var(--white);
  font-size: 14px;
}

.topbar .container,
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .container {
  padding: 8px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 232, 225, 0.78);
  backdrop-filter: blur(14px);
}

.nav .container {
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--green-dark);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.menu,
.menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.menu a:hover {
  background: var(--soft);
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 13px;
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(19, 52, 9, 0.96), rgba(11, 122, 117, 0.78), rgba(20, 92, 158, 0.32)),
    var(--hero-image) center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 42px;
  align-items: center;
  padding: 78px 0;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-bright);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  font-size: clamp(30px, 4.5vw, 48px);
}

h3 {
  font-size: 23px;
}

.hero p {
  margin: 22px 0 30px;
  max-width: 680px;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.panel-content {
  padding: 20px;
}

.panel-content p {
  margin: 0 0 4px;
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 8px rgba(105, 196, 58, 0.18);
}

.metric-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px 0;
}

.metrics div {
  padding: 18px;
  border-radius: 12px;
  background: var(--soft);
}

.metrics strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 90px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 52, 9, 0.96), rgba(10, 58, 55, 0.96)),
    var(--catalog-image) center / cover;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.76);
}

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

.line-card,
.product-card,
.person {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.line-card {
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.line-card:hover {
  transform: translateY(-6px);
  border-color: rgba(51, 142, 6, 0.42);
}

.card-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-weight: 900;
}

.line-card p,
.product-card p,
.person p {
  color: var(--muted);
}

.line-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.line-card li::before {
  content: ">";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.product-card {
  padding: 28px;
  color: var(--ink);
}

.product-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: var(--white);
  background: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.product-card a {
  color: var(--green);
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.visual-stack {
  position: relative;
}

.main-visual {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mini-card {
  position: absolute;
  right: -18px;
  bottom: 24px;
  width: min(280px, 82%);
  padding: 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  color: var(--muted);
  font-size: 14px;
}

.values {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.values div {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
}

.values strong,
.values span {
  display: block;
}

.values span {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.case-card {
  min-height: 310px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 14px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, opacity 180ms ease;
}

.case-card:hover {
  transform: scale(1.02);
}

.case-card.is-hidden {
  display: none;
}

.case-card span {
  display: block;
  padding: 100px 18px 18px;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.person img {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
}

.person a {
  color: var(--green);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  padding: 34px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 52, 9, 0.96), rgba(11, 122, 117, 0.9)),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.contact-panel select option {
  color: var(--ink);
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(105, 196, 58, 0.18);
}

.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel textarea {
  min-height: 124px;
  resize: vertical;
}

.footer {
  padding: 48px 0 20px;
  color: var(--white);
  background: #0e2605;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer h3 {
  color: var(--green-bright);
}

.footer p {
  color: rgba(255, 255, 255, 0.78);
}

.copyright {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.page-content {
  padding: 80px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .topbar .container,
  .nav .container,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 16px;
    top: 15px;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu ul {
    flex-direction: column;
    align-items: stretch;
  }

  .menu.is-open {
    display: flex;
  }

  .hero-grid,
  .line-grid,
  .product-grid,
  .split-grid,
  .people,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .mini-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 54px 0;
  }

  .metrics,
  .cases,
  .form-row {
    grid-template-columns: 1fr;
  }

  .person {
    align-items: flex-start;
    flex-direction: column;
  }
}
