@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Poppins&family=Roboto&display=swap');
body {
  background: #444; /* Gris oscuro 7/10 */
  color: #f5f5f5;
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #333;
  padding: 2em 0 1em 0;
  text-align: center;
}

header h1 {
  margin: 0.2em 0 0 0;
  font-size: 2.5em;
  color: #ffe082;
}

header h2 {
  margin: 0.2em 0 0 0;
  font-weight: normal;
  color: #f5f5f5;
}

nav {
  margin-bottom: 1em;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border-radius: 5px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: #555;
}

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
}


.intro-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em 0 3em 0;
}

.intro-container {
  display: flex;
  align-items: center;
  gap: 2em;
  background: #555;
  border-radius: 16px;
  padding: 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffe082;
  background: #333;
  display: block;
}

.intro-text p {
  color: #f5f5f5;
  font-size: 1.15em;
  margin: 0;
  max-width: 350px;
}

#proyectos {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 0 3em 0;
  background: transparent;
}

#proyectos h2 {
  color: #ffe082;
  text-align: center;
}

.proyectos-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 900px;
  margin: 0 auto;
}

.proyecto-entry {
  background: #555;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.proyecto-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.proyecto-entry a {
  color: #ffe082;
  text-decoration: none;
}

.proyecto-entry a:hover {
  text-decoration: underline;
}

.proyecto-descripcion {
  margin-bottom: 1em;
  color: #f5f5f5;
}

.projects {
  margin-bottom: 3em;
}

.projects h2 {
  color: #ffe082;
  text-align: center;
  margin-bottom: 1.5em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5em;
  width: 90vw;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
}

.project-card {
  background: #555;
  border-radius: 12px;
  padding: 2em 1.2em 1.5em 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #ffe082;
}

.project-card p {
  color: #f5f5f5;
  flex: 1;
}

.project-card a {
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1em;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-card.ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #ffe082;
  font-weight: bold;
  font-size: 1.1em;
}

.project-card.ver-mas a {
  color: #ffe082;
  text-decoration: none;
}

.project-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
  background: #333;
  display: block;
}

@media (max-width: 1200px) {
  .project-grid {
    max-width: 1000px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .project-grid {
    max-width: 95vw;
    grid-template-columns: 1fr;
    padding: 0 0.5em;
  }
}

/* Agrega esto a tu styles.css para la vista en columna de proyectos */

#proyectos-lista .proyectos-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

#proyectos-lista .proyecto-entry {
  background: #555;
  border-radius: 12px;
  padding: 2em 2em 1.5em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#proyectos-lista .project-img {
  width: 100%;
  max-width: 320px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
  background: #333;
  display: block;
}

#proyectos-lista .proyecto-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #ffe082;
}

#proyectos-lista .proyecto-entry p {
  color: #f5f5f5;
  margin-bottom: 1em;
}

#proyectos-lista .proyecto-entry a {
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
}

#proyectos-lista .proyecto-entry a:hover {
  text-decoration: underline
}


#blog {
  margin-bottom: 3em;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 0 3em 0;
  background: transparent;
}

#blog h2, #contacto h2 {
  color: #ffe082;
  text-align: center;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5em;
  width: 90vw;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
}

.blog-entry {
  background: #555;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.blog-entry a {
  color: #ffe082;
  text-decoration: none;
}

.blog-entry a:hover {
  text-decoration: underline;
}

.blog-date,
.meta {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 1em;
  text-align: right;
  display: block;
}
.blog-list .blog-entry .blog-date,
.blog-list .blog-entry .meta {
  color: #bbb;
  font-size: 1em;
  margin-bottom: 1em;
  text-align: left;
  width: 100%;
  display: block;
}

.blog-summary {
  margin-bottom: 1em;
}

.blog-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
  background: #333;
  display: block;
}

#contacto {
  margin-bottom: 3em;
}
#contacto h2 {
  color: #ffe082;
  text-align: center;
}
#contacto form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
}
#contacto label {
  color: #f5f5f5;
  font-weight: bold;
}
#contacto input,
#contacto textarea {
  padding: 0.5em;
  border: none;
  border-radius: 5px;
  background: #555;
  color: #f5f5f5;
  font-size: 1em;
}
#contacto input:focus,
#contacto textarea:focus {
  outline: none;
  border: 2px solid #ffe082;
}
#contacto button {
  background: #ffe082;
  color: #333;
  font-weight: bold;
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
#contacto button:hover {
  background: #ffd54f;
} 
.proyectos-list,
.blog-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto 3em auto;
}

