/*
 * OigaProfe Theme — main.css
 * Variables CSS globales, reset y estilos base
 */

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --op-bg:          #04060F;
  --op-bg-2:        #080B18;
  --op-bg-3:        #0D1220;
  --op-bg-card:     #0A0F1E;
  --op-cyan:        #00D4FF;
  --op-cyan-dark:   #00A8CC;
  --op-orange:      #FF6B35;
  --op-purple:      #8B5CF6;
  --op-green:       #10D98A;
  --op-amber:       #F59E0B;
  --op-red:         #EF4444;
  --op-text:        #F0F4FF;
  --op-muted:       #7A85A0;
  --op-border:      #1A2340;
  --op-font-display:'Syne', sans-serif;
  --op-font-body:   'DM Sans', sans-serif;
  --op-font-code:   'JetBrains Mono', monospace;
  --op-radius-sm:   6px;
  --op-radius:      10px;
  --op-radius-lg:   14px;
  --op-radius-xl:   20px;
  --op-radius-full: 9999px;
  --op-shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
  --op-transition:  all 0.25s ease;
  --op-max-w:       1100px;
  --op-content-w:   720px;
}

/* ─── Reset base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--op-bg);
  color: var(--op-text);
  font-family: var(--op-font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Tipografía base ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--op-font-display);
  line-height: 1.15;
  color: var(--op-text);
}

h6,
.op-label {
  font-family: var(--op-font-code);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--op-cyan);
}

p { color: var(--op-text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--op-cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--op-cyan-dark); }

code, kbd, samp, pre {
  font-family: var(--op-font-code);
  font-size: 0.875em;
}

code {
  background: var(--op-bg-3);
  color: var(--op-cyan);
  padding: 2px 6px;
  border-radius: var(--op-radius-sm);
  border: 1px solid var(--op-border);
}

pre {
  background: var(--op-bg-3);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.op-container {
  width: 100%;
  max-width: var(--op-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.op-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.op-section--alt {
  background: var(--op-bg-2);
  border-top: 1px solid var(--op-border);
  border-bottom: 1px solid var(--op-border);
}

.op-divider {
  height: 1px;
  background: var(--op-border);
  max-width: var(--op-max-w);
  margin: 0 auto;
}

/* ─── Grillas ────────────────────────────────────────────────────────────────── */
.op-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.op-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.op-grid-2-1 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }

@media (max-width: 900px) {
  .op-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .op-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .op-grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .op-grid-3, .op-grid-4 { grid-template-columns: 1fr; }
  .op-container { padding-left: 1rem; padding-right: 1rem; }
  .op-section { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ─── Botones ────────────────────────────────────────────────────────────────── */
.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--op-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 26px;
  border-radius: var(--op-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--op-transition);
  white-space: nowrap;
}

.op-btn--primary {
  background: var(--op-cyan);
  color: #04060F;
}
.op-btn--primary:hover {
  background: var(--op-cyan-dark);
  color: #04060F;
  transform: translateY(-1px);
}

.op-btn--secondary {
  background: transparent;
  color: var(--op-text);
  border: 1.5px solid var(--op-border);
}
.op-btn--secondary:hover {
  border-color: var(--op-cyan);
  color: var(--op-cyan);
}

.op-btn--orange {
  background: var(--op-orange);
  color: #fff;
}
.op-btn--orange:hover { background: #e55f2d; color: #fff; }

.op-btn--ghost {
  background: transparent;
  color: var(--op-muted);
  border: 1px solid var(--op-border);
}
.op-btn--ghost:hover { color: var(--op-text); }

.op-btn--spotify { background: #1DB954; color: #fff; }
.op-btn--spotify:hover { background: #17a349; color: #fff; }

.op-btn--youtube { background: #FF0000; color: #fff; }
.op-btn--youtube:hover { background: #cc0000; color: #fff; }

/* ─── Formularios ────────────────────────────────────────────────────────────── */
.op-form { display: flex; flex-direction: column; gap: 1rem; }
.op-form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.op-form__label {
  font-family: var(--op-font-code);
  font-size: 0.7rem;
  color: var(--op-muted);
  letter-spacing: 0.05em;
}
.op-form__input,
.op-form__select,
.op-form__textarea {
  background: #050A1A;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-sm);
  padding: 11px 14px;
  color: var(--op-text);
  font-family: var(--op-font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.op-form__input:focus,
.op-form__select:focus,
.op-form__textarea:focus { border-color: var(--op-cyan); }
.op-form__textarea { resize: vertical; min-height: 100px; }
.op-form__select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A85A0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
