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

*, *::before, *::after {
  box-sizing: border-box;
}

.content {
  opacity: 0; /* oculto al inicio */
  transition: opacity 0.5s ease-in-out;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1,  h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2{
  font-family: "Gloock", serif;  font-weight: 700;
   color:#3C313D;
}

p, li, span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Transición inicial del body */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}


html {
  scroll-behavior: smooth;
}


/* La franja negra inicial */
/* Overlay inicial */

#overlay-effect {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3C313D;
  z-index: 9999;
  animation: overlayUp 1s forwards;
}

@keyframes overlayUp {
  0% {
    transform: translateY(100%); /* fuera de la pantalla abajo */
    opacity: 1;
  }
  30% {
    transform: translateY(0);    /* llega y cubre toda la pantalla */
    opacity: 1;
  }
  50% {
    transform: translateY(0);    /* se mantiene visible un tiempo moderado */
    opacity: 1;
  }
  100% {
    transform: translateY(-100%); /* sigue subiendo suavemente y desaparece */
    opacity: 1;
  }
}



/* Carousel */

.carousel-caption {
    position: absolute;
    bottom: 20px;   /* distancia desde el fondo del slide */
    left: 20px;     /* ubícalo en la izquierda */
    text-align: left; /* evita el centrado de Bootstrap */
  }
  
  .carousel-caption .btn {
    background-color:  #C5908A;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
  }
  



.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }
  
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-caption .btn-pink {
    position: absolute; /* permite ubicarlo en un lugar específico */
    bottom: 50px;       /* distancia desde la parte inferior */
    left: 40px; 
    background-color: #C5908A;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3); /* sombra */
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 20px;
    text-decoration: none;
    color:  #3C313D;
  }
  .carousel-caption .btn:hover {
    background-color: #C5908A;
  }
  
  .carousel-caption .btn-dark {
    position: absolute; /* permite ubicarlo en un lugar específico */
    bottom: 50px;       /* distancia desde la parte inferior */
    left: 40px; 
    background-color: #3C313D;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3); /* sombra */
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #C5908A;  

}

  .carousel-caption .btn:hover {
    background-color: #3C313D;
  }
  

  .hero-desktop {
    display: block;
  }
  .hero-mobile {
    display: none;
  }



/* nav */

.custom-navbar {
    background-color: #3C313D;
    padding: 1rem 0;
  }
  
  
  .custom-navbar .navbar-brand {
    color: #f2d5d0;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  .custom-navbar .navbar-brand:hover {
    color: #D1A39C
  }
  
  
  .custom-navbar .nav-link {
    color: #f2d5d0;
    font-weight: 300;
    margin: 0 1rem;
    transition: color 0.6s ease;
  }
  
  .custom-navbar .nav-link:hover,
  .custom-navbar .nav-link:focus {
    color: #D1A39C;
    text-decoration: none;
    outline: none;
    box-shadow: none;
  }
  
  
  .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  .navbar-toggler {
    border: none  !important;         /* quita el borde */
    box-shadow: none !important; /* quita el sombreado al hacer click */
    outline: none !important;    /* quita el contorno */
    background: transparent;     /* quita el fondo */
    padding: 0.25rem 0.5rem;     /* ajusta el espacio */
  }

/* Botón hamburguesa */
.menu-icon {
  border: none;  
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color:  #C5908A; /* cámbialo según el color de tu navbar */
  transition: all 0.4s ease;
}

.lang-btn {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 10px;
  margin-left: 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.lang-btn:hover {
 
  color:#C5908A !important;
}



/* Cuando se activa (X) */
.menu-btn-active .menu-icon:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn-active .menu-icon:nth-child(2) {
  opacity: 0;
}

.menu-btn-active .menu-icon:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}





/* body home*/

.work {
  background-color: #edccc89c;

  text-align: center;
}

.work img {
  display: block;
  margin: 0 auto;         /* centra horizontalmente */
  width: 100%;            /* se adapta al contenedor */
  max-width: 500px;       /* tamaño máximo en desktop */
  height: auto;
  padding: 0;
}
img.title-img.img-fluid {
  width: 30%;
  max-width: 100px;
  min-width: 180px;
  height: auto;
  display: block;
  padding-top: 40px;
  padding-bottom: 40px;

}


