/* ══════════════════════════════════════════════════
   OTAYO K INFO-TECH — Master Stylesheet
   ══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #25D366;
  --green-dark:   #128C7E;
  --primary:      #4F46E5;
  --primary-dark: #3730A3;
  --primary-light:#EEF2FF;
  --accent:       #F59E0B;
  --danger:       #EF4444;
  --danger-light: #FEF2F2;
  --success:      #10B981;
  --success-light:#ECFDF5;
  --text:         #111827;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --bg:           #F9FAFB;
  --white:        #FFFFFF;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.12);
  --font:         'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: 0.925rem; cursor: pointer; border: 2px solid transparent;
  transition: all 0.18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-whatsapp { background: var(--green); color: #fff; border-color: var(--green); width: 100%; justify-content: center; padding: 13px 20px; font-size: 1rem; border-radius: 10px; margin-top: auto; }
.btn-whatsapp:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 4px 14px rgba(37,211,102,.4); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: #FECACA; }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ── Site Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-mark { display: flex; flex-direction: column; line-height: 1; }
.logo-top  { font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; color: var(--primary); line-height: 1; }
.logo-sub  { font-size: 0.58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.sidebar .logo-top { color: #818CF8; }
.sidebar .logo-sub { color: #a5b4fc; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-weight: 500; color: var(--text-muted); transition: color .15s; }
.header-nav a:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #fff; padding: 110px 0 100px; text-align: center;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); color: #c7d2fe;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: 6px 18px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(90deg, #818CF8, #34D399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: #a5b4fc; max-width: 520px; margin: 0 auto 36px; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: .15; }
.s1 { width: 400px; height: 400px; background: #818CF8; top: -100px; right: -80px; }
.s2 { width: 300px; height: 300px; background: #34D399; bottom: -80px; left: -60px; }
.s3 { width: 200px; height: 200px; background: #F59E0B; top: 60%; right: 15%; }

/* ── How it Works ── */
.how-section { padding: 80px 0; background: #fff; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 48px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step { text-align: center; padding: 32px 24px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Services Section ── */
.services-section { padding: 80px 0; }

/* Filter tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.tab { padding: 8px 20px; border-radius: 50px; border: 2px solid var(--border); background: #fff; font-weight: 600; font-size: 0.875rem; cursor: pointer; color: var(--text-muted); transition: all .18s; }
.tab:hover, .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

/* Service card */
.service-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img-wrap { position: relative; height: 190px; background: linear-gradient(135deg, #EEF2FF, #E0E7FF); overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: var(--primary); background: linear-gradient(135deg, #EEF2FF, #C7D2FE); }
.card-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; backdrop-filter: blur(6px); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.card-title { font-size: 1.15rem; font-weight: 700; }
.card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* Variation selector */
.variation-wrap { display: flex; flex-direction: column; gap: 10px; }
.var-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.var-select { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-weight: 500; appearance: none; background: 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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; cursor: pointer; transition: border-color .15s; }
.var-select:focus { outline: none; border-color: var(--primary); }

.price-box { background: var(--primary-light); border-radius: 10px; padding: 14px 16px; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.price-amount { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.price-duration { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); background: #fff; padding: 3px 10px; border-radius: 50px; }
.price-details { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.no-variation { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state p { font-size: 1.1rem; color: var(--text-muted); }
.empty-state a { color: var(--primary); font-weight: 600; }

/* ── Site Footer ── */
.site-footer { background: #1e1b4b; color: #a5b4fc; padding: 56px 24px 32px; }
.footer-logo { text-align: center; margin-bottom: 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; max-width: 860px; margin: 0 auto 40px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-col p { font-size: 0.875rem; line-height: 1.9; color: #a5b4fc; }
.footer-col a { color: #a5b4fc; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-wa { display: inline-flex; align-items: center; color: #4ADE80 !important; font-weight: 600; }
.footer-wa:hover { color: #86EFAC !important; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer-bottom p { font-size: 0.85rem; }
.footer-sub { margin-top: 6px; font-size: 0.8rem; opacity: .5; }

/* ══════════════════════════════════════════════════
   ADMIN STYLES
   ══════════════════════════════════════════════════ */
.admin-body { background: #F1F5F9; min-height: 100vh; }

.admin-layout { display: flex; min-height: 100vh; align-items: flex-start; }

/* Sidebar */
.sidebar { width: 240px; background: #1e1b4b; color: #fff; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; color: #a5b4fc; transition: all .15s; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.12); color: #fff; }

/* Admin main */
.admin-main { flex: 1; padding: 32px; max-width: calc(100% - 240px); overflow-x: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.6rem; font-weight: 800; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-icon { font-size: 2rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* Admin card */
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: visible; }
.admin-card > .table-wrap { border-radius: var(--radius); overflow: hidden; }
.admin-card > .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.admin-card-header h2 { font-size: 1rem; font-weight: 700; }
.link { font-size: 0.875rem; color: var(--primary); font-weight: 600; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { background: #F8FAFC; padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #F8FAFC; }
.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; }

.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.table-thumb-placeholder { width: 48px; height: 48px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }

.empty-msg { padding: 32px 24px; color: var(--text-muted); }
.empty-msg a { color: var(--primary); font-weight: 600; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; font-size: 0.9rem; }
.alert-error   { background: var(--danger-light);  color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: var(--success-light); color: #065F46; border: 1px solid #A7F3D0; }

/* ── Admin Form ── */
.admin-form { display: flex; flex-direction: column; gap: 24px; }
.form-section { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow); }
.form-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; margin-top: -10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.875rem; font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; transition: border-color .15s; background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { appearance: none; background: #fff 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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; cursor: pointer; }

/* File drop */
.file-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; position: relative; cursor: pointer; transition: border-color .15s; }
.file-drop:hover { border-color: var(--primary); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.file-icon { font-size: 2.5rem; }
.file-drop p { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.file-drop small { font-size: 0.78rem; color: var(--text-muted); }

/* Variations builder */
.variation-row {
  border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 16px;
  overflow: hidden; transition: border-color .15s;
}
.variation-row:hover { border-color: #C7D2FE; }
.var-row-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.var-row-label { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.btn-remove-var { background: none; border: none; color: var(--danger); font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.btn-remove-var:hover { background: var(--danger-light); }
.var-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 18px; }
.var-fields .full { grid-column: 1 / -1; }

.btn-add-var { margin-top: 4px; width: 100%; justify-content: center; border-style: dashed; }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 32px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .sidebar-logo { padding: 16px 20px; border-bottom: none; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; gap: 4px; }
  .admin-main { max-width: 100%; padding: 20px; }
  .var-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .header-nav { gap: 14px; }
  .var-fields { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
}
