/* RESET */

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

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  color: #222;
  padding-top: 0;
  margin: 0;
}

/* TIPOGRAFIA GENERAL */

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
}

h2 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 500;
}

p {
  font-size: 16px;
  line-height: 1.7;
}

/* MENU */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  z-index: 1000;
}

.menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: 0.3s;
}

.menu a:hover {
  color: rgb(174, 255, 0);
}


.logo{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: black;
}

/* SECTIONS */

section {
  width:100%;
padding:120px 20px;
}

.section-container{
max-width:1000px;
margin:auto;
}

/* PROYECTOS */

#proyectos{
background:#fff;
}

.proyectos-lista{
display:flex;
flex-direction:column;
gap:100px;
}

.proyecto-item{
display:flex;
align-items:flex-start;
gap:60px;
}

.proyecto-imagen{
flex:1;
height:260px;
overflow:hidden;
}

.proyecto-imagen img{
width:100%;
height:100%;
object-fit:cover;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
transition: transform 0.4s ease;
}

.proyecto-item:hover img{
transform:scale(1.03);
}

.proyecto-info{
flex:1;
}

.proyecto-info h3{
font-size:28px;
margin-bottom:15px;
margin-top:0;
}

.proyecto-info p{
margin-bottom:20px;
opacity:0.8;
}

.btn-proyecto{
display:inline-block;
padding:10px 20px;
border:1px solid black;
text-decoration:none;
color:black;
transition:0.3s;
}

.btn-proyecto:hover{
background:rgb(174,255,0);
border-color:rgb(174,255,0);
}

@media (max-width:900px){

.proyecto-item{
flex-direction:column;
text-align:center;
}

}

/* PROYECTO DETALLE */

.proyecto-detalle {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
}

.proyecto-detalle img {
  width: 100%;
  margin: 40px 0;
  border-radius: 8px;
}

.proyecto-detalle h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.proyecto-detalle p {
  font-size: 18px;
  color: #555;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  z-index: 1000;
}

.lightbox.activo {
  background: rgba(0, 0, 0, 0.92);
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  transform: scale(0.85);
  transition: 0.4s;
}

.lightbox.activo .lightbox-img {
  transform: scale(1);
}

.cerrar {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  opacity: 0.7;
}

.cerrar:hover {
  opacity: 1;
}

/* ANIMACIONES */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.activo {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SOBRE MI */

#sobre-mi{
background:#000;
color:white;
max-width:none;
width:100%;
margin:0;
padding:100px 20px;
}

.sobre-mi-container{
display:flex;
align-items:center;
justify-content:center;
gap:60px;
}

.sobre-mi-foto img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
}

.sobre-mi-texto {
  max-width: 500px;
}

.sobre-mi-texto h2 {
  margin-bottom: 6px;
}

.sobre-mi-texto p {
  line-height: 1.6;
}

@media (max-width: 700px) {
  .sobre-mi-container {
    flex-direction: column;
    text-align: center;
  }
}

.btn-cv{
display:inline-block;
margin-top:20px;
padding:10px 22px;
border:1px solid white;
color:white;
text-decoration:none;
font-size:14px;
transition:0.3s;
}

.btn-cv:hover{
background:rgb(174,255,0);
border-color:rgb(174,255,0);
color:black;
}

/* CONTACTO */

#contacto {
  padding: 100px 20px;
  text-align: center;
  background: #000;
  color: white;
  max-width: none;
}

#contacto h2 {
  margin-bottom: 20px;
}

.contacto-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contacto-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 10px 20px;
  transition: 0.3s;
}

.contacto-links a:hover {
  background: rgb(174, 255, 0);
  color: black;
  border: 1px solid rgb(174, 255, 0);
}

/* VIDEO */

.video-proyecto {
  width: 100%;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  header h1 {
    font-size: 52px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 42px;
  }
}

body {
  opacity: 0;
  animation: fadeEntrada 0.6s ease forwards;
}

@keyframes fadeEntrada {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .proyecto.grande {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero-sub {
    font-size: 18px;
  }

  h2 {
    font-size: 28px;
  }
}

/* FOOTER */

footer {
  width: 100%;
  text-align: center;
  padding: 20px;
  background: black;
  color: white;
  font-size: 14px;
}

.footer-sub {
  opacity: 0.6;
  margin-top: 5px;
  font-size: 13px;
}

/* FLECHA */
.volver{
  display:inline-block;
  margin-bottom:40px;
  font-size:14px;
  opacity:0.7;
}
.volver-arriba {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: black;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
}

.volver-arriba:hover {
  background: rgb(174, 255, 0);
  transform: translateY(-3px);
  color: black;
}

.flecha-bajar {
  background: black;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
}

.flecha-bajar:hover {
  background: rgb(174, 255, 0);
  transform: translateY(-3px);
  color: black;
}

.volver{
color:black;
text-decoration:none;
font-size:14px;
font-weight:500;
}

.volver:hover{
text-decoration:underline;
}

/* HERO */

.hero {
  background: white;
  color: black;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 160px 20px 40px;
  width: 100%;
  max-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: 68px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: 22px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.65;
  padding-bottom: 20px;
}