.portfolio {

  max-width: 600px; /* ancho máximo */
  text-align: center; 
  padding-top: 60px;
  margin: 0 auto;
  padding: 0;
}



.portfolio img {
  width: 15%;
  height: auto;

}

.text-center {
  text-align: center;
  color: #3C313D;
  font-family: 'Montserrat', sans-serif;
  padding-top: 70px;
  padding-bottom: 70px;
}

.portfolio h2 {
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px); 
    gap: 1rem;
    justify-content: center;   /* centra horizontalmente el grid */
    margin: 0 auto;    
}

.card-custom {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  aspect-ratio: 2 / 2; /* cuadrado */
}

.card-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(57, 37, 57, 0.927);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.overlay span {
  color: #D1A39C;
  font-size: 1rem;
  font-weight: lighter;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.card-custom:hover img {
  transform: scale(1.1);
}
.card-custom:hover .overlay {
  opacity: 1;
}
.card-custom:hover .overlay span {
  transform: translateY(0);
}


.wave {
 background-color: #edccc89c;


}
.wave svg {
  display: block;
  width: 100%;
  height: 200px;   /* ajusta a lo que quieras */
}


.index-section {
 
  color: #f2d5d0;
  padding-top: 0 !important; 
  margin-top: -80px;
  height: 500px;
  


}
/* im helena secction */

.container-hello {
  display: flex; /* coloca en fila */
  justify-content: center; /* centra horizontalmente */
  align-items: center; /* alinea verticalmente */
  gap: 40px; /* espacio entre imagen y texto */
  color: #f2d5d0;
  background-color: #3C313D;
  padding: 60px 20px; 
}

/* imagen a la izquierda */
.image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-wrapper img {
  max-width: 80%;
  height: auto;
}

/* texto a la derecha */
.image-hello {
  flex: 1;
}

.image-hello .hello-title {
  max-width: 250px; /* puedes ajustar este ancho */
  margin-bottom: 20px;
}

.image-hello p {
  font-family: 'Montserrat', sans-serif;
  font-weight: lighter;
  max-width: 600px;
  margin: 0 0 20px 0; 
  text-align: justify;
  color: #f2d5d0;
}

.btn-pink {
  background-color: #C5908A;
  color: #3C313D;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: normal;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-pink:hover {
  background-color: #2f2630;
  color: #C5908A;
  border: 1px solid pink;
  transform: translateY(-2px);
  cursor: pointer;
}




.site-footer {
  background-color:  #D1A39C;
  color: #2b222c ;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  height: 140px;
}

.site-footer img{ 
  max-width: 150px;
  margin-bottom: 1rem;
}


/*about me section*/

.education-contact {
  background-color: #F4E8E6;
  padding-left: 30px;
  padding-top: 30px;   /* antes 70px */
  position: relative;
  z-index: 1;
}


.section-title {
  width: 220px;        /* Ajusta según el tamaño deseado */
  height: auto;
  display: block;
  margin-bottom: 20px;
  object-fit: contain;
}


.icon-box img {
  width: 25px;     /* ajusta según tu diseño */
  height: 25px;
  object-fit: contain; /* mantiene proporción sin deformar */
  margin-right: 10px;
  vertical-align: middle;
}

.container-about {
  
  max-width: 1200px;
  margin: 0 auto; /* centra horizontalmente */
  padding: 0 20px; /* espacio lateral para que respire */
  display: flex;
  flex-wrap: wrap; /* asegura que las columnas bajen una debajo de otra */
  justify-content: center; /* centra las columnas horizontalmente */
}

.profile-image img {
  width: 100px;
  
  
}
.col-md-6.mb-4 p {
  text-align: justify;

}




.aboutme-image {
  max-width: 450px;
  padding-left: 50px;
  padding-top: 50px;
 
}


.contact-text img {/* CONTACT title" */
  margin: 0;
  padding: 0;
  width: 100px;

}

.contact-text.text-center {
  margin: 0; 
 margin-left: 30px;
 
}


.text-center.mb-4 {
  padding: 0;
  margin: 0;
}


.contact-text {/* CONTACT ICONS" */
padding-left: 100px;
border-radius: 10px;

}



.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.icon-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.icon-box img {
  width: 20px;
  height: 20px;
}


/* CONTACT LIST */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;                 /* espacio entre icono y texto */
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #3C313D;
}

