:root {
  --azul: #4065B9;
  --verde: #6AAE7D;
  --dorado: #EAD476;
  --fondo: #FFF9E6;
  --tarjeta: #F9F4D8;
  --texto: #1E1E1E;
  --max-width: 980px;
}

html {
  color-scheme: light;
  background-color: var(--fondo);
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--azul) 0%, #1E1E1E 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
  object-fit: cover;
}

.hero-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.8rem;
}

.highlight {
  background: linear-gradient(90deg, var(--dorado), #fff3b0);
  color: #111;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.hero-sub {
  opacity: 0.9;
  margin: 10px 0 25px;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: var(--dorado);
  color: #111;
  box-shadow: 0 4px 12px rgba(234, 212, 118, 0.4);
}

.btn-whatsapp {
  background: var(--verde);
  color: #fff;
  box-shadow: 0 4px 14px rgba(106, 174, 125, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

/* MAIN */
.main {
  padding: 50px 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.lead {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* PROJECTS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin-bottom: 8px;
  font-family: 'Comfortaa', sans-serif;
  color: var(--azul);
}

.card .muted {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.card .desc {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 15px;
}

/* Imagen de fondo visible en móviles */
.card-media {
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 12px;
  image-rendering: auto;
}

.avocado {
  background-image: url('https://i.imgur.com/5P9h37q.png');
  background-color: #f4f4f4;
}

.aldana {
  background-image: url('https://i.imgur.com/HlEJgcq.png');
  background-color: #f4f4f4;
}

.btn-blue {
  background: var(--azul);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  display: inline-block;
}

/* REDES */
.links {
  margin-top: 60px;
  text-align: center;
}

.links h4 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--azul);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

.social-card {
  background: var(--tarjeta);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 260px;
  font-weight: 600;
  color: var(--texto);
  font-size: 1.05rem;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  background: #F2EACB;
}

/* FOOTER */
.footer {
  background: #111;
  color: #ddd;
  text-align: center;
  padding: 25px 10px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .btn {
    width: 90%;
    max-width: 300px;
  }

  .lead {
    font-size: 1rem;
  }

  .card-media {
    height: 150px;
    background-size: contain;
  }
}
