/* ─────────────────────────────────────────────────────
   Index.css — Reset y estilos base globales
   ───────────────────────────────────────────────────── */

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

:root {
  --red: #e63030;
  --red-dim: #b32222;
  --red-glow: #e6303033;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --text: #f0f0f0;
  --text2: #a0a0a0;
  --border: #2a2a2a;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(230, 48, 48, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

#root {
  min-height: 100vh;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

code {
  background: var(--bg2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #ff6060;
  font-family: "Courier New", monospace;
}

/* ─ Utilidades ─ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ─ Estilos de sección ─ */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

h2 {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 760px;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-sub {
  display: block;
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.7;
  width: 100%;
  max-width: 650px;
  margin: 0 0 3rem;
  text-align: left;
  clear: both;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--red);
}

/* ─ Scrollbar ─ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* ─ Responsive ─ */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  h2 {
    margin-bottom: 1rem;
  }

  .section-sub {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}
/* ─────────────────────────────────────────────────────
   Nav Styles — Barra de navegación fija
   ───────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(230, 48, 48, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text2);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover:before {
  width: 100%;
}

.nav-cta {
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1.5rem;
  }

  .nav-brand {
    font-size: 0.9rem;
  }

  .nav-logo-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    gap: 1rem;
    display: none;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-cta {
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.7rem 1rem;
  }

  .nav-brand {
    font-size: 0.8rem;
  }

  .nav-logo-mark {
    width: 28px;
    height: 28px;
  }

  .nav-cta {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  transition: all 0.3s ease;
  will-change: transform;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: var(--red);
  top: -100px;
  left: -100px;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: #8b0000;
  bottom: -80px;
  right: -80px;
}

.hero-layout {
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 8rem 2rem 6rem;
  position: relative;
}

.hero-content {
  text-align: left;
  max-width: 660px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeUp 0.6s ease both;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(230, 48, 48, 0.5);
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  animation: fadeUp 0.7s 0.1s ease both;
  margin: 1.5rem 0 2rem;
  color: var(--text);
}

.hero-typewriter {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 0.06em solid var(--red);
  animation: typeName 2.4s steps(9, end) 0.7s forwards, caretBlink 0.8s step-end infinite;
}

.hero-name-main {
  color: #f4dddd;
}

.hero-name-accent {
  color: var(--red);
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 1px;
  animation: fadeUp 0.7s 0.2s ease both;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: var(--text2);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 3.5rem;
  animation: fadeUp 0.7s 0.3s ease both;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  animation: fadeUp 0.7s 0.4s ease both;
  flex-wrap: wrap;
}

.hero-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.hero-btns a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero-btns a:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--red);
  color: white;
  border: 1px solid var(--red);
  box-shadow: 0 4px 15px rgba(230, 48, 48, 0.3);
}

.btn-primary:hover {
  background: #d13636;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 48, 48, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg3);
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.hero-device {
  width: min(100%, 480px);
  justify-self: end;
  position: relative;
  animation: fadeUp 0.8s 0.35s ease both;
  filter: drop-shadow(0 30px 70px rgba(230, 48, 48, 0.18));
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 8% -8% -4%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 48, 48, 0.2), transparent 64%);
  z-index: -1;
}

.device-screen {
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(230, 48, 48, 0.45);
  border-radius: 22px 22px 12px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(145deg, #121212 0%, #080808 100%);
  padding: 0.9rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 55px rgba(230, 48, 48, 0.16);
  overflow: hidden;
}

.device-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
}

.device-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(230, 48, 48, 0.45);
}

.device-toolbar span:nth-child(2) {
  background: #777;
  box-shadow: none;
}

.device-toolbar span:nth-child(3) {
  background: #444;
  box-shadow: none;
}

.device-panel {
  min-height: calc(100% - 34px);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(90deg, rgba(230, 48, 48, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(230, 48, 48, 0.08), transparent 45%),
    #0b0b0b;
  background-size: 42px 100%, 100% 100%, 100% 100%;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.device-kicker {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.device-title {
  color: #f4dddd;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.device-code {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.72rem, 1.7vw, 0.88rem);
  color: #d7d7d7;
}

.device-code span {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(230, 48, 48, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.device-code span:nth-child(2) {
  margin-left: 1.4rem;
}

.device-code span:nth-child(3) {
  color: #ff7777;
}

.device-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 1180px) {
  .hero-name {
    font-size: clamp(3rem, 6.2vw, 5.25rem);
  }

  .hero-device {
    width: min(100%, 440px);
  }
}

.device-grid span {
  min-width: 0;
  padding: 0.65rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.device-base {
  width: 88%;
  height: 28px;
  margin: 0 auto;
  border-radius: 0 0 30px 30px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.08) 48% 52%, transparent 88%),
    linear-gradient(180deg, #222, #070707);
  border: 1px solid rgba(230, 48, 48, 0.22);
  border-top: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeUp 0.7s 0.5s ease both;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.7;
    transform: scaleY(0.8);
  }
}

@keyframes typeName {
  from {
    max-width: 0;
  }
  to {
    max-width: 9.5ch;
  }
}

@keyframes caretBlink {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--red);
  }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 7rem 1.5rem 5rem;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-device {
    justify-self: center;
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding: 6rem 0 4rem;
  }

  .hero-badge {
    margin-bottom: 2rem;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 4rem);
    margin: 1rem 0 1.5rem;
  }

  .hero-title {
    margin-bottom: 2rem;
  }

  .hero-desc {
    margin-bottom: 3rem;
    font-size: 0.95rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-layout {
    gap: 2.2rem;
    padding: 5rem 0 3rem;
  }

  .hero-name {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

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

  .hero-desc {
    font-size: 0.9rem;
  }

  .device-screen {
    border-radius: 16px 16px 10px 10px;
    padding: 0.65rem;
  }

  .device-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-code span:nth-child(2) {
    margin-left: 0;
  }
}
/* ─────────────────────────────────────────────────────
   About Styles — Sección Quiénes somos
   ───────────────────────────────────────────────────── */

.about {
  animation: fadeUp 0.8s ease;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  background: var(--bg3);
}

.about-card:hover::before {
  opacity: 1;
}

/* ── Icono ── */
.about-card-icon {
  width: 50px;
  height: 50px;
  background: var(--red-glow);
  border: 1.5px solid var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-text {
  line-height: 1.9;
  color: var(--text2);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 1.2rem;
  }

  .about-card h3 {
    font-size: 1rem;
  }

  .about-text {
    font-size: 0.9rem;
  }
}
/* ─────────────────────────────────────────────────────
   Skills Styles — Grid de tecnologías
   ───────────────────────────────────────────────────── */

.skills {
  animation: fadeUp 0.8s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: default;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  border-color: var(--red);
  transform: translateY(-4px) scale(1.05);
  background: var(--bg3);
}

.skill-card:hover::before {
  opacity: 0.5;
}

.skill-card:hover .skill-icon {
  filter: drop-shadow(0 0 8px var(--red));
  transform: scale(1.1);
}

/* ── Icono ── */
.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: all 0.3s ease;
  color: var(--text);
}

.skill-card:hover .skill-icon {
  color: var(--red);
  transform: scale(1.1);
}

/* ── Nombre ── */
.skill-name {
  font-size: 0.75rem;
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.skill-card:hover .skill-name {
  color: var(--red);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.8rem;
  }

  .skill-card {
    padding: 1rem 0.6rem;
  }

  .skill-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .skill-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.7rem;
  }

  .skill-card {
    padding: 0.9rem 0.5rem;
  }

  .skill-icon {
    font-size: 1.6rem;
  }
}
/* ─────────────────────────────────────────────────────
   Projects Styles — Grid de proyectos
   ───────────────────────────────────────────────────── */

