/* ===== UNICORNSTAMERS CSS STYLES ===== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-color: #f25c1f;
  --secondary-color: #c0392b;
  --background-color: #0f0f0f;
  --surface-color: #1a1a1a;
  --text-primary: #f2f2f0;
  --text-secondary: rgba(242, 242, 240, 0.8);
  --text-muted: rgba(242, 242, 240, 0.6);

  /* Fonts */
  --font-brand: "ethnocentric", sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(242, 92, 31, 0.2);
  --shadow-xl: 0 20px 40px rgba(242, 92, 31, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;

  --color-accent-turquoise: #32c6c0; /* Color para el botón 'Continuar leyendo' */
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.loading-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  animation: pulse 2s infinite;
}

.loading-text {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(242, 92, 31, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
  animation: loading 2s ease-in-out infinite;
}

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 92, 31, 0.4);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.92);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal),
    visibility var(--transition-normal);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 92, 31, 0.1);
  z-index: var(--z-fixed);
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.navbar.revealed {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.98);
  border-bottom-color: rgba(242, 92, 31, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-brand {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: transparent;
  border: 0;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-menu.active {
  display: flex;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--background-color) 0%,
    var(--surface-color) 100%
  );
  overflow: hidden;
}

.hero-ai-canvas,
.hero .particles {
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(242, 92, 31, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease-out;
}

.logo-container {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: var(--background-color);
  border-radius: var(--radius-sm);
  position: relative;
}

.logo-icon::before {
  content: "🔥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(45deg, var(--primary-color), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

.tagline {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
  font-weight: 300;
}

.description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  opacity: 0.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-container {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
}

.cta-button.primary {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-primary);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.cta-button.secondary:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* ===== PARTICLES ===== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float-particle 8s infinite linear;
  opacity: 0.1;
  will-change: transform, opacity;
}

.intro-section {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--background-color) 0%,
    var(--surface-color) 100%
  );
}

.intro-section--content {
  min-height: 100vh;
  padding-top: 8rem;
}

.hero-content--split {
  max-width: 980px;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--spacing-2xl) var(--spacing-md);
  background: linear-gradient(
    180deg,
    var(--surface-color) 0%,
    var(--background-color) 100%
  );
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
}

.features-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: rgba(242, 92, 31, 0.03);
  border: 1px solid rgba(242, 92, 31, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 92, 31, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  background: rgba(242, 92, 31, 0.08);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-weight: 700;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.feature-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 1px;
}

/* ===== ESTILOS MOVIDOS DE INDEX.HTML ===== */