.icon-box {
  width: 34px;
  height: 34px;
  background-color: #3C313D;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;            /* evita que el ícono se achique */
}

.icon-box img {
  width: 40px;
  height: 30px;
  object-fit: contain;
}


.skills li {
  padding-left: 100px;
  padding: 10px;
}


.skills img{
width: 150px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  margin-top: 50px;

}
.cont {
  width: 190px;
    height: auto;
    display: block;
    margin-bottom: 30px;
    margin-top: 50px;
    
  
  }
  .educa img{
    width: 130px;
      height: auto;
      display: block;
      margin-bottom: 30px;
      margin-top: 50px;
    
    }
/* Timeline */

.experience-section {
  padding: 50px;
  background-color: #EDCCC8;
}

.container-experience {
background-color: #EDCCC8;
padding: 70px;
margin: 0;
}

.expe {
  text-align: center; 
 

}




.timeline-item {
  position: relative;
  padding: 20px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: #3C313D;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background-color: #3C313D;
  z-index: 1;
}


    /* Línea central */
    .timeline::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0; /* 🔥 hace que la línea ocupe toda la altura del contenido */
      left: 50%;
      transform: translateX(-50%);
      width: 1px;
      background-color: #3C313D;
    }


    /*highlights */
    .skills-section img[alt="Highlights"] {
      display: block;
      margin: 0 auto 30px auto;
      max-width: 180px;
      height: auto;
    }
    .skills-section {
      padding: 40px 20px;
      background-color: #fbf8f7;
    }
    
    .container-skills {
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
    }
    
    .skills-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      margin-top: 40px;
    }
    
    /* === Tarjetas === */
    .skill-card {
      background-color: #ffffff;
      border-radius: 20px;
      box-shadow: 0 3px 6px rgba(0,0,0,0.08);
      padding: 20px 15px;
      width: 240px;
      min-height: 300px;
      text-align: center;
      transition: all 0.3s ease;
      padding-bottom: 60px;
    }
    
    .skill-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 12px rgba(0,0,0,0.15);
    }
    
    /* Imagen */
    .skill-card img {
      width: 85px;
      height: auto;
      margin-bottom: 15px;
    }
    
    /* Título */
    .skill-card h5 {
      font-size: 1rem;
      font-weight: 600;
      color: #3b2b33;
      margin-bottom: 10px;
    }
    
    /* Lista */
    .skill-card ul {
      list-style: disc;
      padding-left: 20px;
      text-align: left;
      margin-bottom: 15px;
      padding-bottom: 40px;
    }
    
    .skill-card li {
      font-size: 0.85rem;
      color: #4a3b3b;
      line-height: 1.4;
    }
    .timeline-item h5 {
      text-align: right !important;
      color: #4a3b3b;
    }
    
    
    /* Botón */
    .btn-skill {
      font-family: 'Montserrat', sans-serif;
      background-color: #4b3a46;
      color:#e1aea9;
      padding: 8px 14px;
      border-radius: 25px;
      font-size: 0.89rem;
      text-decoration: none;
      transition: background 0.3s ease;
    }
    
    .btn-skill:hover {
      background-color: #d89b94;
      color:#2b222c;
    }
 

/* Card específica para Graphic Design */
.web-card {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  padding: 10px;
  width: 70%;
  max-height: 300px;   /* 🔥 límite de altura */
  margin: 0 auto;      /* centrado en pantallas pequeñas */
  transition: transform 0.3s ease;
  overflow: hidden;    /* evita que se desborde contenido */

}

.web-card img {
  width: 250px; /* más pequeño para reducir altura */

  
}







