@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Oswald:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
  --white: #ffffff;
  --black: #000000;
  --gray: #56585e;
  --dark: #0d141a;
  --red: #d11111;
  --white-20: rgba(255,255,255,0.2);
  --white-0: rgba(255,255,255,0);
  --dark-alt: #1a1a1a;
  --light-gray: #b8c0cc;
  --bg-light: #eceff3;
  --dark-card: #1d1e20;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-menu a {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--dark);
  position: relative;
  transition: color 0.3s;
}

.navbar-menu a:hover { color: var(--black); }

.navbar-menu a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--black);
  padding-bottom: 4px;
}

.navbar-menu .btn-contacto {
  background: var(--black);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.navbar-menu .btn-contacto:hover {
  background: var(--dark-alt);
  transform: translateY(-1px);
}

.navbar-menu .btn-contacto.active {
  border-bottom: none;
  padding-bottom: 12px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-135deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 0;
  margin-top: 12px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: var(--bg-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 36px;
  opacity: 0.9;
}

.btn-hero {
  display: inline-block;
  border: 2px solid var(--white-20);
  color: var(--white);
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}

.btn-hero:hover {
  background: var(--white-20);
  border-color: var(--white);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  margin-top: 80px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}

.page-hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: clamp(15px, 1.8vw, 18px);
  opacity: 0.9;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  position: relative;
  background: var(--white);
  z-index: 1;
}

.section--gray {
  background: var(--bg-light);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ===== HOME SECTION 2 - Soluciones ===== */
.soluciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.soluciones-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.soluciones-text p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 32px;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.logos-grid img {
  max-height: 50px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.logos-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.soluciones-img {
  border-radius: 12px;
  overflow: hidden;
}

.soluciones-img img {
  width: 100%;
  border-radius: 12px;
}

/* ===== HOME SECTION 3 - Comprometidos ===== */
.clientes-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.cliente-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cliente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.cliente-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.cliente-card-body {
  padding: 24px;
}

.cliente-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cliente-card-body p {
  color: var(--gray);
  font-size: 14px;
}

.clientes-logos {
  text-align: center;
}

.clientes-logos img {
  max-width: 55%;
  margin: 0 auto;
}

.clientes-logos p {
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  margin-top: -4px;
}

/* ===== CONTACT SECTION (repeated) ===== */
.contacto-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
  z-index: 1;
}

.contacto-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}

.contacto-section .container {
  position: relative;
  z-index: 1;
}

.contacto-section h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 40px;
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(209,17,17,0.2);
}

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

.btn-enviar {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  background: var(--black);
  color: var(--white);
  padding: 14px 48px;
  border: none;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-enviar:hover {
  background: var(--dark-alt);
  transform: translateY(-1px);
}

/* ===== NOSOTROS ===== */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nosotros-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}

.nosotros-text p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 16px;
}

.nosotros-text p strong {
  color: var(--dark);
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat h3 {
  font-size: 42px;
  color: var(--red);
  font-weight: 700;
}

.stat p {
  font-size: 14px;
  color: var(--gray);
}

.nosotros-img {
  border-radius: 12px;
  overflow: hidden;
}

.nosotros-img img {
  width: 100%;
  border-radius: 12px;
}

/* Instagram Feed */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.instagram-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.instagram-item:hover img {
  transform: scale(1.05);
}

.instagram-item .play-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-item .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid var(--dark);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

.instagram-feed-widget {
  min-height: 200px;
}

.instagram-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray);
}

.instagram-note a {
  color: var(--red);
  font-weight: 700;
}

/* ===== REPRESENTACIONES ===== */
.rep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rep-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.rep-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.rep-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.rep-card-body {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.rep-card-body h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.rep-card-body p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}

.btn-red:hover {
  background: #b50e0e;
  transform: translateY(-1px);
}

/* Soporte section */
.soporte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.soporte-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.soporte-text p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 16px;
}

.soporte-text ul {
  margin-top: 8px;
}

.soporte-text ul li {
  padding: 6px 0;
  font-size: 16px;
  color: var(--gray);
}

.soporte-text ul li strong {
  color: var(--dark);
}

.soporte-text ul li::before {
  content: '\2022';
  margin-right: 8px;
  color: var(--dark);
}

.soporte-img {
  border-radius: 12px;
  overflow: hidden;
}

.soporte-img img {
  width: 100%;
  border-radius: 12px;
}

/* ===== CALIDAD / COMPROMISO ===== */
.calidad-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calidad-content img {
  border-radius: 12px;
  width: 100%;
}