@font-face {
  font-family: "Ethnocentric";
  src: url("fonts/ethnocentric/Ethnocentric Rg.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BsLandscope";
  src: url("fonts/BsLandscope Regular/BsLandscope Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinderblock";
  src:
    url("fonts/Cinderblock/Cinderblock-Regular.otf") format("opentype"),
    url("fonts/Cinderblock/Cinderblock-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#logo3DContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #0f0f0f; /* Considerar usar var(--background-color) */
}

.logo-icon {
  width: 100px;
  height: 100px;
  background: transparent;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../src/logo_unicorn-bg.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.font-ethnocentric {
  font-family: "Ethnocentric", sans-serif;
}

.font-bslandscope {
  font-family: "BsLandscope", sans-serif;
}

.font-cinderblock {
  font-family: "Cinderblock", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(242, 92, 31, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(242, 92, 31, 0.8);
  }
}


.features {
  padding: var(--spacing-2xl) var(--spacing-md);
  background: linear-gradient(
    180deg,
    var(--surface-color) 0%,
    var(--background-color) 100%
  );
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: rgba(242, 92, 31, 0.05);
  border: 1px solid rgba(242, 92, 31, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #f25c1f;
  box-shadow: 0 20px 40px rgba(242, 92, 31, 0.2);
}

.feature-card .card-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.feature-card .card-particle {
  position: absolute;
  background: #f25c1f;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
}

.feature-card:hover .card-particle {
  animation: float-card-particle 1.5s ease-out forwards;
}

@keyframes float-card-particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(var(--particle-x));
    opacity: 0;
  }
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f25c1f;
}

.feature-icon-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.feature-icon-img-phone {
  height: 4.2rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-description {
  color: rgba(242, 242, 240, 0.8);
  line-height: 1.6;
}

/* ===== DYNAMIC HYPER-MINIMALIST CYBER-TECH FOOTER ===== */
.footer {
  position: relative;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(242, 92, 31, 0.2);
  padding: 2rem 3rem;
  color: #f2f2f0;
  z-index: 10;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f25c1f, transparent);
  box-shadow: 0 0 10px rgba(242, 92, 31, 0.6);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Ethnocentric", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  font-weight: bold;
  color: #f2f2f0;
  text-shadow: 0 0 8px rgba(242, 242, 240, 0.3);
}

.footer-separator {
  color: #f25c1f;
  opacity: 0.6;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(242, 242, 240, 0.6);
  font-size: 0.7rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #00ff66;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00ff66;
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% {
    opacity: 0.4;
    box-shadow: 0 0 4px #00ff66;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px #00ff66;
  }
  100% {
    opacity: 0.4;
    box-shadow: 0 0 4px #00ff66;
  }
}

.footer-center {
  display: flex;
  gap: 1.5rem;
}

/* Estilo Cyber de Botón */
.cyber-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(242, 242, 240, 0.6) !important;
  font-family: "Ethnocentric", sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  outline: none !important;
  box-shadow: none !important;
}

.cyber-btn:hover {
  color: #f25c1f !important;
  text-shadow: 0 0 10px rgba(242, 92, 31, 0.8) !important;
  transform: scale(1.05);
}

.footer-right {
  color: rgba(242, 242, 240, 0.4);
  font-size: 0.7rem;
}

/* Modificaciones Responsivas */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-left {
    justify-content: center;
  }
  .footer-center {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ===== PREMIUM MODAL STYLING ===== */
.policy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.policy-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.policy-modal-container {
  position: relative;
  width: 90%;
  max-width: 750px;
  max-height: 80vh;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(242, 92, 31, 0.05);
  box-shadow: 0 0 0 rgba(242, 92, 31, 0);
  border-radius: 12px;
  padding: 3rem 2rem 2rem 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.policy-modal.open .policy-modal-container {
  border-color: rgba(242, 92, 31, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(242, 92, 31, 0.2);
}

.policy-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(242, 242, 240, 0.6);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.policy-modal-close:hover {
  color: #f25c1f;
  transform: rotate(90deg);
  text-shadow: 0 0 8px rgba(242, 92, 31, 0.6);
}

.policy-modal-content {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 1rem;
  color: rgba(242, 242, 240, 0.85);
  line-height: 1.7;
  font-size: 0.95rem;
}

.policy-modal-content::-webkit-scrollbar {
  width: 6px;
}

.policy-modal-content::-webkit-scrollbar-track {
  background: rgba(242, 242, 240, 0.02);
  border-radius: 4px;
}

.policy-modal-content::-webkit-scrollbar-thumb {
  background: rgba(242, 92, 31, 0.3);
  border-radius: 4px;
}

.policy-modal-content::-webkit-scrollbar-thumb:hover {
  background: #f25c1f;
}

.policy-modal-content h2 {
  font-size: 1.8rem;
  color: #f25c1f;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(242, 92, 31, 0.15);
  padding-bottom: 0.8rem;
}

.policy-modal-content h3 {
  font-size: 1.2rem;
  color: #f2f2f0;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.policy-modal-content p {
  margin-bottom: 1.2rem;
}

.policy-modal-content ul {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.policy-modal-content li {
  margin-bottom: 0.5rem;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: #f25c1f;
  border-radius: 50%;
  animation: float-particle 6s infinite linear;
  opacity: 0.1;
  will-change: transform, opacity;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== PROJECT SHOWCASE SECTION ===== */
.project-showcase {
  padding: var(--spacing-2xl) var(--spacing-md);
  background: linear-gradient(
    180deg,
    var(--surface-color) 0%,
    var(--background-color) 100%
  );
}

.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-main-title {
  text-align: center;
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 900;
  color: var(--primary-color);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  letter-spacing: 1px;
  animation: animated-project-title-shadow 8s ease-in-out infinite;
  position: relative;
  overflow: visible;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  position: relative;
}

.showcase-card {
  background-color: rgba(var(--primary-color-rgb, 242, 92, 31), 0.03);
  border: 1px solid rgba(var(--primary-color-rgb, 242, 92, 31), 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  background-color: #0a0a0e;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.showcase-card:hover .card-image-container img {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.7) 0%,
    rgba(15, 15, 15, 0) 60%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.showcase-card:hover .card-image-overlay {
  opacity: 1;
}

.card-project-link {
  color: var(--text-primary);
  font-size: 2.5rem;
  text-decoration: none;
  transform: scale(0.8);
  transition: transform var(--transition-normal) ease;
}

.showcase-card:hover .card-project-link {
  transform: scale(1);
}

.link-icon {
  display: inline-block;
  text-shadow: 0 0 10px var(--primary-color);
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.card-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.card-action {
  padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
}

.btn-read-more {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--color-accent-turquoise);
  color: var(--background-color);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-sm);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 8% 100%, 0% 75%);
  transition:
    background-color var(--transition-normal),
    transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-read-more:hover {
  background-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.showcase-card,
.btn-read-more {
  position: relative;
}

@keyframes animated-project-title-shadow {
  0% {
    text-shadow:
      0px 0px 3px black,
      2px 2px 3px var(--primary-color),
      -2px -2px 5px var(--secondary-color),
      0 0 8px var(--primary-color);
  }
  25% {
    text-shadow:
      0px 0px 3px black,
      -2px 2px 4px var(--secondary-color),
      2px -2px 6px var(--primary-color),
      0 0 10px var(--secondary-color);
  }
  50% {
    text-shadow:
      0px 0px 3px black,
      2px -2px 3px var(--primary-color),
      -2px 2px 5px var(--secondary-color),
      0 0 12px var(--primary-color);
  }
  75% {
    text-shadow:
      0px 0px 3px black,
      -2px -2px 4px var(--secondary-color),
      2px 2px 6px var(--primary-color),
      0 0 10px var(--secondary-color);
  }
  100% {
    text-shadow:
      0px 0px 3px black,
      2px 2px 3px var(--primary-color),
      -2px -2px 5px var(--secondary-color),
      0 0 8px var(--primary-color);
  }
}

.flame-particle {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
  animation-name: riseAndFade;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  opacity: 0;
}

@keyframes riseAndFade {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-40px) scale(0.8);
    opacity: 1;
  }
  50% {
    transform: translateY(-80px) scale(0.7);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-120px) scale(0.5);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-160px) scale(0.2);
    opacity: 0;
  }
}

/* Estilos base para botones en tarjetas de proyecto para hacerlos responsivos y centrados */
.project-showcase .showcase-card .card-action .noise_btn--neon {
  width: 100%;
  max-width: 280px; /* Un buen max-width base, cercano al original */
  margin-left: auto;
  margin-right: auto;
  display: block; /* Para que margin auto funcione, y anula el margin original de .noise_btn */
  margin-top: var(--spacing-sm); /* Ejemplo de margen superior */
  margin-bottom: var(--spacing-sm); /* Ejemplo de margen inferior */
  /* Los estilos de padding, height, etc., se heredan de .noise_btn y .noise_btn--neon */
}

.project-showcase .showcase-card .noise_btn--neon strong {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  /* Estilos de position, etc., se heredan de .noise_btn strong */
}

/* ===== RESPONSIVE STYLES ===== */

/* Estilos para tablets y desktops pequeños */
@media (max-width: 1024px) {
  /* Espaciados de sección */
  .hero,
  .features,
  .project-showcase,
  .ai-section {
    /* Aunque ai-section tiene su propio archivo, un padding base aquí puede ser un fallback */
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .section-main-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem); /* Ligeramente más pequeño */
    margin-bottom: var(--spacing-lg);
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
  }

  .tagline {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  }

  .description {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }

  .features-grid,
  .showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
  }

  .card-title {
    font-size: 1.5rem;
  }
  .feature-title {
    font-size: 1.4rem;
  }

  /* Ajustar botones en tarjetas de proyecto para tablet */
  /* ESTAS REGLAS AHORA SON REDUNDANTES POR LOS ESTILOS BASE AÑADIDOS ARRIBA */
  /*
    .project-showcase .showcase-card .card-action .noise_btn--neon {
        width: 100%;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
    */

  /* Asegurar centrado de texto en botones de proyecto para tablet */
  /* ESTAS REGLAS AHORA SON REDUNDANTES POR LOS ESTILOS BASE AÑADIDOS ARRIBA */
  /*
    .project-showcase .showcase-card .noise_btn--neon strong {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }
    */
}

/* Estilos para tablets en vertical y móviles grandes */
@media (max-width: 768px) {
  /* Espaciados de sección */
  .hero,
  .features,
  .project-showcase,
  .ai-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    padding-left: var(--spacing-sm); /* Menos padding lateral */
    padding-right: var(--spacing-sm);
  }

  .section-main-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: var(--spacing-md);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
  }

  .tagline {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }

  .description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }

  .cta-container {
    /* Asegurando que esta regla esté aquí */
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md); /* Aumentar un poco el gap en columna */
  }

  .cta-button {
    width: 80%;
    max-width: 300px;
  }

  .features-grid,
  .showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
  }

  .card-title {
    font-size: 1.4rem;
  }
  .feature-title {
    font-size: 1.3rem;
  }

  /* Ajustar botones en tarjetas de proyecto para tablet (768px) */
  .project-showcase .showcase-card .card-action .noise_btn--neon {
    width: 100%;
    max-width: 240px; /* Mantenemos este ajuste específico para 768px */
    margin-left: auto;
    margin-right: auto;
  }

  /* Asegurar centrado de texto en botones de proyecto para tablet (768px) */
  /* El centrado del strong ya está cubierto por la regla base, no necesita redefinirse aquí */
  /*
    .project-showcase .showcase-card .noise_btn--neon strong {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }
    */

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: var(--spacing-md);
    left: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 1rem;
    background: rgba(15, 15, 15, 0.96);
    border: 1px solid rgba(242, 92, 31, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Centrar texto de los botones en la sección de proyectos en móviles */
  .project-showcase .showcase-card .noise_btn--neon {
    text-align: center; /* Mantenemos esto por si ayuda al renderizado del texto */
    max-width: 220px; /* Ajuste específico para móviles pequeños */
  }

  /* Asegurar centrado de texto en botones de proyecto para móviles (480px) */
  /* El centrado del strong ya está cubierto por la regla base, no necesita redefinirse aquí */
  /*
    .project-showcase .showcase-card .noise_btn--neon strong {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }
    */
}

