@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-main: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-primary: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(30, 41, 59, 0.5);
  --color-parciales-bg: #1e293b;
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-text: #f8fafc;
}

/* ---- Light Mode Overrides ---- */
body.light-mode {
  --bg-main: #f1f5f9;
  --bg-secondary: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #4f46e5;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.12);
  --card-bg: rgba(255, 255, 255, 0.9);
  --color-parciales-bg: #f8fafc;
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-text: #0f172a;
}

body.light-mode {
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(99, 102, 241, 0.08),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(139, 92, 246, 0.08),
      transparent 25%
    );
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: rotate(20deg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
.footer_title {
  font-family: "Outfit", sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(99, 102, 241, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(139, 92, 246, 0.15),
      transparent 25%
    );
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

main {
  margin-top: 0;
  padding-top: 80px;
  min-height: 100vh;
}

/*----------------- Navbar -----------------------*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav.sticky {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ---- Nav Brand & Logo ---- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  background: var(--card-bg);
}

.nav-name {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ---- Nav Links ---- */
.enlaces-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  transition: all 0.4s ease;
}

.enlaces-header a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.enlaces-header a i {
  margin-right: 8px;
  font-size: 1.1rem;
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

.enlaces-header a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.enlaces-header a:hover i {
  color: var(--accent-hover);
}

/* ---- Nav Actions (Toggle & Hamburger) ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
}

.hamburguer {
  display: none;
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* -------- Active Nav Link -------- */
.enlaces-header a.nav-active {
  color: var(--accent-hover);
  background: rgba(99, 102, 241, 0.1);
}
.enlaces-header a.nav-active i {
  color: var(--accent-hover);
}
.enlaces-header a.nav-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* -------- Dropdown Menu -------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .dropdown-trigger {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  user-select: none;
  gap: 6px;
}
.nav-dropdown > .dropdown-trigger i {
  color: var(--accent-primary);
  transition: all 0.3s;
}
.nav-dropdown > .dropdown-trigger .caret {
  font-size: 0.7rem;
  transition: transform 0.3s;
  opacity: 0.6;
}
.nav-dropdown:hover > .dropdown-trigger .caret {
  transform: rotate(180deg);
}
.nav-dropdown:hover > .dropdown-trigger {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.nav-dropdown:hover > .dropdown-trigger i {
  color: var(--accent-hover);
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* starts right below the trigger — no gap */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 210px;
  padding: 8px;
  padding-top: 14px; /* visual top-spacing inside the panel */
  z-index: 2000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-primary);
}
.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--accent-primary);
  font-size: 0.9rem;
}
.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 6px 8px;
}

/* -------- Reading Progress Bar -------- */
#read-progress {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #c084fc);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* -------- Scroll-to-Top Button -------- */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px 20px var(--accent-glow);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}
#scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/*------------ Hero / CSS3 Section -----------------*/
.CSS {
  padding: 80px 20px;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.CSS h2 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cc5, #8c61b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
}

.CSS p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.CSS_input {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  color: white;
  background: var(--accent-primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.3s ease;
}

.CSS_input:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.6);
}

/* ----------------- HTML5 Showcase --------------- */
.semantic-layout-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  text-align: left;
}

/* ----------------- Browser Mockup Visual --------------- */
.layout-visual {
  flex: 1.5;
  min-width: 350px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browser-header {
  background: #0f172a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 15px;
  padding: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  font-family: monospace;
}

.browser-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #1e293b;
  height: 100%;
}

.layout-visual .box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.layout-visual .box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-hover);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.layout-body {
  display: flex;
  gap: 10px;
  flex: 1;
}

