:root {
  --primary-color: #000;
  --secondary-color: #9f9f9f;
  --accent-color: #cacac9a8;
  --text-color: #1a1a1a;
  --bg-light: #eeeeee;
  --font-main: 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* HERO SECTION */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* HEADER */
.header {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 5%;
  position: relative;
  z-index: 2;
}

.EnlacesHeader {  
  font-family: sans-serif;
  margin-left: 30px;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: bold;
  color: rgb(0, 0, 0);
  transition: color 0.3s ease;
}

.EnlacesHeader:hover {
  color: var(--secondary-color);
}

/* TITULO CENTRAL */
#primertexto {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20vh;
  gap: 1rem;
  text-align: center;
  z-index: 2;
  position: relative;
  flex-wrap: wrap;
}

#primertexto h1 {
  font-size: 3rem;
  color: rgb(28, 28, 28);
}

#primertexto img {
  width: 60px;
  height: auto;
}

/* ICONOS SOCIALES */
.iconos {
  max-width: 1880px;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.iconos img {

  width: 50px;
  height: 50px;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.iconos img:hover {
  transform: scale(1.1);
}

/* BIENVENIDA */


/* SOBRE MI */
.divisor {
  background-color: var(--bg-light);
  padding: 5% 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--accent-color);
  border-radius: 1.5rem;
  margin: 0 auto;
  width: 90%;
  padding: 2rem;
  gap: 2rem;
}

#about {
  flex: 1 1 60%;
  font-size: 1.1rem;
  padding: 1rem;
}

.titulo {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-decoration: underline;
}

.parrafo {
  line-height: 1.8;
}

.photo {
  margin-right: 40%;
  flex: 1 1 30%;
  width: 100%;
  max-width: 300px;
  border-radius: 10%;
  object-fit: cover;
  margin: auto;
}

/* PORTAFOLIO */
.portafolio {
  padding: 4rem 2rem;
  background-color: #eeeeee;
  text-align: center;
}

.section {
  position: flex;
  top: 50%;
  left: 0%;
  
  text-align: center;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.section p {
  font-size: 1.4rem;
  max-width: 700px;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  color: #1a1a1a;
  line-height: 1.8;
  margin: 0;
}
.seccion{
  padding-bottom: 3%;
  text-decoration: underline;
  font-size: 1.6rem;
  
}




@media (max-width: 768px) {
  .intro-texto p {
    font-size: 1.1rem;
    padding: 1rem;
  }
}


.proyectos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.foto,
.proyecto3 {
  width: 90%;
  max-width: 300px;

  max-height: 400px;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.foto:hover,
.proyecto3:hover {
  transform: scale(1.05);
}

.portafolio2 {
  padding: 0rem 0rem;
  background-color: #eeeeee;
  text-align: center;
}



@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .btn1 span {
    font-size: 0.4rem;
    padding: 0rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
  }
}
@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .btn1  {
    font-size: 0.4rem;
    padding: 0rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
  }
}
@media (max-width: 360px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .btn1 span {
    font-size: 0.1rem;
    padding: 0rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
  }
}

.foto:hover,
.proyecto3:hover {
  transform: scale(1.05);
}

.btn2{
  text-decoration: none;
  display: flex;
  background-image: linear-gradient(
    200deg,
    #000000,
    #cdcdcdb3,
    #000000
  );
  border-radius: 8px;
  margin-left:37% ;
  margin-right: 37%;
  margin-top: 2%;
  font-size: 18px;
  padding: 4px;
  cursor:pointer ;
  transition: .3s;
  position: relative;
  
}
.btn2 span{
  font-size: 1.6rem;
  color: #000;
  background-color:#cacac9a8 ;
  padding: 16px 30px;
  border-radius: 6px;
  transition: 300ms;
}
@media (max-width: 1024px) {
  .btn2 {
    margin-left: 34%;
    margin-right: 34%;
  }
}

.btn2:hover span {
  background-color: rgba(255, 255, 255, 0.807);
 
}
.btn2:active{
  transform: scale(0.9);
}

@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .btn2 span {
    font-size: 1rem;
    padding: 0rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
  }
}
@media (max-width: 768px) {
  .btn2 span {
    font-size: 1rem;
    padding: 1rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
    text-align: center;
  }
}
/* BOTÓN PROYECTOS */
.btn1{
  text-decoration: none;
  display: flex;
  background-image: linear-gradient(
    200deg,
    #000000,
    #cdcdcdb3,
    #000000
  );
  border-radius: 8px;
  margin-left:37% ;
  margin-right: 37%;
  margin-top: 2%;
  font-size: 18px;
  padding: 4px;
  cursor:pointer ;
  transition: .3s;
  position: relative;
  
}
.btn1 span{
  font-size: 1.6rem;
  color: #000;
  background-color:#cacac9a8 ;
  padding: 16px 30px;
  border-radius: 6px;
  transition: 300ms;
}
@media (max-width: 1024px) {
  .btn1 {
    margin-left: 34%;
    margin-right: 34%;
  }
}

.btn1:hover span {
  background-color: rgba(255, 255, 255, 0.807);
 
}
.btn1:active{
  transform: scale(0.9);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #primertexto h1 {
    font-size: 2.2rem;
  }

  .EnlacesHeader {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #primertexto {
    flex-direction: column;
  }

  .header {
    justify-content: center;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }

  #about {
    text-align: center;
  }

  .proyectos {
    flex-direction: column;
  }

  .section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .btn1 span {
    font-size: 1rem;
    padding: 0rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
  }
}
@media (max-width: 768px) {
  .btn1 span {
    font-size: 1rem;
    padding: 1rem 0rem;  
    margin-left: 0%;
    margin-right: 0%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn1 span {
    font-size: 0.85rem;
    padding: 1px 1px;  
    margin-left: 0%;
    margin-right: 0%;
  }
}
  .btn2 {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-align: center;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
  }

  .btn2 span {
    display: inline-block;
    width: 100%;
  }

  /* Ajustes para pantallas pequeñas */
  @media (max-width: 600px) {
    .btn2 {
      width: 90%;
      font-size: 0.7rem;
      padding: 0.75rem;
      margin: 1rem auto;
      display: block;
    }
  }



.boton-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
}



@media (max-width: 600px) {
  .boton {
    font-size: 0.5rem;
    padding: 0.6rem 1.5rem;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}






/* Estilos responsivos para móviles */
@media (max-width: 768px) {
  .btn1, .btn2 {
    padding: 5px 5px;
    width: 50%;
    text-align: center;
    margin: 10px auto;
    display: inline-flex;
  }

  .EnlacesHeader {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .proyectos {
    flex-direction: column;
    align-items: center;
  }

  .proyectos img {
    width: 90%;
    margin: 10px 0;
  }
}