.proyecto-entry,
.blog-entry {
  background: #555;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #ffe082;
  font-weight: bold;
  font-size: 1.1em;
}

.ver-mas a {
  color: #ffe082;
  text-decoration: none;
}

.ver-mas a:hover {
  text-decoration: underline;
}

#proyectos h2,
#blog h2 {
  margin-bottom: 1.5em; 
}

.proyectos-list,
.blog-list {
  margin-top: 0; 
}

footer {
  background: #333;
  color: #f5f5f5;
  text-align: center;
  padding: 2em 0 1em 0;
}

footer a {
  color: #ffe082;
  margin: 0 1em;
  text-decoration: none;
}

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

/* Agrega o reemplaza en styles.css */

/* --- SOBRE MI --- */
.sobremi-section {
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
  background: #555;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

.sobremi-container {
  display: flex;
  align-items: center;
  gap: 2.5em;
}

.sobremi-img img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #ffe082;
  background: #333;
  display: block;
}

.sobremi-texto h2 {
  margin: 0 0 0.5em 0;
  color: #ffe082;
}

.sobremi-texto p {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.2em;
}

.sobremi-datos-caja {
  background: #444;
  border-radius: 12px;
  padding: 1.5em 2em;
  margin-top: 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
}

.sobremi-datos-caja ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5em 0;
  color: #f5f5f5;
}

.sobremi-datos-caja li {
  margin-bottom: 0.5em;
}

.sobremi-links a {
  color: #ffe082;
  margin-right: 1.5em;
  text-decoration: none;
  font-weight: bold;
}

.sobremi-links a:hover {
  text-decoration: underline;
}

/* Estilo para la lista de proyectos en proyectos.html */
#proyectos-lista .proyectos-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 800px;
  margin: 2em auto;
}

#proyectos-lista .proyecto-entry {
  background: #555;
  border-radius: 10px;
  padding: 1.5em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
}

#proyectos-lista .proyecto-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

#proyectos-lista .proyecto-entry a {
  color: #ffe082;
  text-decoration: none;
}

#proyectos-lista .proyecto-entry a:hover {
  text-decoration: underline;
}

#proyectos-lista .proyecto-descripcion {
  color: #f5f5f5;
}


#blog-lista .blog-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 800px;
  margin: 2em auto;
}

#blog-lista .blog-entry {
  background: #555;
  border-radius: 10px;
  padding: 1.5em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
}

#blog-lista .blog-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

#blog-lista .blog-entry a {
  color: #ffe082;
  text-decoration: none;
}

#blog-lista .blog-entry a:hover {
  text-decoration: underline;
}

#blog-lista .blog-date {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 1em;
}

#blog-lista .blog-summary {
  margin-bottom: 1em;
  color: #f5f5f5;
}

/* Agrega esto a tu styles.css */

.sobremi-contacto-caja {
  background: #333;
  border-radius: 12px;
  padding: 1.5em 2em;
  margin: 2em auto 0 auto;      /* Centra la caja horizontalmente */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: #f5f5f5;
  max-width: 400px;             /* Ajusta el ancho máximo */
  width: 100%;                  /* Ocupa todo el ancho disponible hasta el máximo */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sobremi-contacto-caja h3 {
  margin-top: 0;
  color: #ffe082;
}

.sobremi-contacto-caja label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-weight: bold;
}

.sobremi-contacto-caja input,
.sobremi-contacto-caja textarea {
  width: 100%;
  padding: 0.6em;
  border-radius: 6px;
  border: none;
  margin-bottom: 0.8em;
  background: #444;
  color: #f5f5f5;
  font-size: 1em;
}

.sobremi-contacto-caja button {
  background: #ffe082;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.5em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.sobremi-contacto-caja button:hover {
  background: #ffd54f;
}

.sobremi-links {
  display: flex;
  justify-content: center;      /* Centra los links horizontalmente */
  align-items: center;
  gap: 3em;                     /* Más espacio entre links */
  margin-top: 0.5em;
  width: 100%;
}