.web-card ul.custom-list {
  list-style: disc;          /* Muestra bullets normales */
  list-style-position: inside; /* Alinea bullets dentro del cuadro */
  padding-left: 20px;        /* Espacio para que respiren */
  margin: 10px auto;
  text-align: left;          /* Para que el texto quede alineado con los bullets */
  max-width: 200px;          /* Opcional: mantiene el texto angosto y bonito */
}

.web-card ul.custom-list li {
  font-size: 0.85rem;
  color: #3c2b2b;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Si quieres que los bullets sean rosados o personalizados */
.web-card ul.custom-list li::marker {
  color: #e2b6b0;
}



/* portfolio section */

.portfolio-section p {
  padding-left: 5%;
  padding-right: 5%;
  text-align: justify;
}

.portfolio-section {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 3rem;  /* menos alto */
  background-color: #F4E8E6;
}

.portfolio-title {
  display: block;
  margin-left: 90px;
  margin-bottom: 50px;
  margin-top: 60px;
  max-width: 200px;
}

.portfolio-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between; /* separa texto e imagen */
  gap: 2rem;
  max-width: 1100px; /* 🔑 limita toda la sección */
  margin: 0 auto; /* 🔑 centra la sección */
  background-color: #F4E8E6;
  padding: 0 1rem; /* 🔑 agrega aire lateral */
}


.portfolio-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  max-width: 600px;

}

.portfolio-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 750px;       /* limita el ancho para legibilidad */
  margin-left: auto;
  margin-right: auto;     /* centra horizontalmente */
  padding: 0 1rem;        /* 🔑 agrega el padding lateral (≈16px por lado) */
  text-align: justify;    /* 🔑 alinea ambos bordes del texto */
  text-justify: inter-word; /* mejora la distribución de espacios */
}


.portfolio-image {
  flex: 1;
  max-width: 400px;
  padding-right: 80px;
  padding-bottom: 50px;
 margin-top: -30px;
  
}




/* Barra secundaria */
.sub-navbar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #F4E8E6;
}
.sub-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #F4E8E6;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
}

.sub-navbar a {
  text-decoration: none;
  color: #3c2b2b;
  font-weight: 500;
  position: relative;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* Hover y activo tipo cápsula */
.sub-navbar a:hover,
.sub-navbar a.active {
  background-color: #d8a6a066; /* rosa suave */
  color: #3c2b2b;
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.3s ease;
  transform: translateY(-2px);
}




/* Galerías */

.galleries {
  background-color: #F4E8E6;
  padding: 20px 15px;   /* menos padding para evitar empujar contenido */
  margin-top: 0;        /* asegura que empiece pegado arriba */
  box-sizing: border-box;
  overflow-x: hidden;   /* evita scroll horizontal inesperado */
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  margin: 1.5rem auto 0 auto;
  max-width: 1000px;
  padding: 0;
}

/* cada bloque de galería (no dejar margin-top/bottom grande) */
.galleries .gallery {
  display: grid;
  grid-template-columns: inherit;
  gap: 1rem;
  justify-items: center;
  margin: 0;           /* elimina márgenes que causan hueco */
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 40px;
}
  
/* tarjetas uniformes */
.galleries .card-custom {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50px 0 50px 0;    /* puedes mantener tus 50px si quieres */
  background-color: #ffffff;
  aspect-ratio: 1 / 1;       /* unifica proporción (usa 1/1 si prefieres cuadrada) */
  width: 100%;
  max-width: 420px;
  margin: 0;                 /* importante: quitar margin-bottom que empuja */
}

/* imágen dentro de la card para ocupar todo */
.galleries .card-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 /* Branding oliva -sweet*/


#gallery-web .row {
  display: flex;
  justify-content: space-between; /* reparte las imágenes */
  gap: 40px; /* 🔥 más espacio entre ellas */
}

#branding3 .img-secction,
#branding6 .img-secction {
  border-radius: 50px 0 50px 0;
  width: 300px;   /* ajusta a lo pequeño que quieras */
  height: auto;   /* mantiene proporción */
}


.gallery-rect {
  width: 100%;
  height: 350px;         /* 🔹 ajusta el alto que prefieras */
  object-fit: cover;     /* recorta para llenar el espacio */
  object-position: top;  /* siempre muestra la parte superior */
  border-radius: 15px;   /* opcional: bordes redondeados */
}


