/* ============================================
   SmartLab3D — Styles (Light theme — bone white)
   ============================================ */

:root {
  --bg-bone: #f5efe3;
  --bg-bone-soft: #fbf6ea;
  --bg-card: #ffffff;
  --bg-elevated: #faf5e9;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6960;
  --text-muted: #8a8780;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --accent-bright: #06b6d4;
  --accent-soft: rgba(8, 145, 178, 0.1);
  --border: #e4ddc9;
  --border-strong: #d4c9ad;
  --shadow-sm: 0 1px 3px rgba(40, 35, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(40, 35, 25, 0.08);
  --shadow-lg: 0 20px 50px rgba(40, 35, 25, 0.12);
  --shadow-accent: 0 10px 40px -10px rgba(8, 145, 178, 0.35);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-bone);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Override Tailwind utility colors for light theme */
.bg-bg-dark { background: var(--bg-bone) !important; }
.bg-bg-card { background: var(--bg-bone-soft) !important; }
.text-white { color: var(--text-primary) !important; }
.text-text-secondary { color: var(--text-secondary) !important; }
.text-accent { color: var(--accent) !important; }
.border-border-subtle { border-color: var(--border) !important; }

/* ============================================
   NAV
   ============================================ */
#nav {
  backdrop-filter: blur(0px);
  background: transparent;
  transition: all 0.4s ease;
}

#nav.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(245, 239, 227, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo {
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.4s ease;
}

#nav.scrolled .logo {
  color: var(--text-primary);
}

.logo-3d {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  transition: background 0.4s ease;
}

#nav.scrolled .logo-3d {
  background: linear-gradient(180deg, #1a1a1a 0%, #555 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

#nav .logo .text-accent {
  color: var(--accent-bright);
  transition: color 0.4s ease;
}

#nav.scrolled .logo .text-accent {
  color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--text-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--text-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-accent:hover {
  gap: 10px;
  color: var(--accent-dark);
}

/* ============================================
   HERO — keeps dark video bg for contrast
   ============================================ */
#hero {
  background: var(--text-primary);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: brightness(0.55) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 26, 26, 0.25) 0%, rgba(26, 26, 26, 0.85) 100%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.5) 50%, var(--bg-bone) 100%);
  z-index: 1;
}

#hero h1, #hero p, #hero .hero-badge {
  color: #fff;
}

#hero h1 .text-accent {
  color: var(--accent-bright) !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

#hero p.text-text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}

#hero .btn-primary {
  background: var(--accent-bright);
  color: var(--text-primary);
  border-color: var(--accent-bright);
}

#hero .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.6);
}

#hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

#hero .btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  position: relative;
  z-index: 10;
}

.scroll-line {
  width: 2px;
  height: 8px;
  background: var(--accent-bright);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 100px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ============================================
   NAV link colors — white over hero, dark when scrolled
   ============================================ */
#nav .text-text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
  transition: color 0.4s ease;
}

#nav a:hover {
  color: #fff !important;
}

#nav.scrolled .text-text-secondary {
  color: var(--text-secondary) !important;
}

#nav.scrolled a:hover {
  color: var(--text-primary) !important;
}

/* Nav primary button — adapts to scroll state */
#nav .btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.95);
  transition: all 0.4s ease;
}

#nav .btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--text-primary);
  box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.5);
}

#nav.scrolled .btn-primary {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

#nav.scrolled .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* ============================================
   STEPS / PROCÉS
   ============================================ */
.step-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

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

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.step-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 24px;
  transition: transform 0.4s;
}

.step-card:hover .step-icon {
  transform: scale(1.1);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.step-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   QUALITY SECTION
   ============================================ */
.quality-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

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

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

.quality-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.3s;
}

.quality-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quality-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.quality-label {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.dot-accent {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================
   PIECE GALLERY
   ============================================ */
.piece-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.piece-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.piece-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 145, 178, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.piece-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.piece-card:hover img {
  transform: scale(1.08);
}

.piece-card:hover::after {
  opacity: 1;
}

/* ============================================
   SERVICES
   ============================================ */
.service-card {
  position: relative;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 1;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* ============================================
   PRICE CARDS
   ============================================ */
.price-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card-featured {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, var(--bg-card) 100%);
  border-color: var(--accent);
}

.price-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-unit {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* ============================================
   INFO BLOCKS & MAP
   ============================================ */
.info-block {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.info-label {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 700;
}

.info-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-block p {
  color: var(--text-secondary);
}

.map-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   FORM
   ============================================ */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-bone-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
  background: #fff;
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%230891b2' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.file-input {
  position: relative;
  cursor: pointer;
}

.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-bone-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.file-input:hover .file-input-label {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.file-input-label svg {
  flex-shrink: 0;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

#student-card-row {
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-bone-soft);
}

footer .text-white {
  color: var(--text-primary) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-anim] {
  opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .step-card,
  .service-card {
    padding: 32px 24px;
  }
  .price-card {
    padding: 28px 20px;
  }
  .contact-form {
    padding: 28px;
  }
  .map-frame {
    height: 220px;
  }
  .quality-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Floating contact buttons (WhatsApp + Mail)
   ============================================ */
.float-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.float-btn svg {
  width: 60%;
  height: 60%;
  display: block;
}

.float-whatsapp {
  background: #25D366;
}

.float-mail {
  background: #ffffff;
  border: 1px solid var(--border);
}

.float-mail svg {
  width: 64%;
  height: 64%;
}

@media (max-width: 640px) {
  .float-contact {
    bottom: 18px;
    right: 18px;
    gap: 12px;
  }
  .float-btn {
    width: 52px;
    height: 52px;
  }
}
