* { margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
  font-family: 'Roboto',sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  }
  
  
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  }
  
  


.navbar-header {
 background: #1d3557; 
 padding: 10px 0; 
 position: sticky;
  top: 0; 
  z-index: 1000; 
}


.navbar {
   display: flex; 
   justify-content: space-between; 
   align-items: center; 
   height: 70px; 
  }


.logo img {
  height: 55px;
  width: auto;
  }
  
  
.nav-links {
display: flex;
list-style: none; 
gap: 20px; 
align-items: center; 
}


.nav-links a {
color: white;
text-decoration: none;
font-weight: 500;
transition: 0.3s; 
}


.nav-links a:hover {
  color: #a8dadc; 
  }


.dropdown {
  position: relative; 
  }
  
  
.dropbtn {
  background: none;
  border: none; color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  }
  
  
.dropdown-content { 
  display: none; position: absolute; background: white; min-width: 800px; 
  top: 100%; right: 0; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-radius: 8px; 
   text-align: center;
}
.dropdown-content a { color: #1d3557; padding: 12px 16px; display: block; }
.dropdown:hover .dropdown-content { display: block; }

.hamburger-btn { background: none; border: none; color: white; font-size: 30px; cursor: pointer; }

/* MENÚ LATERAL */
.menu-lateral {
  position: fixed; top: 0; left: -320px; width: 300px; height: 100vh;
  background: #1d3557; color: white; z-index: 2000; padding: 30px 20px; transition: 0.4s;
}
.menu-lateral.activo { left: 0; }
.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); display: none; z-index: 1500;
}
.menu-overlay.activo { display: block; }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.btn-cerrar { background: none; border: none; color: white; font-size: 30px; cursor: pointer; }
.menu-opciones { list-style: none; }
.menu-opciones li { margin-bottom: 20px; }
.menu-opciones a { color: #f1faee; text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.menu-opciones a:hover { color: #a8dadc; padding-left: 10px; }
.menu-footer { margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; opacity: 0.7; }


.encabezado {
  height: 65vh; 
  
    background: linear-gradient(135deg, #1d3557, #457b9d);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  color: white;
}

.contenedor1 {
   max-width: 800px; 
   padding: 20px; }
.encabezado h1 {
    font-size: 3rem; 
    margin-bottom: 20px; }


.sobre-mi { padding: 60px 0; background: white; text-align: center; }
.contenedor-destacados { padding: 60px 0; background: #f1f5f9; }
.contenedor-destacados h2 { text-align: center; margin-bottom: 40px; color: #1d3557; font-size: 2.2rem; }
.contenedor-resumenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.resumen { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s; }
.resumen:hover { transform: translateY(-10px); }
.resumen img { width: 100%; height: 200px; object-fit: cover; }
.resumen h3 { padding: 20px 20px 10px; color: #1d3557; }
.resumen p { padding: 0 20px 20px; color: #666; }
.boton-resumen { display: block; margin: 0 20px 20px; padding: 12px; background: #457b9d; color: white; text-align: center; text-decoration: none; border-radius: 8px; font-weight: bold; }
.boton-resumen:hover { background: #1d3557; }

/* FOOTER */
.pie-pagina { background: #1d3557; color: white; padding: 50px 0; text-align: center; }
.contacto-footer { margin: 25px 0; display: flex; flex-direction: column; gap: 10px; }
.contact-item { color: #a8dadc; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .encabezado h1 { font-size: 2.2rem; }
}