/* =========================
   VARIABLES
========================= */
:root {
  --bg-main: #0d0d0d;
  --bg-card: #171717;
  --bg-soft: #222222;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #722f37;
  --text-main: #ffffff;
  --text-soft: #cfcfcf;
  --text-muted: #9ca3af;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}



/* =========================
   MENÚ
========================= */
.menu {
  width: 100%;
  background: rgba(114, 47, 55, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}

.menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   LINKS DEL MENÚ
========================= */
.link {
  display: inline-block;
  position: relative;
  padding: 12px 22px;
  color: var(--text-main);
  border-radius: 999px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  z-index: 1;
  font-weight: 600;
}

.link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.4s ease;
}

.link:hover {
  color: #000;
}

.link:hover::before {
  clip-path: circle(100% at 50% 50%);
}



/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

/* SECTION */
.projects {
    padding: 60px 20px;
    text-align: center;
}

/* TITLE */
.projects__title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #38bdf8;
}

/* CARD */
.projects__card {
    display: flex;
    justify-content: center;
}

/* CONTENT */
.projects__content {
    background: #1e293b;
    padding: 25px;
    border-radius: 20px;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects__content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

/* SUBTITLE */
.projects__subtitle {
    margin-bottom: 20px;
    color: #f1f5f9;
}

/* IMAGE */
.projects__image {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.projects__image:hover {
    transform: scale(1.05);
}

/* DESCRIPTION */
.projects__description {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #cbd5f5;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 25px 20px;
  background-color: #0a0a0a;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================
   RESPONSIVE: MENÚ
========================= */
@media (max-width: 768px) {
  .menu {
    /* Quitamos la forma de "píldora" para que cubra mejor el ancho */
    border-radius: var(--radius-md); 
    padding: 10px;
  }

  .menu ul {
    /* Cambiamos la orientación de horizontal a vertical */
    flex-direction: column; 
    gap: 8px;
    width: 100%;
  }

  .link {
    /* Hacemos que los botones ocupen todo el ancho disponible */
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px;
  }
}