/* ===== HERO ===== */
.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-content {
  flex: 2;
  min-width: min(280px, 100%);
}

.hero-content h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-content h2 span { color: var(--accent); }

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
}

.hero-aside {
  flex: 1;
  min-width: min(180px, 100%);
}

.hero-aside a {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
}

.hero-aside a:hover { color: var(--accent); background: var(--accent-light); }
.hero-aside a i { width: 18px; color: var(--accent); margin-right: 0.5rem; flex-shrink: 0; }

.hero-video {
  margin: 0 auto 3rem;
  max-width: 720px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}

.hero-video video { width: 100%; display: block; }

/* ===== ABOUT ===== */
.about-section { padding-top: 4rem; padding-bottom: 4rem; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.about-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.08);
}

.about-card:hover::before { opacity: 1; }

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== SERVICES ===== */
.services-section { padding-top: 4rem; padding-bottom: 4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.service {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.1);
}

.service:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
}

.service:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--accent);
  color: #fff;
}

.service h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.service p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }

.service-features { list-style: none; }
.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-features li i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }

/* ===== GALLERY ===== */
.gallery-section { padding-top: 4rem; padding-bottom: 4rem; }

#gallery-search {
  width: 100%;
  max-width: 360px;
  padding: 0.65rem 1rem;
  margin: 0 auto 1.5rem;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  /* Full width on small screens */
}

#gallery-search:focus { border-color: var(--accent); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 36px;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.1);
}

.product-image {
  height: 180px;
  overflow: hidden;
  background: var(--accent-light);
  position: relative;
  flex-shrink: 0;
}