.calidad-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.calidad-content ul li {
  padding: 8px 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.calidad-content ul li::before {
  content: '\2022';
  margin-right: 8px;
  color: var(--dark);
}

.calidad-content p {
  color: var(--gray);
  font-size: 15px;
  margin-top: 16px;
}

/* ===== CONTACTO PAGE ===== */
.contacto-page-hero {
  position: relative;
  padding: 120px 0 80px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  margin-top: 80px;
}

.contacto-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.contacto-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contacto-hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.contacto-hero-text p {
  font-size: 16px;
  opacity: 0.9;
}

.contacto-hero-form .form-card {
  max-width: 100%;
}

/* Oficina section */
.oficina-ref h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.oficina-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.oficina-top > div:first-child > p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.oficina-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.oficina-details-row h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.oficina-details-row p {
  color: var(--gray);
  font-size: 15px;
}

.oficina-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.oficina-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.oficina-media iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 12px;
}

/* ===== USADOS ===== */
.usados-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}

.usados-controls select,
.usados-controls input {
  padding: 10px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--dark);
  outline: none;
}

.usados-controls select:focus,
.usados-controls input:focus {
  border-color: var(--red);
}

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

.usado-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.usado-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.usado-card-img {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.usado-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usado-card-img .placeholder-icon {
  font-size: 48px;
  color: var(--light-gray);
  pointer-events: none;
}

.usado-card-img img {
  pointer-events: none;
}

.usado-card-img {
  position: relative;
}

.photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.usado-card-body {
  padding: 24px;
}

.usado-card-body h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.usado-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--gray);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.usado-tag--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.usado-details {
  margin: 12px 0 16px;
  font-size: 14px;
  color: var(--gray);
}

.usado-details span {
  display: block;
  padding: 2px 0;
}

.btn-consultar {
  display: inline-block;
  background: #25d366;
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}

.btn-consultar:hover {
  background: #1faa52;
  transform: translateY(-1px);
}

.usados-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray);
}

.usados-empty p { font-size: 18px; }

.usados-instructions {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 32px;
  margin-top: 48px;
}

.usados-instructions h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.usados-instructions ol {
  padding-left: 20px;
  color: var(--gray);
}

.usados-instructions ol li {
  padding: 6px 0;
  list-style: decimal;
}

.usados-instructions code {
  background: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.footer-social a:hover {
  background: var(--red);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-brand p {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.6;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p, .footer a {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--light-gray);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 48px;
  cursor: pointer;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-content {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.lightbox-img-wrap {
  position: relative;
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 50vh;
  object-fit: contain;
}

.lb-photo-prev,
.lb-photo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: var(--white);
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 4;
  line-height: 1;
}

.lb-photo-prev:hover,
.lb-photo-next:hover {
  background: rgba(0,0,0,0.7);
}

.lb-photo-prev { left: 12px; }
.lb-photo-next { right: 12px; }

.lb-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lb-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.lightbox-info {
  padding: 28px 32px 32px;
  overflow-y: auto;
}

.lightbox-info h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.lightbox-info #lightbox-tags {
  margin-bottom: 16px;
}

.lightbox-info #lightbox-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.lightbox-info #lightbox-meta {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    max-height: 90vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-info {
    padding: 20px 24px 24px;
  }

  .lightbox-info h3 {
    font-size: 20px;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST / SUCCESS ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2e7d32;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10000;
  transition: transform 0.4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .soluciones-grid,
  .nosotros-grid,
  .soporte-grid,
  .calidad-content,
  .contacto-hero-grid {
    grid-template-columns: 1fr;
  }

  .rep-cards,
  .clientes-cards,
  .usados-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container { height: 64px; }

  .navbar-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .navbar-menu.open {
    transform: translateY(0);
  }

  .hamburger { display: flex; }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    margin-top: 8px;
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown:hover .dropdown-content {
    opacity: 0;
    visibility: hidden;
  }

  .dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
  }

  .rep-cards,
  .clientes-cards,
  .usados-grid {
    grid-template-columns: 1fr;
  }

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

  .stats { gap: 24px; flex-wrap: wrap; }
  .stat h3 { font-size: 32px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .oficina-top {
    grid-template-columns: 1fr;
  }

  .oficina-media {
    grid-template-columns: 1fr;
  }

  .oficina-details-row {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 500px; }
  .page-hero { min-height: 250px; }

  .section { padding: 60px 0; }
}
