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

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

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
  color: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.bg-circle-1 {
  width: 300px;
  height: 300px;
  background: #6366f1;
  top: 15%;
  left: 20%;
  opacity: 0.45;
}

.bg-circle-2 {
  width: 250px;
  height: 250px;
  background: #ec4899;
  bottom: 15%;
  right: 20%;
  opacity: 0.4;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.3);
  max-width: 380px;
  width: 100%;
  padding: 35px 25px;
  text-align: center;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

header img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  object-fit: cover;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

main {
  margin-top: 10px;
  margin-bottom: 25px;
}

main h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 10px;
}

main p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

main .highlight {
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

main strong {
  color: #ffffff;
  font-weight: 700;
}

main em {
  font-style: italic;
  color: #9aa5fb;
}

section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

/* HORIZONTAL SOCIAL BUTTONS */
section ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

section ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  border-radius: 50%; /* Botones circulares translúcidos */
  transition: all 0.2s ease-in-out;
}

section ul li a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

footer {
  margin-top: 30px;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* --- ESTILOS DE INTERACCIÓN (JS) --- */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

#btn-saludo {
  flex: 1;
  padding: 12px 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#btn-saludo:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

#btn-theme {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  z-index: 10;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#btn-theme:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* --- MODO CLARO (LIGHT MODE) --- */
body.light-mode {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  color: #1e293b;
}

body.light-mode .bg-circle-1 {
  background: #38bdf8;
  opacity: 0.25;
}

body.light-mode .bg-circle-2 {
  background: #f472b6;
  opacity: 0.25;
}

body.light-mode .card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 32px 0 rgba(148, 163, 184, 0.15);
}

body.light-mode .card:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

body.light-mode header img {
  border-color: rgba(255, 255, 255, 0.8);
}

body.light-mode header h1 {
  color: #0f172a;
}

body.light-mode main h2 {
  color: #475569;
}

body.light-mode main p {
  color: #334155;
}

body.light-mode main .highlight {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode main strong {
  color: #0f172a;
}

body.light-mode main em {
  color: #4f46e5;
}

body.light-mode section h3 {
  color: #475569;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode section ul li a {
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

body.light-mode section ul li a:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode #btn-saludo {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode #btn-saludo:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode #btn-theme {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode #btn-theme:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode footer {
  color: #475569;
}

/* Transiciones suaves para cambios de tema */
body,
.card,
header h1,
main h2,
main p,
main strong,
main em,
main .highlight,
section h3,
section ul li a,
#btn-saludo,
#btn-theme,
footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s, text-shadow 0.3s ease;
}

/* --- CAJA DEL SALUDO (la escribe JavaScript) --- */
#saludo {
  margin-top: 18px;
  padding: 12px 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#saludo:empty {
  display: none;
}

body.light-mode #saludo {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}
