/* ═══════════════════════════════════════════════════════════════
   PROLOGIC GLOBAL — Professional Styles
   White Hero, Clean Cards, Subtle Animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Base ───────────────────────────────────────────────── */
* {
  scroll-behavior: smooth;
}

::selection {
  background-color: #2563eb;
  color: white;
}

/* ── Hero Grid Pattern ──────────────────────────────────── */
.hero-grid {
  background-image: 
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Navbar link color transitions */
#navbar.scrolled .nav-link {
  color: #4b5563;
}

#navbar.scrolled .nav-link:hover {
  color: #2563eb;
}

#navbar.scrolled .nav-cta {
  border-color: #2563eb;
  color: #2563eb;
}

#navbar.scrolled .nav-cta:hover {
  background: #2563eb;
  color: white;
}

#navbar.scrolled .navbar-logo {
  opacity: 1;
}

#navbar.scrolled .menu-icon {
  color: #374151;
}

/* ── Professional Card ──────────────────────────────────── */
.pro-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

.pro-card.border-dashed {
  border-style: dashed;
  border-color: #e2e8f0;
}

/* ── Dark Card (for Servicios section) ──────────────────── */
.dark-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Feature Cards ──────────────────────────────────────── */
.feature-card {
  background: white;
  border-radius: 0.875rem;
  padding: 1.5rem;
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  border-radius: 1rem 1rem 0 0;
}

.feature-card:hover {
  border-color: #dbeafe;
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Carousel ───────────────────────────────────────────── */
.carousel-wrapper {
  overflow: hidden;
  border-radius: 0.875rem;
  position: relative;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.mockup-frame {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.mockup-frame:hover {
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12);
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.mockup-bar span:nth-child(1) { background: #fca5a5; }
.mockup-bar span:nth-child(2) { background: #fcd34d; }
.mockup-bar span:nth-child(3) { background: #86efac; }

.mockup-frame img {
  width: 100%;
  display: block;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #2563eb;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.98);
}

#carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

#carousel-dots button.active {
  background: #2563eb;
  width: 24px;
  border-radius: 4px;
}

/* ── Lightbox ───────────────────────────────────────────── */
#lightbox {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.show {
  display: flex;
  opacity: 1;
}

#lightbox img {
  animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-item {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #e2e8f0;
}

.faq-item.active {
  border-color: #dbeafe;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-weight: 500;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.125rem;
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.875rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ── Form ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-input::placeholder {
  color: #94a3b8;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 1.125rem;
  padding-right: 2.25rem;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  #carousel-prev { transform: translate(-6px, -50%); }
  #carousel-next { transform: translate(6px, -50%); }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  nav, .carousel-btn, #carousel-dots, #lightbox, footer {
    display: none !important;
  }
  
  #hero {
    background: white !important;
    color: black !important;
  }
}
