// Variables
$primary-color: #003366;
$accent-color: #6200ea;
$light-bg: #e6f3ff;
$text-color: #222;
$font-stack: 'Segoe UI', sans-serif;
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}
 body{
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: $accent-color;

  &:hover {
    text-decoration: underline;
  }
}
/* ======== NAVBAR ESTÁNDAR ======== */
.navbar {
  background-color: #0A0A0A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
}

/* ======== RESPONSIVE (Celulares) ======== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0A0A0A;
    width: 100%;
    display: none;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}





 .logo-container {
  display: flex;
  align-items: center;
  gap: 12px; /* Espacio entre logo y texto */
}

.logo-img {
  height: 7rem;
  width: 7rem;
}

.logo-text {
  font-size: 2.3rem;
  color: #F7E7CE;
  font-weight: 500;
  white-space: nowrap;
}

  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    

    li {
      a {
        color: #F7E7CE;  
        font-weight: 500;
        transition: color 0.3s ease;

        &:hover {
          color: #00bcd4;
          text-decoration: none;
        }
      }
    }
  }


/* ======== RESPONSIVE (Celulares) ======== */
@media (max-width: 768px) {
.logo-text {
  font-size: 1rem;
  color: #F7E7CE;
  font-weight: 500;
  white-space: nowrap;
}
}
.Proyectos, .habilidades{
  text-align: center;
}
header.hero {
  background: linear-gradient(135deg, #005aa7, #fffde4);


  color: #003366;
}

.hero-banner {
  background-image: url("images/slider1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
}

.hero-banner .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Oscurece un poco para mejor contraste */
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  color: #fff;
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}


    h1 {
      font-size: 3rem;

    }

    p {
      font-size: 1.2rem;
    }
  
#sobre-mi,
#servicios,
#proyectos,
#cotizaciones,
#contacto {
  scroll-margin-top: 260px;
}






section {




  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: $primary-color;
    font-family: "Roboto", sans-serif;

  }
}
.about {
  padding: 4rem 1rem;
  background: #fff;
  color: #333;

  .about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .about-text {
    flex: 1 1 400px;
    text-align: left;

    h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #111;
    }

    p {
      font-size: 1.1rem;
      line-height: 1.6;
    }
  }

  .about-img {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;

    img {
      max-width: 20rem;
      width: 100%;
      height: 19rem;
      border-radius: 50%;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
      object-fit: cover;
    }
  }
}

.projets{
  margin-top: 5rem;
}
.about,
.skills,
.projects {
  max-width: 1000px;
  margin: 7rem  auto;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;

  span {
    background-color: #f1f1f1;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-weight: 500;
  }
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;

  .project-card {
    max-width: 80rem;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.2s ease;

    &:hover {
      transform: translateY(-5px);
    }

    img {
      width: 100%;
      max-height: 30rem;
      object-fit: contain;
      margin-bottom: 1rem;
    }

    h3 {
      margin: 0.5rem 0;
      font-size: 1.1rem;
    }

    p {
      font-size: 0.95rem;
    }
  }
}
.paquetes {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  color: #fefefe;
  text-align: center;
}

.paquetes h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f6e8d7;
}

.paquetes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.paquete {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.paquete:hover {
  transform: scale(1.03);
}

.paquete h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #f6e8d7;
}

.precio {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #f6e8d7;
}

.paquete ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.paquete ul li {
  margin: 0.5rem 0;
}

.destacado {
  border: 2px solid #f6e8d7;
}

.btn-pagar {
  display: inline-block;
  padding: 0.6rem .5rem;
  background-color: #f6e8d7;
  color: #111;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  width: 95%;
  transition: background 0.3s ease;
}

.btn-pagar:hover {
  background-color: #e6d8c4;
}
.botones-pago {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.botones-pago button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background-color: #7e2dff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.botones-pago button:hover {
  background-color: #6a1edf;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75);
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin: 10% auto;
  text-align: center;
  position: relative;
}

.cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.payment-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-top: 2rem;}

  .btn-paypal{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;

    .icon {
      width: 15.8rem;
      height: 1rem;
    }
  }

  .btn-paypal {
    background-color: 
#fcc43c;

    &:hover {
      background-color: rgb(252, 196, 60);
    }
     .card-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;

    img {
      height: 32px;
      width: 100%;
      object-fit: contain;
      filter: grayscale(30%);
    }
  }
  }

  
.contact {
  padding: 60px 0;
  background: #111;
  color: #F7E7CE;
  text-align: center;
  width: 100%;
  margin-top: 2rem;

  scroll-margin-top: 120px; /* <<< SOLUCIÓN */
}


.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.contact form {
  width: 100%;
  max-width: 1200px; /* más ancho en pantallas grandes */
  margin: 0 auto;
  display: grid;
  gap: 20px;
  padding: 0 2rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .contact form {
    padding: 0 5rem;
  }
}



.contact input,
.contact textarea {
  padding: 15px ;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: #1e1e1e;
  color: #fff;
  outline: none;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #ccc;
}

.contact button {
  background-color: #F7E7CE;
  color: #111;
  font-weight: bold;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background-color: #e0c9af;
}
/* Extra: mejora visual en pantallas pequeñas */
@media (max-width: 400px) {
  .contact h2 {
    font-size: 1.5rem;
  }

  .contact {
    padding: 40px .5rem;
    align-items: left;
  }
  
}


/* Footer */

footer {
  background-color: #0a0a0a;
  color: #F7E7CE;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social a {
  color: #F7E7CE;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.social a:hover {
  color: #ffffff;
}
.map-container {
  margin: 20px auto;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}



// Responsive
@media (max-width: 768px) {
  .project-list {
    flex-direction: column;
    align-items: center;
  }

  .skills-grid {
    flex-direction: column;
  }
}

.services {
  text-align: center;
  margin: 6rem 0;

  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
  }

  .service-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 220px;
    transition: transform 0.3s ease;
    text-align: center;

    &:hover {
      transform: translateY(-5px);
    }

    i {
      font-size: 2.5rem;
      color: $accent-color;
      margin-bottom: 1rem;
    }

    h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: $primary-color;
    }

    .p2 {
      font-size: 0.95rem;
      color: #555;
    }
  }
}

  li {
    padding: 0.5rem;
    font-weight: 500;
  }