/* Estilos para móviles pequeños */
@media (max-width: 480px) {
  /* Espaciados de sección */
  .hero,
  .features,
  .project-showcase,
  .ai-section {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
  }

  .section-main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: var(--spacing-md);
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
  }

  .tagline {
    font-size: clamp(0.9rem, 4vw, 1.3rem);
  }

  .description {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  .features-grid,
  .showcase-grid {
    grid-template-columns: 1fr; /* Forzar una sola columna */
    gap: var(--spacing-sm);
  }

  .card-title {
    font-size: 1.3rem;
  }
  .feature-title {
    font-size: 1.2rem;
  }
  .card-description,
  .feature-description {
    font-size: 0.85rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  /* Centrar texto de los botones en la sección de proyectos en móviles */
  .project-showcase .showcase-card .noise_btn--neon {
    text-align: center;
  }

  .project-showcase .showcase-card .noise_btn--neon strong {
    display: flex; /* Reestablecer display flex */
    align-items: center; /* Para centrado vertical */
    justify-content: center; /* Para centrado horizontal */
    height: 100%; /* Asegurar que ocupe toda la altura del botón */
    width: 100%; /* Asegurar que ocupe todo el ancho del botón */
    /* Las propiedades como position: absolute, top, left se heredan de .noise_btn strong */
  }
}

/* Estilos para la visualización de fuentes */
.font-preview {
  margin: 1rem 0;
  position: relative;
  display: none;
}

.font-preview.active {
  display: block;
}

.font-preview h1,
.font-preview h2 {
  position: relative;
  font-size: clamp(3.4rem, 6.8vw, 5.8rem);
  line-height: 0.95;
  margin: 0;
  font-weight: normal;
}

.intro-section .tagline {
  font-size: clamp(1.3rem, 4.2vw, 2rem);
}

/* Efectos de Glitch */
@keyframes glitch-text {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(-5px, 5px);
    opacity: 0.9;
  }
  40% {
    transform: translate(-5px, -5px);
    opacity: 0.8;
    text-shadow:
      2px 2px #f25c1f,
      -2px -2px #0ff;
  }
  60% {
    transform: translate(5px, 5px);
    opacity: 0.7;
    text-shadow:
      -2px 2px #f25c1f,
      2px -2px #0ff;
  }
  80% {
    transform: translate(5px, -5px);
    opacity: 0.6;
    text-shadow:
      2px -2px #f25c1f,
      -2px 2px #0ff;
  }
  100% {
    transform: translate(0);
    opacity: 0;
  }
}

