/* ================================================
   FYP Marketing – styles.css
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #6C63FF;
  --primary-dark:  #4F46E5;
  --primary-light: #A5B4FC;
  --accent:        #F59E0B;
  --wa:            #25D366;
  --bg:            #0A0A0F;
  --bg-2:          #111118;
  --bg-card:       #16161F;
  --border:        rgba(255,255,255,0.08);
  --text:          #F1F0FF;
  --text-muted:    #9CA3AF;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 20px 60px rgba(108,99,255,0.15);
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 32px rgba(108,99,255,0.4);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(108,99,255,0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.btn-catalog {
  background: var(--accent);
  color: #17120a;
  box-shadow: 0 8px 28px rgba(245,158,11,0.25);
}

.catalog-section { background: #0d0d14; border-top: 1px solid var(--border); }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.catalog-toolbar .section-title { margin-bottom: 8px; }
.catalog-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: 28px; align-items: start; }
.product-form { min-width: 0; padding: 28px; }
.product-form h3 { margin-bottom: 24px; font-size: 1.2rem; }
.product-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-form input { min-width: 0; width: 100%; }
.product-form input[type="file"] { padding: 10px; font-size: 0.82rem; overflow: hidden; }
.product-form input[type="file"]::file-selector-button { margin-right: 8px; padding: 6px 8px; border: 0; border-radius: 4px; background: var(--text); color: #17171f; cursor: pointer; }
.product-form .form-note { min-height: 16px; margin-top: 0; }
.catalog-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; min-width: 0; min-height: 200px; }
.catalog-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 200px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; padding: 24px; }
.product-card { overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.product-card img { display: block; width: 100%; max-height: 260px; aspect-ratio: 1; object-fit: cover; background: rgba(255,255,255,0.04); }
.product-card div { padding: 16px; }
.product-card h3 { font-size: 1rem; margin-bottom: 6px; }
.product-card p { color: var(--accent); font-weight: 800; margin-bottom: 6px; }
.product-card span { color: var(--text-muted); font-size: 0.78rem; }

.modal-backdrop[hidden], .catalog-section[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(5,5,10,0.78); backdrop-filter: blur(10px); }
.access-modal { position: relative; width: min(100%, 500px); padding: 36px; background: var(--bg-card); border: 1px solid rgba(165,180,252,0.25); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.access-modal h2 { font-size: 1.8rem; margin-bottom: 8px; }
.access-modal > p:not(.section-label) { color: var(--text-muted); margin-bottom: 24px; }
.modal-close { position: absolute; top: 12px; right: 16px; color: var(--text-muted); background: transparent; border: 0; font-size: 2rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.admin-generate { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.admin-generate p { color: var(--text-muted); }
.generated-code { margin-top: 18px; padding: 16px; color: var(--accent); background: rgba(245,158,11,0.1); border: 1px dashed var(--accent); border-radius: var(--radius-sm); text-align: center; font: 800 1.3rem monospace; letter-spacing: 1px; }
.admin-modal #adminLoginForm[hidden] { display: none; }
.admin-modal .admin-content[hidden] { display: none; }

@media print {
  body > *:not(#catalogo) { display: none !important; }
  #catalogo { display: block !important; padding: 20px; background: #fff; color: #111; }
  .catalog-toolbar, .product-form { display: none; }
  .catalog-preview { grid-template-columns: repeat(3, 1fr); }
  .product-card { break-inside: avoid; color: #111; }
}

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 22px;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #1fbe5b;
  box-shadow: 0 12px 36px rgba(37,211,102,0.5);
}

.btn-full { width: 100%; justify-content: center; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   NAV
   ================================================ */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { text-decoration: none; font-size: 1.3rem; font-weight: 800; }
.logo-fyp { color: var(--primary); }
.logo-mkt { color: var(--text); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 30%, rgba(108,99,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(79,70,229,0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  filter: drop-shadow(0 32px 64px rgba(108,99,255,0.25));
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.35);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ================================================
   SECTIONS SHARED
   ================================================ */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ================================================
   SERVICIOS
   ================================================ */
.servicios { background: var(--bg-2); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(108,99,255,0.35);
}

.card-featured {
  border-color: rgba(108,99,255,0.5);
  background: linear-gradient(160deg, rgba(108,99,255,0.1), var(--bg-card));
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ================================================
   PROCESO
   ================================================ */
.proceso { background: var(--bg); }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}
.step h4 { font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  align-self: center;
  padding: 8px;
  opacity: 0.5;
}

/* ================================================
   CONTACTO
   ================================================ */
.contacto {
  background: var(--bg-2);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contacto-info { padding-top: 8px; }

.contacto-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 20px 0 36px;
  line-height: 1.7;
}
.contacto-desc strong { color: var(--text); }

.contacto-data {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.contacto-item a {
  color: var(--wa);
  text-decoration: none;
  font-weight: 600;
}
.contacto-item a:hover { text-decoration: underline; }
.ci-icon { font-size: 1.1rem; }

/* ── FORM ── */
.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select option {
  background: #1a1a28;
  color: var(--text);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #4B5563; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  font-size: 0.78rem;
  color: #EF4444;
  min-height: 16px;
}

textarea { resize: vertical; min-height: 100px; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -8px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand p { color: var(--text-muted); font-size: 0.8rem; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }
.footer-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--wa);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.footer-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-toolbar { align-items: start; flex-direction: column; }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 420px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .form-row, .product-form .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-wrapper { padding: 28px 20px; }

  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; }
  .step-arrow { transform: rotate(90deg); }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .catalog-actions, .catalog-actions .btn { width: 100%; }
  .catalog-actions .btn { justify-content: center; }
  .access-modal { padding: 28px 20px; }
  .admin-generate { align-items: stretch; flex-direction: column; }
}
