@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 800px) {
  .main img {
    width: 100%;        /* ocupa todo el ancho disponible */
    height: auto;       /* altura proporcional */
    max-width: 350px;   /* opcional, limita tamaño máximo */
    object-fit: contain; /* ajusta la imagen para que se vea completa sin recortes */
  }
}


.wrapper {
  width: 100vw; 
  height: 100vh;
  padding-top: 70px;
  background-color: #191c32;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: #2b3058;
  z-index: 1000;
  padding: 1em 2em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);

  display: flex;
  justify-content: space-between; /* importante para separar logo y menú */
  align-items: center;
}

.navbar.scrolled {
  background-color: #1c2345;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.brand {
  margin-top: -7px;
}

.brand span {
  color: aqua;
}

.menu {
  display: flex;
  /* width: 50%;  <-- quitar esta línea */
  justify-content: space-between;
  gap: 1.5em;
  align-items: center;
}

.menu li {
  list-style: none;
  padding: 0.3em 0.6em;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
}

.menu a:hover {
  background-color: aqua;
  color: #191c32;
}

.menu .active {
  color: aqua;

}

.toggle-menu,
.info-content__subtitle,
.info-content .sotial-networks {
  display: none;
}

.main {
  margin: 0 auto;
  width: 80vw;
  height: 80vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2em;
}

h1 {
  font-size: clamp(4vw, 1.5em, 3em);
}

.info-content span {
  color: aqua;
}

.download-cv {
  display: inline-block;
  padding: 10px 20px;
  background-color: aqua;
  border: none;
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 1px 3px 11px -5px rgba(102, 231, 200, 0.69);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: #191c32;
  text-decoration: none;
}

.download-cv:hover {
  background-color: azure;
  box-shadow: none;
  color: #191c32;
}

.main img {
  border: 7px solid aqua;
  width: 100%;
  max-width: 350px;
  height: auto;
  min-height: 300px;
  object-fit: cover; /* para que la imagen mantenga proporción */
}

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 80vw;  /* reducimos un poco el ancho total para centrar */
  max-width: 1200px; /* limita tamaño máximo para que no se extienda demasiado */
  margin: 0 auto; /* centrar horizontalmente */
  align-items: center;
  gap: 2em;
  padding: 2em 0;
}

.about img {
  grid-column: 1 / 8; /* imagen ocupa 7 columnas */
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  max-height: 500px; /* un poco más alto */
}

.about-info {
  grid-column: 8 / 13; /* texto ocupa 5 columnas */
  padding-left: 2em;
}


.about-info h2 {
  font-size: 2.8em;
  color: #191c32;
  margin-bottom: 0.5em;
}

.about p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #191c32;
}

.portfolio,
.contact-section {
  width: 100vw;
  background-color: #191c32;
  color: #fff;
}