@keyframes glitch-in {
  0% {
    transform: translate(0);
    opacity: 0;
  }
  20% {
    transform: translate(-10px, 10px);
    opacity: 0.2;
  }
  40% {
    transform: translate(-10px, -10px);
    opacity: 0.4;
    text-shadow:
      4px 4px #f25c1f,
      -4px -4px #0ff;
  }
  60% {
    transform: translate(10px, 10px);
    opacity: 0.6;
    text-shadow:
      -4px 4px #f25c1f,
      4px -4px #0ff;
  }
  80% {
    transform: translate(10px, -10px);
    opacity: 0.8;
    text-shadow:
      4px -4px #f25c1f,
      -4px 4px #0ff;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

.font-preview.glitch-out h1,
.font-preview.glitch-out h2 {
  animation: glitch-text 0.5s forwards;
}

.font-preview.glitch-in h1,
.font-preview.glitch-in h2 {
  animation: glitch-in 0.5s forwards;
}

/* Estilos para las chispas */
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #f25c1f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

@keyframes spark-animation {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--spark-x), var(--spark-y)) scale(0);
    opacity: 0;
  }
}

/* Estilos para el efecto typing */
.typing-effect {
  position: relative;
  display: inline-block;
  opacity: 0;
}

.typing-effect.active {
  opacity: 1;
}