.hidden-section {
  display: none;
  background: #f9f9f9;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 1000px;
  padding: 60px; /* reducido (antes tenías 60px duplicado) */
  box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}


.hidden-section h2 {
  margin-top: 0;
}
.hidden-section button {
  margin-top: 20px;
  padding: 20px 20px;
  background: #3C313D;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.hidden-section button:hover {
  background: #5a4a5d;
}



.galleries p  {
  text-align: justify;
  max-width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #3C313D;
  font-family: 'Montserrat', sans-serif;
  font-weight: normal;
}

.img-secction {
  width: 100%;
  max-width: 350px; /* límite en pantallas grandes */
  margin: 20px auto;
  border-radius: 50px 0 50px 0;
}


.title-img {
  width: 50% !important;
}

#gallery4 {
  transform: scale(0.70); /* 85% del tamaño normal */
  transform-origin: top center; /* para que no se desplace raro */
}

/*  Ajuste solo para web dev */

  .web-card {
    max-width: 400px;
 
    margin: 0 auto;
    padding: 20px 15px 25px;  /* 🔥 menos espacio arriba */
    border-radius: 30px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* 🔥 asegura que el contenido quede arriba */
    text-align: center;
  }
  
  .web-card img {
    width: 120px;
    margin: 0 0 10px 0;  /* sin margen arriba, solo abajo */
  }
  
  .web-card .card-title {
    margin: 5px 0 15px;
    font-size: 1.2rem;
  }
  
  .highlight-card ul {
    text-align: left; /* alinea los li a la izquierda */
    margin-left: 0;   /* elimina márgenes innecesarios */
    padding-left: 1.2rem; /* da espacio para la viñeta */
  }
  
/* puntos cards */

.custom-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0;                /* elimina espacio extra del <ul> */
}

.custom-list li {
  line-height: 1.3;         /* 🔹 más compacto verticalmente */
  margin-bottom: 4px;       /* 🔹 pequeño espacio entre líneas */
}

.custom-list li::marker {
  color: #C5908A;         /* 🎨 color del punto */
  font-size: 1em;
}


/* ---  galería  DOT--- */

.container-fluid {
  padding:  30px; /* espacio a los lados */
 

}
/* --- Estilo rectangular --- */
.gallery-rect {
  width: 100%;
  aspect-ratio: 15 / 20;  /* formato rectangular */
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  
 
}

.gallery-rect:hover {
  transform: scale(1.05);
}

/* --- Estilo cuadrado --- */
.gallery-square {
  width: 100%;
  aspect-ratio: 1 / 1;  /* cuadradas */
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}




.gallery-square:hover {
  transform: scale(1.05);
}


.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


/* Quitar hover SOLO en la galería de Authenticity */
#gallery-authenti .gallery-rect:hover,
#gallery-authenti .gallery-square:hover,
#gallery-authenti .gallery-img:hover {
  cursor: pointer;
  transform: scale(1.05);

  box-shadow: none !important;
}




/* --- Modal (Lightbox) --- */
.modal-gallery {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-gallery img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.modal-gallery.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Flechas --- */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #c5908a;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-arrow:hover {
color: #fbfbfb;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }




/* --- Cerrar --- */


.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #C5908A;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s ease, color 0.3s ease;
}

/* Al pasar el mouse encima */
.modal-close:hover {
  transform: rotate(90deg) scale(1.1); /* rota como el hamburguesa */
  color: #fbfbfb; /* cambia el color igual que las flechas */
}

/* Si quieres que al hacer clic gire aún más */
.modal-close:active {
  transform: rotate(180deg) scale(1);
}

/* nav btones de galerias */

.nav-buttons .btn-gallery {
  background: none !important;
  border: none !important;
  color: #C5908A!important;
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.6s ease;
  text-decoration:solid;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 220px;
  margin: 40px auto;
  text-align: center;
}


.nav-buttons .btn-gallery:hover {
  color: #3C313D!important;
  transform: translateY(-1px);
}

.nav-buttons .btn-gallery:focus {
  outline: none !important;
}