@media screen and (max-width: 800px) {
  .portfolio-heading {
    padding: 2em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .portfolio-heading h2 {
    font-size: 1.5em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw;
  }
}

.portfolio-heading h2 {
  font-size: 2.5em;
  color: #fff;
  text-align: center;
}

.portfolio .container {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  background-color: #2b3058;
  margin: 1em;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}


.card__img {
  width: 100%;
  height: 150px;
  background-image: url(https://res.cloudinary.com/freelancer2222222222222222/image/upload/v1650543491/samples/2-original_agisst.png);
  background-size: cover;
}

.card__title {
  padding: 20px;
}

.card__proyect-links {
  display: flex;
  justify-content: space-evenly;
}

.card__proyect-links a {
  color: #fff;
  text-decoration: none;
}

.card__proyect-links i {
  font-size: 1.5em;
}

.button-content {
  display: flex;
  justify-content: center;
  margin: 1em;
}

.project-details-button a {
  text-decoration: none;
  color: #191c32;
}


.contact-section {
  padding: 3em;
}

.container-contact {
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.contact-section img {
  width: 750px;
  height: 700px;
  bottom: 0px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 30vw;
  margin-top: 2em;
}

.form-group textarea {
  height: 150px;
  padding: 1.5em;
  background: none;
  border: 1px solid #fff;
  color: #fff;
}

.form-group .input {
  padding: 10px 20px;
  margin-bottom: 1em;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
}

.form-group .btn-submit {
  padding: 10px 20px;
  margin: 1em;
  border-radius: 20px;
  border: none;
  text-transform: uppercase;
  background-color: aqua;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 200px;
  padding: 2em;
  background-color: aqua;
}

.footer-content h2 {
  font-size: 3em;
}

.footer-content h5 {
  font-size: 1.5em;
  text-align: center;
}

.sotial-networks {
  display: flex;
  justify-content: space-evenly;
  width: 300px;
  margin-top: 1em;
}

.sotial-networks i {
  font-size: 1.5em;
}

.portfolio,
.contact-section {
  width: 100vw;
  background-color: #191c32;
  color: #fff;
}

.portfolio-heading {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5em;
}


.portfolio-heading h2,
.contact-heading h2 {
  font-size: 2.5em;
  color: #fff;
}

.portfolio .container {
  width: 80vw;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 300px;
  background-color: #2b3058;
  margin: 1em;
  margin-bottom: 6em;
  margin-top: -2em;
}

.card__img {
  width: 100%;
  height: 150px;
  background-image: url(../img/Picture2.png);
  background-size: cover;
}

.card__img2 {
  width: 100%;
  height: 150px;
  background-image: url(../img/Picture3.png);
  background-size: cover;
}

.card__img3 {
  width: 100%;
  height: 150px;
  background-image: url(../img/Picture4.png);
  background-size: cover;
}

.card__img-auto {
  width: 100%;
  height: 150px; /* igual que las otras imágenes en tarjetas */
  background-image: url('../img/auto_portafolio.png'); /* ajusta ruta si es necesario */
  background-size: cover;
  background-position: center;
  border-radius: 0; /* si quieres que tenga bordes redondeados, pon border-radius: 11px; */
}


.card__title {
  padding: 20px;
}

.card__proyect-links {
  display: flex;
  justify-content: space-evenly;
}

.card__proyect-links a {
  color: #fff;
  text-decoration: none;
}

.card__proyect-links i {
  font-size: 1.5em;
}

.button-content {
  display: flex;
  justify-content: center;
  margin: 1em;
}

.project-details-button a {
  text-decoration: none;
  color: #191c32;
}

/* Skills */

.header-habilidadr h2{
  font-size: 2.5em;
  margin: auto;
}

.habilidades {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;
  padding: 2.5rem;
}

.encabezado-habilidad {
  margin-bottom: 1rem;
}

.contenedor-habilidad img {
  padding: 1.25rem;
}

.icon {
  width: 11.875rem;
  height: 11.25rem;
}
.icon-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var();
  padding: 20px;
  margin: 10px;
}

.habilidades h2, .contact-heading h2  {
  font-size: 2.5em;
}

.icon-card:hover {
  animation: bounce 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}


/* Contacto */

.contact-section {
  padding: 3em;
}

.container-contact {
  margin: 0 auto;
  margin-top: 10em;
}

.contact-section img {
  width: 750px;
  height: 700px;
  bottom: 0px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 30vw;
  margin-top: 2em;
}

.form-group textarea {
  height: 150px;
  padding: 1.5em;
  background: none;
  border: 1px solid #fff;
  color: #fff;
}

.form-group .input {
  padding: 10px 20px;
  margin-bottom: 1em;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
}

.form-group .btn-submit {
  padding: 10px 20px;
  margin: 1em 0;
  border-radius: 20px;
  border: none;
  text-transform: uppercase;
  background-color: aqua;
}


.footer {
  background-color: #191c32; /* fondo oscuro */
  color: #fff; /* texto claro */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1rem;
  text-align: center;
  width: 100vw;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content h2 {
  font-size: 2.5rem;
  margin: 0;
}

.footer-content h5 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  color: #80ffe8; /* un aqua suave para el subtítulo */
}

.sotial-networks {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  max-width: 300px;
}

.sotial-networks a {
  color: #fff;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.sotial-networks a:hover {
  color: aqua;
  transform: scale(1.2);
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .footer {
    padding: 1.5rem 1rem;
  }
  .footer-content h2 {
    font-size: 1.8rem;
  }
  .footer-content h5 {
    font-size: 1rem;
  }
  .sotial-networks a {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 800px) {

  .menu {
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #2b3058;
    z-index: 1;
    transform: translateX(-110%);
    transition: all .5s ease-in-out;
  }

  .show-menu {
    transform: translateX(0%);
    transition: all .5s ease-in-out;
  }

  .menu li {
    margin: 2em;
  }

  .toggle-menu {
    display: block;
  }

  .fa-bars {
    font-size: 1.5em;
    margin-top: -.2em;
  }

  .toggle-menu .fa-close {
    font-size: 1.7em;
    display: none;
  }

  .main,
  .about {
    display: flex;
    flex-direction: column-reverse;
  }

  .main img {
    width: min(70%, 350px);
    height: auto;
  }

  .info-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .info-content .sotial-networks,
  .info-content__subtitle {
    display: block;
  }

  .info-content__subtitle {
    margin-bottom: .5em;
  }

  .info-content .sotial-networks {
    display: flex;
    justify-content: space-evenly;

  }

  .download-cv,
  .info-content__p,
  .contact-section__img {
    display: none;
  }

  .form-group {
    width: 80vw;

  }

}

#img-contact {
  opacity: 0.1; /* tenue en desktop */
}

@media screen and (max-width: 800px) {
  #img-contact {
    opacity: 1; /* visible al 100% en móvil */
  }
}


/* NUEVO */

/* Transición suave para botones, enlaces e iconos */
a,
.download-cv,
.card__proyect-links i {
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Movimiento sutil al hacer hover */
a:hover,
.download-cv:hover {
  transform: translateY(-2px);
}

/* Escala al pasar sobre los íconos de proyecto */
.card__proyect-links i:hover {
  color: aqua;
  transform: scale(1.1);
}

@media screen and (max-width: 800px) {
  /* Quitamos .download-cv de ocultos */
  .info-content__p,
  .contact-section__img {
    display: none;
  }

  .download-cv {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: aqua;
    color: #191c32;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    box-shadow: 1px 3px 11px -5px rgba(102, 231, 200, 0.69);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .download-cv:hover {
    background-color: azure;
  }
}

@media screen and (max-width: 800px) {
  .container-contact {
    flex-direction: column; /* apila verticalmente imagen y formulario */
    align-items: center;    /* centra horizontalmente */
    gap: 2rem;              /* espacio entre imagen y formulario */
  }

  .contact-section img {
    width: 90vw;
    height: auto;
    max-height: 400px;
    margin: 0 auto;
    display: block;
  }

  .form-group {
    width: 90vw; /* que el formulario ocupe casi todo el ancho móvil */
  }
}

@media screen and (max-width: 800px) {
  #img-contact {
    opacity: 0.3; /* opacidad baja para móvil */
    max-width: 90vw;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

/* Ajuste para evitar que el header tape la sección anclada */
section, 
div[id], /* para otros contenedores con id usados en anclas */
header + * {
  scroll-margin-top: 80px; /* Ajusta este valor según la altura de tu header */
}

#typing-text {
  border-right: 2px solid aqua; /* cursor vertical */
  white-space: nowrap;
  overflow: hidden;
}

/* Cursor parpadeante */
@keyframes blink-caret {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: aqua;
  }
}

#typing-text.typing {
  animation: blink-caret 1s step-end infinite;
}

