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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5faff;
  color: #0d1b2a;
  margin: 0;
  padding: 0;
  line-height: 2; /* Añadir o modificar esta línea */
}

body, p, li {
  line-height: 2;
}

main {
  color: #1e293b; 
  padding-top: 0;  
  line-height: 2;
}

header {
  position: relative;
  top: 0;
  width: 100%;
  background-image: url('images/header-background-resized.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1000;
  text-align: center;
  padding: 0.5rem 1rem 0.5rem; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-top h1 {
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 3rem;
  color: #ffffff;
}

.header-subtitle {
  text-align: center;
  font-size: 2rem;
  color: #cfdffb; 
  margin-bottom: 0.5rem;
}

.header-nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.header-contact {
  font-size: 0.9rem;
  color: #cfdffb;
  padding: 0.5rem 1rem;
}

.header-contact a {
  color: #cfdffb;
  text-decoration: none;
  font-weight: bold;
}

main section {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  padding-top: 0; 
}

main section h2 {
  text-align: center;
  color: #0b1120; 
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about img {
  width: 200px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
}

footer {
  background-color: #0b1120;
  color: #cfdffb;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* convierte íconos oscuros en blancos */
  transition: transform 0.2s ease;
}

footer .social-icons a:hover img {
  transform: scale(1.2);
}
.thumbnail-image {
  width: 100%;
  max-width: 500px; 
  height: auto;
  display: block;
  margin: 0 auto; 
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px; /* espacio entre cards */
  margin-top: 24px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 8px;
}

.project-image {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 2rem auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.feature-image {
  display: block;
  margin: 1rem auto;
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

main section p,
main section li {
  line-height: 2;
}

.contact-section {
  text-align: center;
  padding-bottom: 2em;
}

.qr-contact-list {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.qr-contact-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(70, 110, 255, 0.10);
  padding: 24px 16px 16px 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
}

.qr-contact-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 28px rgba(70,110,255,0.17);
}

.qr-contact-item img {
  width: 110px;
  height: 110px;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(50,60,90,0.10);
}

.qr-contact-item a {
  display: block;
  margin-top: 6px;
  font-size: 1.09em;
  color: #2d2088;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.qr-contact-item a:hover {
  color: #6c55ee;
  text-decoration: underline;
}

.home-link {
  font-size: 1.23em;
  color: #522389;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.2s;
}

.home-link:hover {
  color: #2d2088;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .qr-contact-list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .qr-contact-item {
    width: 90vw;
    max-width: 320px;
  }
}
.qr-contact-item a[href^="mailto:"] {
  font-size: 0.8em;
  word-break: break-all; 
  letter-spacing: 0.2px;
}
.about-section {
  margin-top: 48px; 
  margin-bottom: 32px;
  padding-left: 24px;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px; /* Separación entre foto y texto */
  max-width: 1000px;
  margin: 0;
  padding: 32px 0;
}

.about-photo img {
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ecf1f7;
  box-shadow: 0 4px 28px rgba(70, 110, 255, 0.08);
  background: #fff;
  display: block;
}

.about-info {
  flex: 1 1 0%;
  text-align: left;
}

@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 20px 0;
  }
  .about-info {
    text-align: center;
  }
}

.header-nav ul {
  display: flex;
  gap: 5px;         /* antes: 32px */
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.header-nav a {
  display: block;
  padding: 5px 16px; /* antes: 8px 22px */
  border: 1px solid rgba(100,130,220,0.22);
  border-radius: 3px;   /* antes: 18px */
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 1em;    
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: 
    background 0.18s, 
    color 0.18s, 
    border-color 0.18s, 
    box-shadow 0.17s;
}

.header-nav a:hover,
.header-nav a:focus {
  background: rgba(100,130,220,0.14);
  color: #a6c5ff;
  border-color: #456fc3;
  box-shadow: 0 2px 10px 0 rgba(120,160,255,0.12);
  text-decoration: none;
}

@media (max-width: 800px) {
  .header-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
}