/* Quitar el borde del enfoque */
.btn-gallery:focus {
  outline: none;
}

.nav-btn:focus {
  outline: none;
}

/* ux */


#gallery-authenti {
  display: flex;
  justify-content: center;   /* centra horizontal */
  align-items: center;       /* centra vertical */
  min-height: 100vh;         /* ocupa la altura total de la pantalla */

  box-sizing: border-box;

}

.logo {

width: 300px;

  padding-left: 50px;
 


}

.logo img {
  width: 380px;   /* tamaño fijo */

}
/* ---------- Layout principal (reemplaza reglas previas conflictivas) ---------- */
.authenti-layout {
  display: grid;
  grid-template-columns: 140px minmax(320px, 520px) minmax(140px, 220px);
  /* 1: logo, 2: cel grande (flexible), 3: columna de cels pequeños */
  grid-template-rows: auto 1fr;
 
  justify-content: center;  /* centra la grilla dentro del contenedor */
  align-items: center;
  justify-items: center;    /* centra cada celda horizontalmente */
  text-align: center;
  width: 100%;
  max-width: 1200px;        /* evita que la grilla se haga gigante en pantallas enormes */
  margin: 0 auto;
  padding-right: 40px;
}

/* Logo: ocupa las dos filas, centrado verticalmente respecto al cel grande */
.authenti-layout .logo {
  grid-column: 1;
  grid-row: 1 / span 2;    /* ocupa las dos filas, así queda a la mitad del cel grande */
  display: flex;
  align-items: center;
  justify-content: center;
}
.authenti-layout .logo img {
  max-height: 120px;  /* logo siempre pequeño */
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: tomato;
}

/* Celular grande: ocupa las dos filas, centrado */
.authenti-layout .phone-big {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.authenti-layout .phone-big img {
  max-height: 520px;   /* alto máximo en desktop */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;     /* sigue siendo clickeable para el modal */
  padding-right: 200px;
}

/* Columna de dos pequeños apilados */
.authenti-layout .phones-small-group {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.authenti-layout .phones-small-group img {
  max-height: 250px;   /* mitad aprox. del grande */
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  padding-right: 300px;
}



/* ux 2 */


/* Quitar hover SOLO en la galería de Authenticity */
#gallery-master .gallery-rect:hover,
#gallery-master .gallery-square:hover,
#gallery-master .gallery-img:hover {
  cursor: pointer;
  transform: scale(1.05);

  box-shadow: none !important;
}



/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background-color: #F4E8E6;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center; /* ✅ centrado vertical */
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 🖥️ dos columnas en desktop */
  gap: 40px;
  max-width: 1000px;
  width: 100%;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  align-items: start;
}

/* Columna izquierda (Formulario) */
.contact-container {
  padding: 40px;
  border-right: 1px solid #eee;
  padding-right: 2rem;
}

.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #3C313D;
  text-align: center;
}

.contact-container p {
  margin-bottom: 30px;
  color: #555;
  text-align: center;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #3C313D;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3C313D;
}



.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #C5908A;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  color: #3C313D;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-submit:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* El spinner (círculo giratorio) */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animación de giro */
@keyframes spin {
  to { transform: rotate(360deg); }
}


.btn-submit:hover {
  background-color: #5a4960;
  color: #C5908A;
}

/* Columna derecha (Información) */
.contact-info-container h3 {
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 40px;
  color: #3C313D;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-info li {
  display: grid;
  grid-template-columns: 40px 1fr; /* ícono + texto */
  align-items: start;
  gap: 10px;
}

.contact-info img {
  width: 40px;
  height: auto;
  display: block;
  margin-top: 2px;
}

.contact-info strong {
  display: block;
  font-weight: 600;
  color: #3C313D;
  margin-bottom: 2px;
}

.contact-info p,
.contact-info a {
  margin: 0;
  font-size: 0.95rem;
  color: #3C313D;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* 🔲 Fondo translúcido del popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(60, 49, 61, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* 🧱 Caja del mensaje */
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background-color: #fff;
  border-radius: 20px;
  text-align: center;
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.4s ease;
  font-family: 'Montserrat', sans-serif;
  color: #3C313D;
}