.card__img-auto,
.card__img-heroku {
  width: 100%;
  height: 180px; /* mismo alto para ambas */
  background-color: #111;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.card__img-auto img,
.card__img-heroku img {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
  max-width: 100%
}

.card__img-auto img:hover,
.card__img-heroku img:hover {
  transform: scale(1.05);
}

/*Nuevos agregados*/

/* ========================================
   CONOCIMIENTOS
======================================== */

.knowledge {
  width: 100%;
  padding: 5em 0;
}

.knowledge-heading {
  text-align: center;
  margin-bottom: 3em;
}

.knowledge-heading h2 {
  font-size: 2.8em;
  color: #191c32;
  margin-bottom: 0.5em;
}

.knowledge-heading .divider {
  margin: 0 auto;
}

/* Contenedor de tarjetas */

.knowledge-container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

/* Tarjetas */

.knowledge-card {
  background: #2f3566;
  border-radius: 12px;
  padding: 2em;
  box-sizing: border-box;

  min-height: 250px;
}

/* Títulos */

.knowledge-card h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 1em 0;
}

/* Lista */

.knowledge-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-card li {
  color: white;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.3em;
  position: relative;
  padding-left: 1.2em;
}

/* Punto de cada conocimiento */

.knowledge-card li::before {
  content: "•";
  color: #00f7ff;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/*CELULAR*/

/* ========================================
   CONOCIMIENTOS - RESPONSIVE
======================================== */

@media screen and (max-width: 768px) {

  .knowledge {
    padding: 3em 0;
  }

  .knowledge-heading h2 {
    font-size: 2.2em;
  }

  .knowledge-container {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .knowledge-card {
    padding: 1.5em;
    min-height: auto;
  }

  .knowledge-card h3 {
    font-size: 1.3rem;
  }

}

/* ========================================
   CONTACTO
======================================== */

.contact-section {
  padding: 5em 0 4em;
}

.contact-heading {
  text-align: center;
  margin-bottom: 3em;
}

.contact-heading h2 {
  font-size: 2.8em;
  color: white;
  margin-bottom: 0.5em;
}

.contact-heading .divider {
  margin: 0 auto;
}

/* Contenedor */

.container-contact {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Texto de contacto */

.contact-form h4 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
}

.contact-form p {
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 1.5em;
}

/* Formulario */

.contact-form {
  max-width: 620px;
}

.form-group {
  width: 100%;
}

.form-group .input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

/* Foto */

.contact-section__img {
  opacity: 0.65;
}

/* ========================================
   AJUSTE FOTO - CONTACTO
======================================== */

.contact-section__img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media screen and (min-width: 769px) {

  .container-contact {
    width: 75%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .contact-section__img {
    max-width: 420px;
  }

  .contact-form {
    max-width: 550px;
  }

}

#typing-text {
  display: inline-block;
  height: 1.5em;
  text-align: left;
}

/* ========================================
   PROYECTOS DE AUTOMATIZACIÓN
======================================== */

.card__description {
  padding: 0 20px;
}

.card__description p {
  margin: 0;
  line-height: 1.5;
  color: #fff;
}


.card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 15px 20px 20px;
}

.card__tech span {
  background-color: #191c32;
  color: #00f7ff;
  padding: 0.35em 0.7em;
  border-radius: 15px;
  font-size: 0.8rem;
}

.card__proyect-links {
  padding-bottom: 20px;
}

/* ========================================
   AJUSTE DE TARJETAS DE AUTOMATIZACIÓN
======================================== */

.portfolio .container {
  align-items: stretch;
}

.portfolio .card {
  display: flex;
  flex-direction: column;
}

.portfolio .card__proyect-links {
  margin-top: auto;
}

/* ========================================
   ENFOQUE DE TESTING
======================================== */

.testing-process {
  width: 100%;
  padding: 5em 0;
  background-color: #ffffff;
}

.testing-process-heading {
  text-align: center;
  margin-bottom: 4em;
}

.testing-process-heading h2 {
  font-size: 2.8em;
  color: #191c32;
  margin-bottom: 0.5em;
}

.testing-process-heading .divider {
  margin: 0 auto 1.5em;
}

.testing-process-heading p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #191c32;
}