.typing-effect span {
  opacity: 0;
  display: inline-block;
}

.typing-effect span.visible {
  opacity: 1;
}

.typing-effect .caret {
  display: inline-block;
  opacity: 0;
  color: #f25c1f;
  margin-left: 1px;
  font-weight: bold;
  animation: caret 1s infinite;
}

.typing-effect .caret.visible {
  opacity: 1;
}

@keyframes caret {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.typing-effect.finished .caret {
  display: none;
}

/* Estilos para el efecto matrix typing */
.matrix-typing-effect {
  position: relative;
  display: inline-block;
  opacity: 0;
}

.matrix-typing-effect.active {
  opacity: 1;
}

.matrix-typing-effect span {
  opacity: 0;
  display: inline-block;
}

.matrix-typing-effect span.visible {
  opacity: 1;
}

.matrix-typing-effect .matrix-char {
  display: inline-block;
  opacity: 0;
  color: #f25c1f;
  font-family: monospace;
  position: absolute;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 0 5px #f25c1f;
  animation: matrixFade 0.8s forwards;
  z-index: 10;
}

@keyframes matrixFade {
  0% {
    opacity: 0.8;
    transform: translateY(-20px);
    color: rgba(242, 92, 31, 0.6);
  }
  50% {
    opacity: 0.7;
    color: rgba(242, 92, 31, 0.5);
  }
  100% {
    opacity: 0.3;
    transform: translateY(10px);
    color: rgba(242, 92, 31, 0.3);
  }
}

/* ===== DYNAMIC PREMIUM CYBER-TECH CONTACT SECTION ===== */
.contact-section {
  padding: var(--spacing-2xl) var(--spacing-md);
  background: linear-gradient(
    180deg,
    var(--background-color) 0%,
    var(--surface-color) 100%
  );
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(242, 92, 31, 0.04) 0%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-subtitle {
  text-align: center;
  font-family: "Ethnocentric", sans-serif;
  font-size: 0.8rem;
  color: rgba(242, 242, 240, 0.5);
  margin-top: -1.5rem;
  margin-bottom: var(--spacing-xl);
  letter-spacing: 2px;
  word-break: break-all;
}

.cyber-form {
  background: rgba(14, 14, 20, 0.7);
  border: 1px solid rgba(242, 92, 31, 0.15);
  border-radius: 16px;
  padding: 3rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(242, 92, 31, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.cyber-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f25c1f, transparent);
  box-shadow: 0 0 8px #f25c1f;
}

.cyber-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cyber-input-wrapper {
  position: relative;
  border: 1px solid rgba(242, 92, 31, 0.15);
  background: rgba(10, 10, 15, 0.4);
  padding: 1.2rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 1.5rem;
}

.cyber-input-wrapper.full-width {
  grid-column: span 2;
}

.cyber-input-wrapper.focused {
  border-color: #f25c1f;
  box-shadow: 0 0 15px rgba(242, 92, 31, 0.15);
  background: rgba(15, 15, 20, 0.7);
}

.cyber-label {
  display: block;
  font-family: "Ethnocentric", sans-serif;
  font-size: 0.7rem;
  color: rgba(242, 242, 240, 0.4);
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.cyber-input-wrapper.focused .cyber-label {
  color: #f25c1f;
  text-shadow: 0 0 5px rgba(242, 92, 31, 0.3);
}

.cyber-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.cyber-input::placeholder {
  color: rgba(242, 242, 240, 0.25);
  font-weight: 300;
}

.cyber-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Scanner Line Animation on Focus */
.cyber-scanner-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #f25c1f;
  box-shadow: 0 0 6px #f25c1f;
  transition: width 0.3s ease;
}

.cyber-input-wrapper.focused .cyber-scanner-line {
  width: 100%;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.cyber-form .submit-button {
  width: 100%;
  max-width: 320px;
}

/* Form Validation Feedback Styles */
.form-message {
  transition: all 0.3s ease;
  animation: slideInDown 0.4s ease forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Form adjustments */
@media (max-width: 768px) {
  .cyber-form {
    padding: 2rem 1.5rem;
  }
  .cyber-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cyber-input-wrapper.full-width {
    grid-column: span 1;
  }
}
