/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Colores del sitio web */
:root { 
  --background-color: #f1f3f5; /* Color de fondo para todo el sitio web, incluidas las secciones individuales */
  --default-color: #1f2937; /* Color predeterminado para la mayor parte del contenido de texto en todo el sitio web */
  --heading-color: #0f172a; /* Color para los encabezados, subtítulos y títulos en todo el sitio web */
  --accent-color: #00b894; /* Color de contraste que representa a tu marca en el sitio web. Se utiliza para botones, enlaces y otros elementos que deben destacar */
  --surface-color: #ffffff; /* El color de superficie se utiliza como fondo de los elementos enmarcados dentro de las secciones, como tarjetas, cuadros de iconos u otros elementos que requieren una separación visual del fondo general */
  --contrast-color: #ffffff; /* Color de contraste para el texto, que garantiza la legibilidad sobre fondos de colores de acento, de encabezado o predeterminados */
}

/* Colores del menú de navegación: las siguientes variables de color se utilizan específicamente para el menú de navegación. Son independientes de los colores globales para ofrecer más opciones de personalización. */
:root {
  --nav-color: #d1d5db;  /* El color predeterminado del enlace del menú de navegación principal */
  --nav-hover-color: #17a8bb; /* Se aplica a los enlaces del menú de navegación principal cuando se pasa el cursor por encima o están activos */
  --nav-mobile-background-color: #040b14; /* Se utiliza como color de fondo para el menú de navegación en dispositivos móviles */
  --nav-dropdown-background-color: #040b14; /* Se utiliza como color de fondo para los elementos del menú desplegable que aparecen al pasar el cursor por encima de los elementos de la navegación principal*/
  --nav-dropdown-color: #a8a9b4; /* Se utiliza para los enlaces de navegación de los elementos del menú desplegable */
  --nav-dropdown-hover-color: #ffffff; /* Al igual que --nav-hover-color, este color se aplica a los enlaces de la navegación desplegable cuando se pasa el cursor por encima de ellos */
}

/* se aplican a cualquier sección o elemento */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #26303b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Estilo general y clases compartidas
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Mensajes de formularios de correo electrónico en PHP
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Encabezado
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: #040b14; /*Color de fondo de la barra derecha del menu*/
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.header .profile-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;

  clip-path: polygon(
    25% 5%, 75% 5%,
    100% 50%,
    75% 95%, 25% 95%,
    0% 50%
  );

  border: 3px solid #00b894;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff; /* fondo claro */
  color: #000000; /* icono negro */
  margin: 0 5px;
  border-radius: 10px; /* más moderno que círculo */
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  background: #00b894; /* tu color personalizado */
  color: #ffffff;
  transform: translateY(-3px);
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Menu de navegación
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# boton flecha ir al inicio
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Desactivar animacion para dispositivos moviles
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Titulos de página y rutas de navegación
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# secciones
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# titulos Secciones
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Sección hero
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# Quienes Somos
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

/*--------------------------------------------------------------
# Compromiso
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  
}

.img-compromiso {
  max-width: 70%;   /* ajusta: 50%, 60%, etc */
  height: auto;
  display: block;
  margin: 0 auto;   /* centrar */
}


/*--------------------------------------------------------------
# GALERIA
--------------------------------------------------------------*/

/* VIDEO DENTRO DEL SLIDER */
.stack-item video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🔥 igual que las imágenes */
  background: #000;
  display: block;
}


/*--------------------------------------------------------------
# Servicios
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Contactenos
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* ===== STACK SLIDER (EFECTO APILADO) ===== */

.stack-slider {
  position: relative;
  width: 100%;
  max-width: 900px; /* MÁS GRANDE en PC */
  height: 600px; /* más alto */
  margin: auto;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stack-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 1;
  background: #000; /* evita transparencias raras */
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* no recorta */
  background: #000;
}

/* Imagen activa */
.stack-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 3;
}