.testing-process-container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.testing-step {
  text-align: center;
  padding: 2em 1.5em;
  position: relative;
}

.testing-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 1.2em;
  border-radius: 50%;
  background-color: #2f3566;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testing-icon i {
  color: aqua;
  font-size: 1.5rem;
}

.testing-step h3 {
  color: #191c32;
  font-size: 1.25rem;
  margin-bottom: 0.7em;
}

.testing-step p {
  color: #191c32;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}


/* ========================================
   RESPONSIVE - ENFOQUE DE TESTING
======================================== */

@media screen and (max-width: 768px) {

  .testing-process {
    padding: 3em 0;
  }

  .testing-process-heading h2 {
    font-size: 2.2em;
  }

  .testing-process-heading p {
    width: 90%;
    font-size: 1rem;
  }

  .testing-process-container {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .testing-step {
    padding: 1.5em 1em;
  }

}

/* ========================================
   HOVER - ENFOQUE DE TESTING
======================================== */

.testing-step {
  transition: transform 0.3s ease;
}

.testing-step:hover {
  transform: translateY(-6px);
}

.testing-step .icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.testing-step:hover .icon {
  transform: scale(1.1);
  background-color: #191c32;
}

.testing-step h3 {
  transition: color 0.3s ease;
}

.testing-step:hover h3 {
  color: aqua;
}

/* ========================================
   HOVER - ENFOQUE DE TESTING
======================================== */

.testing-step {
  transition: transform 0.3s ease;
}

.testing-step:hover {
  transform: translateY(-6px);
}

.testing-step .testing-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.testing-step:hover .testing-icon {
  transform: scale(1.1);
  background-color: #191c32;
}

.testing-step h3 {
  transition: color 0.3s ease;
}

.testing-step:hover h3 {
  color: aqua;
}

/* ========================================
   CONEXIONES - ENFOQUE DE TESTING
======================================== */

.testing-process-container {
  position: relative;
}

/* Línea horizontal de la primera fila */
.testing-step:nth-child(1)::after,
.testing-step:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 120px;
  height: 2px;
  background: aqua;
  opacity: 0.35;
}

/* Primera conexión */
.testing-step:nth-child(1)::after {
  right: -60px;
}

/* Segunda conexión */
.testing-step:nth-child(2)::after {
  right: -60px;
}

/* Línea horizontal de la segunda fila */
.testing-step:nth-child(4)::after,
.testing-step:nth-child(5)::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 120px;
  height: 2px;
  background: aqua;
  opacity: 0.35;
}

.testing-step:nth-child(4)::after {
  right: -60px;
}

.testing-step:nth-child(5)::after {
  right: -60px;
}

