/* RESET BÁSICO */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* BODY Y FONDO */
body {
  background: linear-gradient(135deg, #6a0dad, #ffc0cb);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

header .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #f0e;
}

/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: #8e44ad;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #a64bcf;
}

/* SECCIONES */
section {
  padding: 60px 20px;
  text-align: center;
}

/* SERVICIOS Y PROYECTOS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0;
}

.card {
  padding: 25px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
  color: white;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.25);
}

/* CONTACTO */
.contact form {
  max-width: 500px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input, .contact textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.contact button {
  background: #8e44ad;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact button:hover {
  background: #a64bcf;
}

/* FOOTER */
footer {
  padding: 20px;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.2);
}