/* GLOBAL STYLES */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: white;
  text-align: center;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  background: #0f172a;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #38bdf8;
}

/* BANNER */
.banner {
  position: relative;
  background: url("banner.png") center/cover no-repeat;
  padding: 120px 20px;
  color: white;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: 3.5em;
  margin: 0;
}

.banner h2 {
  font-size: 1.6em;
  font-weight: normal;
  color: #38bdf8;
  margin: 10px 0;
}

.banner p {
  font-size: 1.2em;
  color: #94a3b8;
}

/* INTRO */
.intro {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2em;
  color: #cbd5e1;
}

/* PROJECTS GRID */
.projects {
  padding: 60px 20px;
}

.projects h3 {
  font-size: 2em;
  margin-bottom: 40px;
}

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

/* CARDS */
.card {
  background: #1e293b;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centra contenido horizontalmente */
  text-align: center;     /* Centra texto */
  justify-content: space-between;
  min-height: 400px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

.card h4 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.card p {
  font-size: 0.95em;
  color: #cbd5e1;
  line-height: 1.5;
}

.card ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  color: #94a3b8;
  font-size: 0.9em;
  width: 100%;
}

.card ul li {
  margin-bottom: 8px;
  position: relative;
}

/* CARD HIGHLIGHT (CodeSpark) */
.card.highlight {
  border: 2px solid #ff9800;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.badge {
  position: absolute;
  top: -12px;
  background: #ff9800;
  color: #0f172a;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* FOOTER & BUTTONS */
.card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.card a {
  display: inline-block;
  width: 80%;
  padding: 10px 20px;
  background: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s;
}

.card a:hover {
  background: #facc15;
}

.demo-btn {
  background: #ff9800 !important;
  color: #0f172a !important;
}

.demo-btn:hover {
  background: #e68a00 !important;
  transform: scale(1.05);
}

/* SKILLS */
.skills {
  padding: 60px 20px;
  background: rgba(30, 41, 59, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.skill-card h4 {
  color: #facc15;
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* EDUCATION */
.education {
  padding: 60px 20px;
}

.edu-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  margin-top: 20px;
}

.edu-card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  color: #94a3b8;
}

.edu-card li {
  margin-bottom: 8px;
}

/* CONTACT */
.contact {
  padding: 80px 20px;
}

.whatsapp-btn {
  display: inline-block;
  padding: 15px 35px;
  background: #25D366;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: scale(1.05);
}

/* FOOTER */
footer {
  padding: 40px;
  font-size: 0.9em;
  color: #64748b;
  border-top: 1px solid rgba(255,255,255,0.05);
}