/* Color coding for structural elements */
.html-header { background: rgba(245, 158, 11, 0.1) !important; border-color: rgba(245, 158, 11, 0.4) !important; color: #fbbf24 !important; }
.html-nav { background: rgba(56, 189, 248, 0.1) !important; border-color: rgba(56, 189, 248, 0.4) !important; color: #7dd3fc !important; }
.html-main { flex: 3; display: flex; flex-direction: column; gap: 10px; background: rgba(59, 130, 246, 0.1) !important; border-color: rgba(59, 130, 246, 0.4) !important; color: #93c5fd !important; }
.html-aside { flex: 1; background: rgba(139, 92, 246, 0.1) !important; border-color: rgba(139, 92, 246, 0.4) !important; color: #c4b5fd !important; }
.html-section { background: rgba(99, 102, 241, 0.1) !important; border-color: rgba(99, 102, 241, 0.4) !important; color: #a5b4fc !important; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.html-article { background: rgba(16, 185, 129, 0.1) !important; border-color: rgba(16, 185, 129, 0.4) !important; color: #6ee7b7 !important; flex: 1; min-height: 50px; }
.html-footer { background: rgba(239, 68, 68, 0.1) !important; border-color: rgba(239, 68, 68, 0.4) !important; color: #fca5a5 !important; }

/* Wireframe inner mock elements */
.mock-logo { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 25px; height: 12px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mock-nav-links { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.mock-nav-links span { width: 15px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.mock-img { width: 100%; height: 35px; background: rgba(255,255,255,0.1); border-radius: 4px; margin: 10px 0 8px; }
.mock-text { width: 70%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 0 auto; box-shadow: 0 10px 0 rgba(255,255,255,0.1), 0 20px 0 rgba(255,255,255,0.1); }
.mock-banner { width: 100%; height: 60px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 15px; }

.semantic-definitions {
  flex: 2;
  min-width: 350px;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 15px;
}

.def-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px 20px;
  transition: transform 0.2s ease;
}

.def-card:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
}

.def-card h3 {
  color: var(--accent-hover);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.def-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* ----------------- JS Window Showcase --------------- */
.js-window {
  flex: 1.5;
  min-width: 350px;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.js-window-header {
  background: #2d2d2d;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.js-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.js-title {
  color: #858585;
  font-size: 0.85rem;
  font-family: monospace;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-20px);
}

.js-window-body {
  padding: 10px;
  overflow-x: auto;
  background-color: #1e1e1e;
}

.js-window-body pre {
  margin: 0;
  color: #abb2bf;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ----------------- JS Concepts Interactive Grid --------------- */
.js-concepts-grid {
  flex: 2;
  min-width: 350px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  perspective: 1000px;
}

.concept-card {
  background-color: transparent;
  height: 140px;
  perspective: 1000px;
  cursor: pointer;
}

.concept-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.concept-card:hover .concept-card-inner {
  transform: rotateY(180deg);
}

.concept-card-front, .concept-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.concept-card-front {
  background-color: var(--card-bg);
  align-items: center;
  text-align: center;
}

.concept-card-front i {
  font-size: 2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.concept-card-front h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.concept-card-front p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.3;
}

.concept-card-back {
  background-color: #1e1e1e; /* Editor style */
  color: white;
  transform: rotateY(180deg);
  justify-content: space-evenly;
  text-align: left;
}

.concept-card-back pre {
  font-family: 'Consolas', monospace;
  font-size: 0.75rem;
  background: #282c34;
  padding: 8px;
  border-radius: 5px;
  margin: 0;
  overflow-x: hidden;
}

.concept-card-back p {
  font-size: 0.75rem;
  color: #abb2bf;
  margin: 0;
  line-height: 1.3;
}

/* ----------------- Section Flexbox --------------- */
.flexbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.title-flexbox {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.title-flexbox sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.justify-content,
.align-items {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.justify-content:hover,
.align-items:hover {
  transform: translateY(-5px);
}

.contenedor-align-items {
  height: 100%;
}

.contenido-flexbox {
  margin-bottom: 25px;
}

.flex-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-hint .fa-box, .badge-hint .fa-bars {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.space-icon {
  color: var(--accent-hover);
  margin: 0 2px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.elemento,
.elemento-a,
.elemento-b {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  width: 100%;
  justify-content: center;
}

.elemento {
  display: flex;
}
.elemento-a {
  display: flex;
  flex-direction: column;
  min-height: 140px;
}
.elemento-b {
  display: flex;
  flex-direction: row;
  min-height: 140px;
}

.elemento > div > img {
  width: 32px;
  height: 32px;
  margin: 0 5px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.uno,
.dos,
.tres {
  color: white;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  margin: 5px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.uno {
  background: #10b981;
} /* Emerald */
.dos {
  background: #8b5cf6;
} /* Violet */
.tres {
  background: #ef4444;
} /* Red */

/* ----------------- Section Parciales --------------- */
.container_parciales {
  background: var(--color-parciales-bg);
  padding: 60px 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

.title_Parciales {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.parciales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.Puntos {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.Puntos a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
}

.Puntos a i {
  font-size: 2.8rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.Puntos p:first-of-type {
  font-size: 1.3rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  margin-bottom: 8px;
}

.Puntos p:last-of-type {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.Puntos:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-hover);
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.Puntos:hover a i {
  transform: scale(1.15);
  color: var(--accent-hover);
}

/*--------------------- Footer Refactored -------------------*/
.footer {
  background: #0b1120;
  padding: 80px 20px 20px;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

/* Optional top glow to separate from content */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_title {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.footer_description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer_quote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(99, 102, 241, 0.05);
  padding: 15px;
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px 8px 8px 4px;
}

.footer_quote p {
  color: #f8fafc;
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.footer_quote i {
  color: var(--accent-hover);
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer_heading {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 25px;
  font-family: "Outfit", sans-serif;
  position: relative;
  display: inline-block;
}

.footer_heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.footer_stack_icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer_stack_icons i {
  font-size: 2.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)) grayscale(0.2);
}

.footer_stack_icons i:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4)) grayscale(0);
}

/* Contact Info */
.footer_contact {
  display: flex;
  flex-direction: column;
}

.contact_link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 25px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact_link i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.contact_link:hover {
  color: var(--accent-hover);
}

.footer_social {
  display: flex;
  gap: 15px;
}

.footer_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer_icon:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.footer_bottom {
  text-align: center;
  padding-top: 25px;
}

.footer_copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  margin: 0;
}

/*----------------- Responsive -------------------*/
@media (max-width: 800px) {
  .nav {
    justify-content: space-between;
    padding: 0 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
  }

  .hamburguer {
    display: flex;
    align-items: center;
    color: var(--text-primary);
  }

  .enlaces-header {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0;
    gap: 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--glass-border);
  }

  .enlaces-header.hamburgueropen {
    right: 0;
  }

  .enlaces-header a {
    font-size: 1.2rem;
    width: 90%;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
  }

  /* Mobile Dropdown Adjustments */
  .nav-dropdown {
    width: 90%;
  }
  .nav-dropdown > .dropdown-trigger {
    font-size: 1.2rem;
    width: 100%;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
  }
  .dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    margin-top: 5px;
    opacity: 1;
    pointer-events: all;
    transition: none;
  }
  .nav-dropdown.active .dropdown-menu {
    display: flex;
  }

  /* Disable hover transform on mobile to avoid alignment lag */
  .nav-dropdown:hover .dropdown-menu {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }

  .dropdown-menu a {
    width: 100%;
    justify-content: center;
    border-radius: 0;
    margin: 2px 0;
  }
  .nav-dropdown.active .dropdown-trigger .caret {
    transform: rotate(180deg);
  }

  .CSS h2 {
    font-size: 2.5rem;
  }

  .footer_container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer_quote {
    justify-content: center;
  }

  .footer_heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer_stack_icons {
    justify-content: center;
  }

  .contact_link,
  .footer_social {
    justify-content: center;
  }
}
