  
  /* Fondos personalizados para secciones */

  .fondo-paisaje {
    width: 100%;
    min-height: 100;
     background: url('img/Hero/forest.jpg') center -100px/cover no-repeat !important; /*  La propiedad CENTER, controla que parte de la imagen deseamos mostrar  */
    background-attachment: fixed;
  }
  
   /* CSS para fondo gris */
  .seccion_gris {
    background: #3f3f3f;
  }
  
  .seccion_oscura{
    background-color: #23272b;
  }

  .h2, .section-titulo {
    color: #ffffff;
    font-size: 2rem;
    text-align: center;
  }

  .seccion-descripcion{
    font-size: 1.2rem;
    color: #fff;
}


.seccion-descripcion_2 {
    font-family: var(--bs-font-sans-serif);
    /* font-family: lucida Console, sans-serif; */
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

/* Estilos generales*/


/* 🔹 Margen para que el contenido no se oculte */
body {
  margin-top: 70px; /* Ajusta según la altura de tu navbar */
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h3, .servicio {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 1rem;
}


/* ________________________ NAVBAR ______________________  */

  /* sombreado nabvar */
  /* revisado  */
  .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/Hero/forest.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 2rem;
  color: #ffffff;
  /* position: relative; */
  /* 🔹 Cambios para fijar navbar */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo img {
  height: 3.75rem; /* Ajusta la altura de la imagen del logo */
}

.menu {
  display: flex;
  gap: 45px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu a:hover {
  transform: scale(1.1);
  color: #00ff90;
}

.contact-btn a {
  background-color: #00ff90;
  font-weight: bold;  
  color: #1D3557; 
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 5px #00ff90;
  transition: all 0.3s ease;
}

.contact-btn a:hover {
  background-color: #1D3557;
  color: #00ff90;
  box-shadow: 0 0 1rem #00ff90;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #ffffff;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #23272d;
  background-size: cover;
  background-position: center;
  padding: 20px;

}

.mobile-menu a {
  color: #ffffff;
  font-weight: bold;
  /* font: weight: bold; */
  text-decoration: none;
  padding: 5px;
  font-size: 1 rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
  color: #00ff90;
  transform: scale(1.1);
}

.mobile-contact-btn {
  margin-top: 10px;
  background-color: #00ff90;
  color: #1D3557;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 0 8px #00ff90;
  transition: all 0.3s ease;
}

.mobile-contact-btn:hover {
  background-color: #1D3557;
  color: #00ff90;
  box-shadow: 0 0 10px #00ff90;
}


 /* ________________________ HERO ______________________  */


/* === HERO BASE === */
.hero {
  position: relative;
  overflow: visible;
  background-color: #f5f6f7;
  min-height: 100px; /* antes era 450 */
  text-align: center;
}

.hero-principal {
  z-index: 2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-developer-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 30px;
}

.hero-principal h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-principal h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  margin-top: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Animacio al texto de entrada */
.typewriter {
    overflow: hidden;   
    white-space: nowrap;
    width: 0;
    animation: typing 2s steps(20) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    to {
        width: 18ch;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

 /* ________________________ SOBRE MI ______________________  */

.sobre-mi {
  padding: 10px 10px 10px;
  color: white;
}

.sobre-mi .contenedor {
  display: flex;
  flex-wrap: wrap; /* Permite que las columnas se apilen en móviles */
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px; /* Ahora puede crecer y mostrar dos columnas */
  margin: 0 auto; /* Centra horizontalmente */
  text-align: left; /* Alineación natural del contenido */
}

/* Estilos de columnas */
.info-personal,
.info-tecnologias {
  flex: 1 1 300px; /* Crece, encoge, mínimo 300px */
  max-width: 500px;
}

/* Texto */
.text-section,
.info-tecnologias p {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.5;
}


/* Enlaces destacados sobre mí */
.sobre-mi-links a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s, text-shadow 0.2s;
}
.sobre-mi-links a:hover {
  color: #00FF90;
  text-shadow: 0 2px 8px #00ff9044;
  text-decoration: none;
}


/* Scroll para listas dentro del modal */
.modal-body {
  max-height: 300px; /* Ajusta según lo que quieras mostrar */
  overflow-y: auto;
  padding-right: 10px;
}

/* Scroll moderno */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff90, #00995c);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00cc73, #007a4a);
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================= */
/* Formulario Solicitar Hoja de Vida (Modal) */
/* ============================= */
.cv-modal-content {
  background: #1D3557;
  color: #fff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 32px #00000033;
}
.cv-modal-header {
  background: #1D3557;
  border-bottom: none;
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding-bottom: 0.5rem;
}

.cv-form-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cv-modal-body {
  background: #1D3557;
  color: #fff;
  border-radius: 0 0 16px 16px;
  padding: 2rem 2rem 1.5rem 2rem;
}
.cv-form .cv-label {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.cv-required {
  color: #ffb3b3;
  font-size: 1.1em;
}
.cv-input {
  background: #fff;
  color: #1D3557;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 1px 4px #0001;
  transition: box-shadow 0.2s, border 0.2s;
}
.cv-input:focus {
  outline: none;
  border: 2px solid #00ff90;
  box-shadow: 0 2px 8px #00ff9044;
}
.cv-btn-enviar {
  background: #fff6ee;
  color: #1D3557;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 2.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cv-btn-enviar:hover {
  background: #00ff90;
  color: #1D3557;
  box-shadow: 0 4px 16px #00ff9044;
}
.btn-close-white {
  filter: invert(1);
}


/* Badges tecnologías en matriz 3x3 con logo y texto */

.bg-primary {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.badges-matrix-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}
.badges-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.badge-tech img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  /* filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10)); */
}

.badge {
  padding: 8px 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  z-index: 2;
}

.badge:hover {
  color: #00ff90; /* Verde llamativo al hacer hover */
  transform: scale(1.1);
}

.badge-label {
  font-size: 1rem;
}

 /* ________________________ PROYECTOS ______________________  */


/* Proyectos */

.proyectos-recientes {
    padding: 40px;

}

.proyectos-recientes img{
    height: 100%;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    display: block;
    transition: all 0.2s ease;
}

.proyectos-contenedor {
    margin-top: -2rem;  
    margin-bottom: -1rem;  

    padding-top: 60px;
    /* margin-bottom: 40px; */
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card {
    flex: 0 0 calc(100% / 3);
    padding: 1rem;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
}

.card-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.card-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem #00FF90;

}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container p {
    text-align: center;
    margin-top: 0.5rem; 
    margin-bottom: 0.2rem; 
}

.card-content:hover .project-image {
    transform: scale(1.05);
}

.card-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(45deg, #00ff90 0%, #1D3557 40%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    /* margin-top: 2rem; */
    margin-bottom: -5rem;
}

/* OVERLAY  */


.overlay {
    transition: all 0.2s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay p {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 0;
}

.image-container {
    position: relative;
}

.image-container:hover img{
    opacity: 0.2;
}


.image-container:hover  .overlay {
    opacity: 1;
}

.overlay .iconos-contenedor {
    display: flex;
}

.overlay i {
    color: black;
    font-size: 60px;
    margin: 10px;
}



 /* ________________________ SERVICIOS ______________________  */


/* 📌 Contenedor externo de la sección de servicios */
.seccion-servicios {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 3rem 0;
  /* background: inherit; */
}

/* 🧩 Grid de tarjetas */
.servicios-container {
  padding-top: 60px;
  /* margin-bottom: 40px; */
  display: grid;
  grid-template-columns: 1fr; /* Fallback base */
  gap: 2rem;
}

/* 📦 Tarjeta individual */
.servicio {

background: #fff;
border-radius: 15px;
padding: 1rem 0.7rem;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s ease;
width: 260px;
min-height: 140px;
max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
}
.servicio:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 32px #00ff90, 0 8px 20px rgba(0,0,0,0.13);
}


p.servicios_descripcion {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
}

 /* ________________________ BENEFICIOS ______________________  */


/* Beneficios: ¿Qué obtienes al trabajar conmigo? */
.beneficios-section {
  padding: 3rem 0 2rem 0;
  width: 100%;
}
.beneficios-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.beneficio-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.beneficio-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.13);
}
.beneficio-icono {
  transition: transform 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beneficio-card:hover .beneficio-icono {
  transform: scale(1.18) rotate(-8deg);
  filter: brightness(1.2);
}
.beneficio-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}
.beneficio-desc {
  font-size: 1rem;
  color: #444;
}


/* Testimonios */

/* ===== ESTILOS PARA SECCIÓN TESTIMONIOS-CONTACTO ===== */

.oculto{
  display: none !important;
}
.oculto + .col-12.col-md-6 {
  flex: 0 0 100%;
  max-width: 50%;
  margin-left: 20rem;
}

/* Contenedor principal */
.testimonios-contacto {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
  min-height: 400px;
}

/* ===== TESTIMONIOS COMPACTOS ===== */
/* Ajustar elementos internos para el cuadrado */
.testimonio-imagen-compacta {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 15px;
}

.testimonio-texto-compacto {
  font-size: 1rem;
  line-height: 1.3;
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  padding: 0 15px;
  /* Limitar altura del texto */
  max-height: 65px;
  overflow: hidden;
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
}

/* Card cuadrada perfecta */
.testimonio-card {
  width: 320px;
  height: 300px;
  border-radius: 8px;
  background: #3f3f3f99;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  
  /* Centrar contenido dentro del cuadrado */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.testimonio-info-compacta .cliente {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.testimonio-info-compacta .cargo {
  font-size: 1rem;
  color: #666;
}

/* ===== SECCIÓN CONTACTO ===== */
.contacto-content {
  align-items: center;
  padding: 2rem 1rem;
  background-color: #3f3f3f99;
  border-radius: 50px;
}

.com {
  font-size: 1.1rem;
  color: #000000;
  text-shadow: #00FF90 0px 0px 10px;
  text-align: center;
  justify-content: center;
}

.btn-hablemos-contacto {
  background: #00ff90;
  color: #1D3557;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 0.7em 2.2em;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px #00ff9033;
  display: inline-flex;
  /* align-items: center; */
  justify-content: center;
}
.btn-hablemos-contacto:hover {
  background: #1D3557;
  color: #00ff90;
  transform: scale(1.07);
  box-shadow: 0 0 1rem #00ff90;
}

.btn-hablemos-contacto i {
  color: #1D3557;
  font-size: 1.3rem;
  transition: color 0.2s;
}
.btn-hablemos-contacto:hover i {
  color: #00ff90;
}

.hablemos-btn {
  margin-top: 1.5rem;
}


/* Pie de pàgina footer */

footer {
    min-height: 500px;
}

.footer-logo {
    height: 80px;
    width: 80px;
    margin: 10px;
}

.iconos-redes-sociales a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin: 10px;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.2s ease-in; 
} 

.iconos-redes-sociales i {
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s ease-in;
}

.iconos-redes-sociales a:hover {
    background-color: white;
    border: 2px solid #00FF90;
}

.iconos-redes-sociales a:hover i {
    color: black;
}

/* Drechos de autor */

.Derechos-de-autor{
    font-size: 15px;
    color: #aeaeae;
    padding: 20px;

}

/* ============================= */
/* Footer minimal */
/* ============================= */
.footer-minimal {
  min-height: 180px;
  padding: 1.5rem 0 0.5rem 0;
}
.footer-minimal .footer-logo {
  height: 50px;
  width: 50px;
  margin: 8px;
}
.footer-minimal .iconos-redes-sociales a {
  width: 38px;
  height: 38px;
  margin: 6px;
  font-size: 1.1rem;
}
.footer-minimal .iconos-redes-sociales i {
  font-size: 1.2rem;
}
.footer-minimal .Derechos-de-autor {
  font-size: 1rem;
  color: #aeaeae;
  padding: 10px 0 0 0;
}