.popup-content h3 {
  margin-bottom: 10px;
  color: #3C313D;
}

.popup-content button {
  margin-top: 20px;
  background-color: #e6b3ae;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.popup-content button:hover {
  background-color: #d29a94;
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* Responsive: una sola columna en pantallas pequeñas */
@media (max-width: 768px) {

  .hero-desktop {
    display: none;
  }
  .hero-mobile {
    display: block;
  }



  .timeline-item {
    width: 100%;       /* en móvil ocupa todo el ancho */
    padding-left: 20px;
  }
  .timeline-dot {
    left: 0;
    transform: none;
  }
  .timeline::before {
    left: -3px;         /* línea corre al borde izquierdo */
  }
  .container-experience {
    padding: 10px;     /* menos padding en móviles */
 
  }
  .timeline-item .col-md-5 h5 {
    text-align: left !important;
  }

/* ABOUT SECTION */

.education-contact {
  padding:15px;   
}

.container-about {
  padding: 40px 20px;   /* menos padding en móviles */
}

.aboutme-image {
  max-width: 100%;      /* imagen ocupa todo el ancho */
  padding: 20px 0;      /* centrada con menos espacio */
  text-align: center;
}

.profile-image img {
  width: 80px;          /* foto más pequeña en móviles */
}

.col-md-6 p {
  text-align: left;     /* mejor lectura en móvil */
  font-size: 14px;
}
  
.contact-column {
  padding-left: 0; /* en móvil se apilan, no necesita margen */
}

.about-section { padding: 2rem 1rem; }
.contact-list li img.icons { width: 18px; height: 18px; padding: 5px; }
.container-highlights {
  grid-template-columns: 1fr;
    
}

.contact-text {
 padding-left: 0;
     
}
.card-custom img {
  aspect-ratio: 1 / 1;
}


.experience-section {
  padding: 15px;
  text-align: left;

}

.web-card {
  width: 90%;
  max-width: 320px; /* limita el ancho en móviles */
  margin: 0 auto;   /* centra horizontalmente */
  padding: 15px;    /* menos padding para móviles */
}

.educa img {
  width: 120px;       /* más pequeño para pantallas reducidas */
  margin-top: 30px;   /* menos espacio arriba */
  margin-bottom: 20px;
}
/* card highlight*/



.highlight-card img {
  width: 45px;
}

.highlight-card h5 {
  font-size: 0.85rem;
}

.highlight-card li {
  font-size: 0.75rem;
}

.btn-highlights {
  font-size: 0.7rem;
  padding: 4px 8px;
}
/* timeline */

.timeline-item .col-md-5.text-end {
  text-align: left !important;
}


.portfolio-grid {
  grid-template-columns: 1fr; /* fuerza a una columna */
  gap: 1.5rem;
  padding: 0 1rem;
}

.portfolio-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.portfolio-text {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  max-width: 100%;
}

.gallery-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 10px;
}

.galleries .gallery {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;   /* centra las cards */
  margin: 0;
}

.galleries .card-custom {
  width: 90%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  margin: 0;
}

/* asegura que el padding superior del contenedor no provoque color extraño */
.galleries { padding-top: 12px; 
}


.gallery-with-modal .row {
  justify-content: center;
}

.gallery-with-modal .col-6 {
  flex: 0 0 80%;
  max-width: 80%;
}
#branding3 .img-secction,
#branding6 .img-secction {
  width: 100%;
  max-width: 100%;
}

.contact-wrapper {
  grid-template-columns: 1fr;
}

.contact-container {
  border-right: none;
  border-bottom: 1px solid #eee;
}
.portfolio-grid a:nth-child(1),
.portfolio-grid a:nth-child(5),
.portfolio-grid a:nth-child(9) {
  display: none;
}

.title-img img{
  width: 100px;
 
}

.contact-wrapper {
  grid-template-columns: 1fr;   /* ✅ una columna */
  justify-items: center;       /* ✅ centra el contenido */
  padding: 20px;
  gap: 20px;
}