.product-image img { width: 100%; height: 100%; object-fit: cover; }

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-view {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a2e;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view:hover { transform: scale(1.08); }

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.product-category {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.product-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.product-price { font-weight: 600; font-size: 0.9rem; color: var(--text); flex-shrink: 0; }

.btn-contact {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: #25d366;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  min-height: 36px;
}

.btn-contact:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.no-results { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.no-results i { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.75rem; display: block; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 600px;
  width: 100%;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  margin: auto;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--border); }

#lightbox-img { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.lightbox-info h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.lightbox-info p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.6; }

/* ===== FOUNDER ===== */
.founder-section { padding-top: 4rem; padding-bottom: 4rem; }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.founder-img img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.founder-img img:hover { border-color: var(--accent); }

.founder-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.founder-text h3:first-child { margin-top: 0; }

.founder-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skills-list span {
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.values-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.values-list span {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.values-list span:hover { border-color: var(--accent); color: var(--accent); }

/* ===== POLICIES ===== */
.policies-section { padding-top: 4rem; padding-bottom: 4rem; }

.policies-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
  max-width: 640px;
  line-height: 1.7;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.policy {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.policy:hover { border-color: var(--accent); }

.policy h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.policy h3 i { color: var(--accent); flex-shrink: 0; }

.policy li {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.policy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding-top: 4rem; padding-bottom: 4rem; }

.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat h3 { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}

.testimony {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.testimony:hover { border-color: var(--accent); }

.testimony-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.testimony h3 { font-size: 0.9rem; font-weight: 600; }
.testimony .role { font-size: 0.8rem; color: var(--text-muted); }
.testimony .date { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.testimony .stars { color: #f59e0b; font-size: 0.8rem; }

.testimony blockquote {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.testimony .tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ===== HISTORY (legacy timeline) ===== */
.history-section { padding-top: 4rem; padding-bottom: 4rem; }

.history-logo { text-align: center; margin-bottom: 3rem; }
.history-logo img { width: 120px; border-radius: 12px; border: 2px solid var(--border); margin: 0 auto; }

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker i { font-size: 0.5rem; color: var(--accent); }

.timeline-content {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ===== TIMELINE SECTION (animated) ===== */
.timeline-section { padding-top: 4rem; padding-bottom: 4rem; }

.tl-header { text-align: center; margin-bottom: 3rem; }

.tl-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.tl-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), #0d9488, var(--accent));
  transform: translateX(-50%);
  border-radius: 2px;
  animation: tlGlow 3s ease-in-out infinite;
}

@keyframes tlGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg), 0 4px 16px rgba(20, 184, 166, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tl-item:hover .tl-badge {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 0 0 4px var(--bg), 0 6px 24px rgba(20, 184, 166, 0.45);
}

.tl-card {
  width: calc(50% - 2rem);
  margin-left: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tl-item:nth-child(odd) .tl-card { margin-left: 0; margin-right: auto; }

.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.1);
  border-color: var(--accent);
}

.tl-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tl-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.tl-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

.tl-item.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.tl-item.reveal.visible { opacity: 1; transform: translateY(0); }
.tl-item.reveal.visible .tl-badge { animation: badgePop 0.5s ease forwards; }

@keyframes badgePop {
  0% { transform: translateX(-50%) scale(0); }
  60% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ===== CORE VALUES ===== */
.core-values { margin-top: 3rem; }
.core-values h3 { text-align: center; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.1);
}

.value-card:hover::before { opacity: 1; }

.value-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
  display: block;
}

.value-card:hover i { transform: scale(1.2); }
.value-card h4 { font-size: 0.9rem; font-weight: 600; position: relative; z-index: 1; }
.value-card p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; position: relative; z-index: 1; }

/* ===== CONTACT ===== */
.contact-section { padding-top: 4rem; padding-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-info-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

.contact-info-card .row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.contact-info-card .row i { width: 16px; color: var(--accent); flex-shrink: 0; }

.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  /* Prevent iOS zoom on focus */
  font-size: max(16px, 0.875rem);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus { border-color: var(--accent); }

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

.form-card button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  min-height: 48px;
}

.form-card button:hover { opacity: 0.9; }
.form-card button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-response {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}

.form-response.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-response.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== MISIÓN Y VISIÓN ===== */
.mv-section { padding-top: 4rem; padding-bottom: 4rem; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mv-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.mv-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.1);
}

.mv-card:hover::before { opacity: 1; }

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 1rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.mv-card:hover .mv-icon { transform: scale(1.1) rotate(-5deg); }
.mv-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.mv-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 400px; margin: 0 auto; position: relative; z-index: 1; }

/* ===== FEATURED (Sistema de Ventas) ===== */
.featured-section { padding-top: 4rem; padding-bottom: 4rem; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.featured-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.featured-content .service-features { margin-top: 1rem; }

.btn-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.btn-featured:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ===== CAROUSEL ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.carousel { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide { min-width: 100%; }

.carousel-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: var(--bg);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.85rem;
  z-index: 2;
  /* Proper tap target */
  min-width: 36px;
  min-height: 36px;
}

.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  padding: 0;
  min-width: 8px; /* prevent shrink */
}

.carousel-dots .dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* ===== SOCIAL LINKS ===== */
.social-row { gap: 0.75rem !important; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover { background: var(--accent); color: #fff; }

/* ===== TUTORIAL BUTTON ===== */
.btn-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: #dc2626;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.btn-tutorial:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* ===== SECTIONS RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-img { text-align: center; }
  .founder-img img { max-width: 200px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }

  /* Tighter carousel buttons on small screens */
  .carousel-btn { width: 32px; height: 32px; font-size: 0.75rem; }
  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }
}

/* Tablet narrow */
@media (max-width: 640px) {
  .mv-grid { grid-template-columns: 1fr; }
  .form-card .row { grid-template-columns: 1fr; gap: 0; }
}

/* Phone */
@media (max-width: 480px) {
  .hero-aside { display: none; } /* Hide sidebar links on small phones to save space */

  #gallery-search { max-width: 100%; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .product-image { height: 130px; }
  .product-info { padding: 0.7rem; }
  .product-info h3 { font-size: 0.82rem; }
  .product-description { font-size: 0.73rem; }
  .product-footer {
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
  }
  .btn-contact {
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
  }

  .mv-card { padding: 1.25rem; }
  .mv-icon { width: 46px; height: 46px; font-size: 1rem; }
  .mv-card h3 { font-size: 1rem; }
  .mv-card p { font-size: 0.83rem; }

  .service { padding: 1.25rem; }
  .service-icon { width: 40px; height: 40px; font-size: 1rem; }

  .policy { padding: 1rem; }
  .testimony { padding: 1rem; }

  .stats {
    gap: 1rem;
    justify-content: space-around;
  }
  .stat h3 { font-size: 1.1rem; }

  .btn-featured,
  .btn-tutorial {
    width: 100%;
    justify-content: center;
  }

  /* Full-width lightbox on phone */
  .lightbox { padding: 0.5rem; }
  .lightbox-content { padding: 1rem; }
}

/* Very small */
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .product-image { height: 160px; }
  .mv-card { padding: 1rem; }
  .service { padding: 1rem; }
  .stats { flex-direction: column; align-items: center; }
}