.projects {
  animation: fadeUp 0.8s ease;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(230, 48, 48, 0.15);
}

.project-card:hover .project-img-overlay {
  opacity: 1;
}

/* ── Imagen ── */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg3);
  display: block;
  position: relative;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg3) 0%, #1e1e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-emoji {
  font-size: 3rem;
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(230, 48, 48, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.project-img-overlay span {
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── Contenido ── */
.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text2);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* ── Tecnologías ── */
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tech {
  background: var(--red-glow);
  border: 1px solid #e6303055;
  color: #ff6060;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Enlaces ── */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  font-size: 0.78rem;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.project-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(230, 48, 48, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
  }

  .project-card {
    border-radius: 10px;
  }

  .project-img-placeholder {
    aspect-ratio: 16 / 10;
    font-size: 2.5rem;
  }

  .project-body {
    padding: 1rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-img-placeholder {
    aspect-ratio: 16 / 10;
    font-size: 2rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
  }
}
/* ─────────────────────────────────────────────────────
   Services Styles — Grid de servicios
   ───────────────────────────────────────────────────── */

.services {
  animation: fadeUp 0.8s ease;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  background: var(--bg3);
}

.service-card:hover::before {
  opacity: 0.8;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* ── Icono ── */
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* ── Título ── */
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ── Descripción ── */
.service-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1rem;
  }

  .service-icon {
    font-size: 1.6rem;
  }

  .service-card h3 {
    font-size: 0.9rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }
}
.testimonials {
  animation: fadeUp 0.8s ease;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  background: var(--bg3);
}