.contact-container {
  padding: 20px;
  border-right: none;             /* ❌ sin línea vertical */
  border-bottom: 1px solid #eee;  /* ✅ línea horizontal divisoria */
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.contact-info-container {
  width: 100%;
  max-width: 500px;
}

.btn-submit {
  width: 80%; /* ✅ Botón ocupa todo el ancho */
  text-align: center;
}
/* Barra secundaria */

.sub-navbar ul {
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 20px;
  scrollbar-width: none; /* oculta scrollbar en Firefox */
}

.sub-navbar ul::-webkit-scrollbar {
  display: none; /* oculta scrollbar en Chrome/Safari */
}

.sub-navbar a {
  white-space: nowrap;
  font-size: 0.9rem;
}

}

/* ============================= */
/*       TABLET (≤992px)         */
/* ============================= */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }

  .portfolio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

 

  .portfolio-title {
    margin: 0 auto 20px;
 
    text-align: center;
    max-width: 70%;
  }

  .portfolio-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
    padding: 0 1rem;
    
  }
  .galleries p,
  .hidden-section p,
  .portfolio-text p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
  }

  
  .portfolio-image {
    max-width: 100%;
    width: 50%;
    height: auto;
    margin: 0 auto;        /* centra horizontalmente */
    padding: 0;            /* elimina empujes laterales */
    display: block;        /* necesario para margin auto */
    transform: none;  
  
  }

  .galleries {
    margin: 0;
    padding: 0;
  }

  .hidden-section {
    padding: 40px;
  }

  .authenti-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 0;
  }

  .authenti-layout .logo {
    order: 1;
    margin-bottom: 10px;
  }

  .authenti-layout .phone-big {
    order: 2;
    margin: 0 auto;
  }

  .authenti-layout .phone-big img {
    max-height: 380px;
    width: auto;
    padding-right: 0;
    
  }

  .authenti-layout .phones-small-group {
    order: 3;
    flex-direction: row; /* una al lado de la otra */
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  .authenti-layout .phones-small-group img {
    max-height: 220px;
    padding-right: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-container {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-info {
    padding-left: 0;
  }

  
  .web-card {
    max-width: 350px;
    padding: 18px 12px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

   height: 500px;
  }

  .highlight-card ul {
    padding-left: 1rem;
    padding-bottom: 20px;
    height: 500px;
  }
 

  .title-img img {
    width: 80px;
    background-color: transparent;
  }

  footer {
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
  }



  
}

/* ============================= */
/*        MOBILE (≤576px)        */
/* ============================= */
@media (max-width: 576px) {
  .portfolio-section {
    padding: 2rem 1rem;
  }

  .portfolio-title {
  
    text-align: center;
  }

  .portfolio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0;
    text-align: justify;
  }

  .portfolio-image {
    width: 70%;
    height: auto;
    margin-top: 20px;
  }

  .authenti-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin: 0 auto;
    padding: 0;
  }

  .authenti-layout .phone-big {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .authenti-layout .phone-big img {
    height: 280px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .authenti-layout .phones-small-group {
    display: flex;
    flex-direction: column; /* una debajo de otra */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .authenti-layout .phones-small-group img {
    height: 180px;
    width: auto;
    display: block;
  }

  .gallery-with-modal .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .web-card {
    width: 250px;
    height: 500px;
    padding: 18px 12px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

  }

  .highlight-card ul {
    padding-left: 1rem;
    padding-bottom: 20px;
  }
 

  .contact-wrapper {
    padding: 0 1rem;
  }

  .contact-container form .form-row {
    display: flex;
    flex-direction: column;
  }

  .contact-container form .form-group {
    width: 100%;
    margin-bottom: 10px;
  }

  .contact-info {
    text-align: left;
    padding-left: 0;
  }

  .contact-info li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }

  .contact-info li img.icons {
    margin-right: 8px;
    width: 18px;
    height: 18px;
  }

  .work img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .title-img img {
    width: 70px;
    background-color: transparent;
  }

  .button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .button-group button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }


  #ux1 p,
  #ux2 p {
    text-align: justify;
    text-justify: inter-word; /* mejora la distribución de espacios */
  }
  

  footer {
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    font-size: 0.9rem;
  }
}