.sobremi-links a {
  display: inline-flex;
  align-items: center;          /* Centra verticalmente icono y texto */
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  gap: 0.6em;                   /* Espacio entre icono y texto */
  transition: color 0.2s;
}

.sobremi-links a:hover {
  text-decoration: underline;
  color: #fff2b2;
}

.sobremi-links img {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
}

.sobremi-contacto-caja {
  background: #222;
  border-radius: 16px;
  padding: 2em 2.5em;
  margin: 2em auto 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  color: #f5f5f5;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sobremi-contacto-caja h3 {
  margin-top: 0;
  color: #ffe082;
  font-size: 1.4em;
  margin-bottom: 1.2em;
  text-align: center;
}

.sobremi-contacto-caja label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.4em;
  font-weight: 600;
  color: #ffe082;
}

.sobremi-contacto-caja input,
.sobremi-contacto-caja textarea {
  width: 100%;
  padding: 0.7em 1em;
  border-radius: 8px;
  border: none;
  margin-bottom: 0.8em;
  background: #333;
  color: #f5f5f5;
  font-size: 1em;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s;
}

.sobremi-contacto-caja input:focus,
.sobremi-contacto-caja textarea:focus {
  box-shadow: 0 0 0 2px #ffe082;
}

.sobremi-contacto-caja button {
  background: #ffe082;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 0.8em 0;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  margin-top: 1em;
  transition: background 0.2s;
  width: 100%;
}

.sobremi-contacto-caja button:hover {
  background: #ffd54f;
}

footer {
  background: #333;
  color: #f5f5f5;
  text-align: center;
  padding: 2em 0 2.5em 0; /* Más espacio abajo */
  margin-top: 3em;
}

footer h3 {
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: 1.3em;
}

footer .sobremi-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3em;
  margin: 0 auto;
  width: 100%;
}

footer .sobremi-links a {
  display: inline-flex;
  align-items: center;
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  gap: 0.6em;
  transition: color 0.2s;
}

footer .sobremi-links a:hover {
  text-decoration: underline;
  color: #fff2b2;
}

footer .sobremi-links img {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
}

/* Sección de proyectos y blog: ocupar todo el ancho */
#proyectos,
#blog {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 0 3em 0;
  background: transparent;
}

/* Grid para ambas secciones */
.project-grid,
.blog-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5em;
  width: 90vw;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
}

/* Tarjetas */
.project-card,
.blog-entry {
  background: #555;
  border-radius: 12px;
  padding: 2em 1.2em 1.5em 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

/* Tarjeta "ver más" */
.project-card.ver-mas,
.blog-entry.ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #ffe082;
  font-weight: bold;
  font-size: 1.1em;
}

.project-card.ver-mas a,
.blog-entry.ver-mas a {
  color: #ffe082;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .project-grid,
  .blog-list {
    max-width: 1000px;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .project-grid,
  .blog-list {
    max-width: 95vw;
    grid-template-columns: 1fr;
    padding: 0 0.5em;
  }
}

#blog-lista .blog-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 900px;
  margin: 2em auto 0 auto;
  padding: 0 1em;
}

.blog-entry {
  background: #555;
  border-radius: 12px;
  padding: 2em 2em 1.5em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.blog-entry h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #ffe082;
  font-size: 1.25em;
  font-weight: bold;
}

.blog-date {
  color: #bbb;
  font-size: 1em;
  margin-bottom: 1em;
}

.blog-summary {
  color: #f5f5f5;
  margin-bottom: 1em;
}

.read-more {
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* Agrega esto a tu styles.css si quieres mejorar la presentación de la entrada individual */

.entrada-blog {
  max-width: 800px;
  margin: 2em auto;
  background: #555;
  border-radius: 12px;
  padding: 2em 2em 1.5em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #f5f5f5;
  font-size: 1.15em;
  line-height: 1.7;
}

.blog-date {
  color: #bbb;
  font-size: 1em;
  margin-bottom: 1em;
  text-align: center;
}

.blog-nav {
  max-width: 800px;
  margin: 1em auto 2em auto;
  text-align: left;
}

.blog-nav a {
  color: #ffe082;
  text-decoration: none;
  font-weight: bold;
}

.blog-nav a:hover {
  text-decoration: underline;
}