.testimonial-card:hover::before {
  opacity: 0.55;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  color: var(--red);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.3rem;
  color: #f6ff00;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.testimonial-card p {
  color: var(--text2);
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.testimonial-author {
  display: grid;
  gap: 0.15rem;
}

.testimonial-author strong {
  color: var(--text);
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.contact {
  animation: fadeUp 0.8s ease;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (min-width: 769px) {
  .contact-form label:nth-of-type(1),
  .contact-form label:nth-of-type(2),
  .contact-form label:nth-of-type(3) {
    min-width: 0;
  }
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.contact-submit {
  width: fit-content;
  min-width: 170px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.contact-status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-status-success {
  color: #d8ffe6;
  background: rgba(38, 166, 91, 0.12);
  border: 1px solid rgba(38, 166, 91, 0.35);
}

.contact-status-error {
  color: #ffdede;
  background: rgba(230, 48, 48, 0.12);
  border: 1px solid rgba(230, 48, 48, 0.35);
}

.contact-mail-fallback {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 48, 48, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(230, 48, 48, 0.15);
  background: var(--bg3);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--red);
  font-size: 1.35rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-icon {
  background: var(--red);
  color: white;
  transform: scale(1.05);
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text2);
  margin: 0;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-info h3 {
  color: var(--red);
}

.contact-card:hover .contact-info p {
  color: var(--text);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-card {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1rem;
  }

  .contact-card {
    gap: 1rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr) minmax(220px, 0.7fr);
  align-items: start;
  gap: 2rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.footer-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(230, 48, 48, 0.2);
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 2px;
  margin: 0;
  font-weight: 700;
}

.footer-brand p,
.footer-copyright p {
  color: var(--text2);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.footer-markets {
  max-width: 520px;
  margin-top: 0.9rem !important;
}

.footer-contact {
  display: grid;
  gap: 0.75rem;
}

.footer-contact h4 {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text2);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact a svg {
  color: var(--red);
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--red);
}

.footer-copyright {
  text-align: right;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.75rem;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .footer-brand h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 2rem 1rem 1.25rem;
  }
}
.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(37, 211, 102, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp svg {
  width: 1.45rem;
  height: 1.45rem;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(37, 211, 102, 0.45);
}

@media (max-width: 560px) {
  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
}
/* ─────────────────────────────────────────────────────
   Global Styles — Variables, reset y base styles
   ───────────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e63030;
  --red-dim: #b32222;
  --red-glow: #e6303033;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --text: #f0f0f0;
  --text2: #a0a0a0;
  --border: #2a2a2a;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Animaciones globales ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── Divisores entre secciones ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Tags de sección ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--red);
}

/* ── Estilos de sección ── */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  max-width: 760px;
  margin: 0 0 0.75rem;
  letter-spacing: -1px;
}

.section-sub {
  display: block;
  color: var(--text2);
  font-size: 1rem;
  width: 100%;
  max-width: 650px;
  margin: 0 0 3rem;
  line-height: 1.7;
  text-align: left;
  clear: both;
}

/* ── Botones ── */
.btn-primary,
.btn-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dim);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .section-tag {
    font-size: 0.7rem;
  }

  section h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .section-sub {
    max-width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.85rem;
    padding: 0.65rem 1.5rem;
  }
}
