/*
Theme Name: Academia Draphenix Phanqor (Editable en WordPress)
Theme URI: https://draphenixphanqor.com/
Author: Samuel Phanqor
Description: Tema completo de Academia Draphenix Phanqor donde todos los textos, fotos (con subida directa a Medios), logo, enlaces y video de YouTube 16:9 se editan y guardan directamente en la base de datos de WordPress.
Version: 7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: academia-draphenix-phanqor
*/

:root {
  --bg-dark: #071024;
  --bg-card: #0d1d3b;
  --accent-gold: #f5c400;
  --accent-gold-hover: #ffd426;
  --accent-cyan: #38bdf8;
  --text-white: #ffffff;
  --text-muted: #cbd5e1;
  --border-soft: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.dp-page {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.dp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= CABECERA ================= */
.dp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 16, 36, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

body.admin-bar .dp-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .dp-header {
    top: 46px;
  }
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.dp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.dp-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(245, 196, 0, 0.45);
  background: #0d1d3b;
  flex-shrink: 0;
}

.dp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.dp-logo-top {
  color: var(--text-white);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dp-logo-bottom {
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.dp-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.dp-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dp-menu a:hover {
  color: var(--accent-gold);
}

.dp-menu-pill {
  background: var(--accent-gold);
  color: #091122 !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 800 !important;
}

/* ================= HERO + VIDEO YOUTUBE 16:9 ================= */
.dp-hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 45%),
              linear-gradient(135deg, #071024 0%, #0b1b3a 60%, #071226 100%);
}

.dp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.dp-badge {
  display: inline-block;
  background: rgba(245, 196, 0, 0.14);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 196, 0, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.dp-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}

.dp-hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 600px;
}

.dp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.dp-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.dp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dp-btn:hover {
  transform: translateY(-2px);
}

.dp-btn-primary {
  background: var(--accent-gold);
  color: #091122;
}

.dp-btn-primary:hover {
  background: var(--accent-gold-hover);
}

.dp-btn-secondary {
  background: #162646;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dp-video-frame {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.dp-video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}

.dp-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0;
  display: block;
}

/* ================= SECCIONES ================= */
.dp-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-soft);
}

.dp-section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.dp-kicker {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.dp-section-header h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}

.dp-section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ================= CURSOS ================= */
.dp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dp-course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dp-course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 0, 0.45);
}

.dp-course-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #071024;
}

.dp-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-course-card h3 {
  font-size: 20px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.dp-course-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.dp-list {
  list-style: none;
  margin-bottom: 24px;
}

.dp-list li {
  font-size: 14px;
  color: #e2e8f0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dp-list li::before {
  content: "• ";
  color: var(--accent-cyan);
  font-weight: 800;
}

/* ================= HERRAMIENTAS ================= */
.dp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.dp-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dp-tool-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.dp-tool-badge.dp-gold-badge {
  background: rgba(245, 196, 0, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 196, 0, 0.25);
}

.dp-tool-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #071024;
}

.dp-tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-tool-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.dp-tool-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ================= SUITE ================= */
.dp-suite-box {
  background: linear-gradient(145deg, #0d1d3b, #11264d);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.dp-suite-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dp-feature-item {
  background: rgba(7, 16, 36, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
}

.dp-feature-item h4 {
  color: var(--accent-cyan);
  font-size: 14px;
  margin-bottom: 6px;
}

.dp-feature-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ================= TESTIMONIOS ================= */
.dp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dp-testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dp-testimonial-card p {
  font-style: italic;
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.dp-testimonial-user {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.dp-testimonial-name {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 14px;
}

.dp-testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ================= REDES SOCIALES ================= */
.dp-social-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dp-social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dp-social-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.dp-social-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

/* ================= INSTRUCTOR ================= */
.dp-mentor {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 32px;
  align-items: center;
}

.dp-mentor-photo-col {
  text-align: center;
}

.dp-mentor-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(7, 16, 36, 0.8);
  border: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  margin: 0 auto 14px;
}

.dp-mentor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= FOOTER & WHATSAPP FLOTANTE ================= */
.dp-footer {
  background: #040a17;
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dp-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.dp-footer h4 {
  color: var(--accent-gold);
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.dp-footer-links {
  list-style: none;
}

.dp-footer-links li {
  margin-bottom: 10px;
}

.dp-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.dp-footer-links a:hover {
  color: var(--accent-gold);
}

.dp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

.dp-wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  background: var(--accent-gold);
  color: #091122;
  font-weight: 800;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.dp-wa-float:hover {
  transform: scale(1.04);
}

/* ================= BARRA DE EDICION GUARDADA EN WORDPRESS (SOLO ADMIN) ================= */
.dp-wp-admin-dock {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1300;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-wp-btn {
  background: #0f2347;
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.dp-wp-btn.dp-wp-save {
  background: var(--accent-gold);
  color: #071024;
  border-color: var(--accent-gold);
}

body.dp-edit-mode [data-dp-key] {
  outline: 1px dashed rgba(245, 196, 0, 0.85);
  border-radius: 4px;
}

body.dp-edit-mode [data-dp-img-key] {
  outline: 2px dashed #38bdf8;
  cursor: pointer;
}

body.dp-edit-mode [data-dp-link-key] {
  outline: 1px dashed #25d366;
}

@media (max-width: 960px) {
  .dp-hero-grid,
  .dp-grid-2,
  .dp-grid-3,
  .dp-suite-box,
  .dp-testimonial-grid,
  .dp-mentor,
  .dp-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dp-video-frame {
    padding: 8px;
  }
}