/* Imagen anterior */
.stack-item.prev {
  opacity: 0.5;
  transform: scale(0.95) translateY(10px);
  z-index: 2;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .stack-slider {
    max-width: 100%;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .stack-slider {
    height: 280px;
  }
}


/*--------------------------------------------------------------
# Sección de detalles del servicio
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Sección de inicio
--------------------------------------------------------------*/

/*telefonos*/
.info-item a {
  color: #000;          /* negro */
  text-decoration: none; /* quita subrayado */
}

.contact-image {
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: 8px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fijo{
  display: block;
  margin: 30px auto 0 auto;
  max-width: 200px;
  position: sticky;
  top: 20px;
}

/*SERVICIOS MODERNO GLOBAL*/

.service-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Icono estilo tecnológico */
.service-item .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-right: 20px;
  transition: 0.4s;
}

.service-item .icon i {
  color: #ffffff;
  font-size: 24px;
}

.service-item:hover .icon {
  background: linear-gradient(135deg, #0a58ca, #084298);
  transform: rotate(5deg);
}

/* Títulos más corporativos */
.service-item .title {
  font-weight: 600;
  font-size: 18px;
}

.service-item .title a {
  color: #1f2937;
  text-decoration: none;
  transition: 0.3s;
}

.service-item:hover .title a {
  color: #0d6efd;
}

/* Descripción */
.service-item .description {
  font-size: 14px;
  color: #6c757d;
}

/* Botón flotante WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Efecto hover */
.whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* Cuando la flecha aparece → mover WhatsApp arriba */
.whatsapp-move {
  bottom: 70px; /* se sube encima de la flecha */
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.project-card img {
  transition: 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* ================= PROJECTS SOLUCIONES ================= */

.projects .projects-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.projects .projects-filters li {
  cursor: pointer;
  display: inline-block;
  margin: 0 10px;
  text-transform: uppercase;
}

.projects .projects-filters li.filter-active,
.projects .projects-filters li:hover {
  color: var(--accent-color);
}

.projects .projects-content {
  position: relative;
  overflow: hidden;
}

.projects .projects-content img {
  transition: 0.3s;
}

.projects .projects-content:hover img {
  transform: scale(1.1);
}

.projects .projects-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  padding: 15px;
  transition: 0.3s;
}

.projects .projects-content:hover .projects-info {
  opacity: 1;
}

.projects .projects-info h4 {
  color: #fff;
  background: var(--accent-color);
  display: inline-block;
  padding: 5px 10px;
}

/* DETAILS */

.projects-details .projects-info {
  padding: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.projects-details .projects-description {
  padding-top: 30px;
}

.projects-content {
  border-radius: 12px;
}

.projects-content img {
  border-radius: 12px;
}


/* ================= PROYECTOS / SOLUCIONES ================= */

/* LINK QUE ENVUELVE TODO */
.projects-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* TARJETA */
.projects-card {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

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

/* ZOOM */
.projects-card:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.projects-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;

  /* 🔥 FONDO OSCURO GRADIENTE (MEJOR VISIBILIDAD) */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);

  color: #fff;
  text-align: left;

  opacity: 0;
  transition: 0.4s ease;
}

/* MOSTRAR */
.projects-card:hover .projects-overlay {
  opacity: 1;
}

/* TEXTO */
.projects-overlay h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff; /*  siempre blanco */
}

.projects-overlay p {
  margin-top: 5px;
  font-size: 14px;
  color: #e0e0e0; /* gris claro */
}

/*No se pierda el texto en las imagenes oscuras*/
.projects-overlay h4,
.projects-overlay p {
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* CONTENEDOR INFO PROYECTO */
.projects-info {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* LISTA */
.projects-info ul {
  padding-left: 0;
  list-style: none;
}

/* ITEMS */
.projects-info li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* LINK LARGO (LA CLAVE DEL PROBLEMA) */
.projects-info a {
  word-break: break-all;
  color: #00b894;
  text-decoration: none;
}

/* HOVER BONITO */
.projects-info a:hover {
  text-decoration: underline;
}

.img-side {
  width: 40%;
  max-width: 400px;
  border-radius: 10px;
  margin-right: 20px;
}

.text-content {
  flex: 1;
}

/* TEXTO MÁS PRO */
.projects-description p {
  text-align: justify;
  line-height: 1.6;
}

/* ===== FIX FOOTER ABAJO ===== */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.footer {
  margin-top: 40px;
}