/*
Theme Name: Portafolio Nacho
Theme URI: https://example.com/
Author: Ignacio Salinas
Author URI: https://example.com/
Description: Tema personalizado para el portafolio de Ignacio Salinas.
Version: 1.0
*/





/* ==================================== INICIO DE PÁGINA DE INICIO (front-page.php) ==================================== */

/* === FONTS === */
@font-face {
  font-family: 'AvantGarde Bold';
  src: url('assets/fonts/avant-garde/ITCAvantGardeStd-Bold.woff2') format('woff2'),
       url('assets/fonts/avant-garde/ITCAvantGardeStd-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'AvantGarde Bold Oblique';
  src: url('assets/fonts/avant-garde/ITCAvantGardeStd-BoldObl.woff2') format('woff2'),
       url('assets/fonts/avant-garde/ITCAvantGardeStd-BoldObl.woff') format('woff');
  font-weight: bold;
  font-style: oblique;
}

@font-face {
  font-family: 'AvantGarde Demi';
  src: url('assets/fonts/avant-garde/ITCAvantGardeStd-Demi.woff2') format('woff2'),
       url('assets/fonts/avant-garde/ITCAvantGardeStd-Demi.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'AvantGarde Demi Oblique';
  src: url('assets/fonts/avant-garde/ITCAvantGardeStd-DemiObl.woff2') format('woff2'),
       url('assets/fonts/avant-garde/ITCAvantGardeStd-DemiObl.woff') format('woff');
  font-weight: 600;
  font-style: oblique;
}

@font-face {
  font-family: 'AvantGarde Medium';
  src: url('assets/fonts/avant-garde/ITCAvantGardeStd-Md.woff2') format('woff2'),
       url('assets/fonts/avant-garde/ITCAvantGardeStd-Md.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}



/* === CLASES DE TIPOGRAFÍA === */
.f-bold {
  font-family: 'AvantGarde Bold', sans-serif;
}

.f-bold-oblique {
  font-family: 'AvantGarde Bold Oblique', sans-serif;
}

.f-demi {
  font-family: 'AvantGarde Demi', sans-serif;
}

.f-demi-oblique {
  font-family: 'AvantGarde Demi Oblique', sans-serif;
}

.f-medium {
  font-family: 'AvantGarde Medium', sans-serif;
}



/* === TAMAÑOS DE TEXTO PERSONALIZADOS === */
.size-50 {
  font-size: 50px;
}

.size-40 {
  font-size: 40px;
}

.size-30 {
  font-size: 30px;
}

.size-20 {
  font-size: 20px;
}

.size-10 {
  font-size: 10px;
}



/* === MÁRGENES PERSONALIZADOS === */
.mb-100 {
  margin-bottom: 100px;
}

.mb-90 {
  margin-bottom: 90px;
}

.mb-80 {
  margin-bottom: 80px;
}

.mb-70 {
  margin-bottom: 70px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}



/* === GLOBAL === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'AvantGarde Demi', sans-serif;
    background-color: #000;
    color: white;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}





/* === HEADER === */
.site-header {
    background-color: #000;
    color: white;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-list a:hover {
    text-decoration: underline;
}

/* === NAVBAR === */
.navbar.bg-dark {
  background-color: #030304 !important;
}

/* === COLOR BLANCO PARA TEXTO DEL NAVBAR === */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  color: #FFFFFF !important;
}

.navbar-brand img {
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center;
}

.navbar-brand img:hover {
  transform: scale(1.15) rotate(-2deg);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}



/* === NAVBAR DROPDOWN ANIMADO Y PERSONALIZADO === */
.dropdown-menu {
  border-radius: 10px;
  padding: 0.5rem 0;
  background-color: #2a2a2a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: none;
  min-width: 180px;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Ítems individuales dentro del dropdown */
.dropdown-item {
  padding: 0.5rem 1.2rem;
  color: white !important;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  background-color: transparent;
}

.dropdown-item:hover {
  color: #F00109 !important;
  transform: translateX(5px);
  background-color: transparent !important;
}

/* === NAVBAR LINK HOVER GENERAL === */
.navbar-nav .nav-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #F00109 !important;
}

/* === CORRECCIÓN PARA MOBILE (solo color rojo sin escala) === */
@media (max-width: 991px) {
  .navbar-nav .nav-link:hover {
    color: #F00109 !important;
    transform: none;
  }
}

@media (min-width: 992px) {
  .navbar {
    max-width: 1300px; /* puedes probar 1080px, 1024px o incluso menos si quieres más compacto */
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* === HOVER SOLO EN DESKTOP PARA MOSTRAR DROPDOWN === */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  /* Flecha hacia abajo por defecto */
  .nav-item.dropdown .dropdown-toggle::after {
    transform: rotate(0deg); /* ▼ por defecto */
    transition: transform 0.3s ease;
  }

  /* Flecha hacia arriba en hover */
  .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg); /* ▲ en hover */
  }
}

/* === FLECHA TAMBIÉN EN MOBILE (animada al abrir y cerrar) === */
a.dropdown-toggle::after {
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* ▼ por defecto */
}

a.dropdown-toggle.show::after {
  transform: rotate(180deg); /* ▲ cuando está abierto */
}





/* === SECCIÓN: HERO (BLOQUE PRINCIPAL) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}



/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content h2 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .hero-content a img {
    max-width: 240px;
  }
}



/* === RESPONSIVE HERO - MOBILE === */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
  }

  .hero-content {
    padding: 40px 20px;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.83rem;
    margin-bottom: 100px;
  }

  .btn-capsule {
    padding: 6px 20px;
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .btn-inner {
    font-size: 13px;
  }

  .btn-linkedin-inner {
    padding: 4px 25px;
  }

  .btn-linkedin-inner .line-1 {
    font-size: 13px;
  }

  .btn-linkedin-inner .line-2 {
    font-size: 11px;
  }
}



/* === AJUSTES FINALES PARA MOBILE - desde 414px hacia abajo === */
@media (max-width: 414px) {
  .hero-content {
    padding: 15px 10px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.83rem;
    margin-bottom: 100px;
  }

  .btn-inner {
    font-size: 12px;
  }

  .btn-linkedin-inner {
    padding: 4px 20px;
  }

  .btn-linkedin-inner .line-1 {
    font-size: 12px;
  }

  .btn-linkedin-inner .line-2 {
    font-size: 10px;
  }
}



/* === AJUSTE CRÍTICO PARA 375px y menos === */
@media (max-width: 375px) {
  .btn-capsule {
    max-width: 190px;
    padding: 4px 15px;
  }

  .btn-inner {
    font-size: 11px;
  }

  .btn-linkedin-inner {
    padding: 3px 18px;
  }

  .btn-linkedin-inner .line-1 {
    font-size: 11px;
  }

  .btn-linkedin-inner .line-2 {
    font-size: 9px;
  }
}



/* === AJUSTE CRÍTICO PARA 320px === */
@media (max-width: 320px) {
  .btn-capsule {
    max-width: 170px;
    padding: 3px 12px;
  }

  .btn-inner {
    font-size: 10px;
  }

  .btn-linkedin-inner {
    padding: 3px 15px;
  }

  .btn-linkedin-inner .line-1 {
    font-size: 10px;
  }

  .btn-linkedin-inner .line-2 {
    font-size: 8px;
  }
}



/* Ocultar el salto de línea personalizado por defecto */
.mobile-br {
  display: none;
}

/* Mostrar el salto de línea solo en dispositivos móviles */
@media (max-width: 768px) {
  .mobile-br {
    display: inline;
  }
}



/* === BOTÓN GLOBAL === */
.btn-capsule {
  display: inline-block;
  padding: 13px 40px;
  border: 1.5px solid #000;
  border-radius: 999px;
  background-color: #d6e4f0;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(1); /* <- importante para la animación suave */
}

.btn-capsule:hover {
  transform: scale(1.05);
}

.btn-inner {
  display: inline-block;
  background-color: #f36f21; /* color del rectángulo interior */
  padding: 10px 60px;
  border-radius: 0px;
  color: #fff;
  text-align: center;
}



/* === BOTÓN CONTÁCTAME HERO === */
.btn-linkedin-inner {
  background-color: #0168C1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3px 60px;
  border-radius: 0;
  color: #fff;
  text-align: center;
}

.btn-linkedin-inner .line-1 {
  font-size: 17px;
  font-family: 'AvantGarde Medium', sans-serif;
}

.btn-linkedin-inner .line-2 {
  font-size: 13px;
  font-family: 'AvantGarde Medium', sans-serif;
  margin-top: 2px;
}





/* === SECCIÓN: SOBRE MÍ === */
.sobre-mi-section {
  background-color: white;
  color: #000;
  padding: 4rem 2rem;
}

.container-sobre-mi {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1rem;
}

.img-sobre-mi img {
  width: 350px;
  max-width: 100%;
}

@media (max-width: 767px) {
  .img-sobre-mi img {
    width: 90vw; /* O prueba con 85vw si 90 es mucho */
    max-width: 100%;
  }
}

/* Responsive layout */
@media (min-width: 768px) {
  .container-sobre-mi {
    flex-direction: row;
  }

  .img-sobre-mi {
    flex: 1;
    text-align: center;
  }

  .texto-sobre-mi {
    flex: 1;
  }
}

/* Desktop: cambia a fila */
@media (min-width: 768px) {
  .container-sobre-mi {
    flex-direction: row;
    align-items: center; /* o center si quieres alinear verticalmente */
  }

  .img-sobre-mi, .texto-sobre-mi {
    flex: 1;
  }

  .texto-sobre-mi {
    max-width: 600px;
    text-align: left;
  }
}





/* === SECCIÓN: SOBRE MÍ - HABILIDADES TÉCNICAS === */
.skills-section {
  background-color: #030304;
  padding: 5rem 2rem;
  text-align: center;
}

.skills-section h2 {
  color: white;
  margin-bottom: 5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-box {
    margin-bottom: 2rem;
  }
}

.skill-box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-box img {
  max-height: 80px;
  width: auto;
  filter: brightness(0.6);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-box:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.instrucciones-habilidades {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}




/* === SECCIÓN: MIS PROYECTOS DESTACADOS === */
.proyectos-section {
  background-color: white;
  color: #000;
  padding: 4rem 2rem;
}

.container-proyecto {
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1rem;
}

.container-proyecto h2 {
  text-align: center;
}

.img-proyecto img {
  width: 350px;
  max-width: 100%;
}

.instrucciones-proyecto {
  font-size: 14px;
  color: #030304;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  margin-bottom: 3rem; /* Ajustado para dar más espacio antes de las tarjetas */
}

@media (max-width: 767px) {
  .img-proyecto img {
    width: 90vw;
  }
}



/* === Grid de tarjetas en Proyectos Destacados === */
.proyectos-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* background-color: yellow; Para visualizar si el fondo y los paddings están correctos */
}

@media (min-width: 768px) {
  .proyectos-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
}



/* === CARD FLIP - Proyecto Destacado === */
.flip-card {
  background-color: transparent;
  width: 350px;
  /* height: 500px; ⛔ Eliminar esta línea */
  perspective: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 10; /* mantiene proporción visual */
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .flip-card {
    margin-bottom: 7.5rem;
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(-180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


.flip-card-back {
  transform: rotateY(-180deg);
}

.flip-btn {
  margin-top: 3rem; /* Separación cómoda desde la tarjeta */
  padding: 0.75rem 1rem;
  background-color: #0168C1;
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'AvantGarde Medium', sans-serif;
  border-radius: 50px;
}

.proyecto-btn {
  margin-top: 1.25rem; /* Separación clara y visualmente respirable */
  padding: 0.75rem 1rem;
  background-color: #F67410;
  color: white;
  text-decoration: none;
  font-family: 'AvantGarde Medium', sans-serif;
  text-align: center;
  border-radius: 50px;
}

.flip-btn:hover {
  background-color: #014b8a;
}

.proyecto-btn:hover {
  background-color: #c95e0d;
}



/* === BOTONES SECCIÓN: MIS PROYECTOS DESTACADOS === */
.btns-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.flip-btn,
.proyecto-btn {
  width: 180px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.flip-card-front img {
  cursor: pointer;
}

@media (max-width: 767px) {
  .proyectos-grid .flip-card:last-child {
    margin-bottom: 0;
  }
}





/* === SECCIÓN: CONTACTO === */
.contact-section {
  background-color: #030304;
  color: white;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.contact-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-images img {
  width: 100px;
  height: auto;
}

.contact-content {
  max-width: 600px;
}

.contact-content h2 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.contact-content p {
  margin-bottom: 20px;
}

.linkedin-btn {
  display: inline-block;
  background-color: #0168C1;
  color: white;
  padding: 14px 28px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  font-size: 16px;
  box-shadow:
    inset 0 -4px 0 #004c91,    /* Sombra interior 3D abajo */
    0 0 0 0 transparent;        /* Se activa en hover */
  transition: 
    box-shadow 0.3s ease,
    transform 0.1s ease;
}

/* Hover - Brillo exterior */
.linkedin-btn:hover {
  box-shadow:
    inset 0 -4px 0 #004c91,
    0 0 60px 20px rgba(1, 104, 193, 0.8); /* Brillo exterior potenciado */
}

/* Active - Botón presionado */
.linkedin-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -1px 0 #004c91,
    0 0 4px 2px rgba(1, 104, 193, 0.2); /* Menor brillo */
}

.quote {
  font-weight: 400;
  margin-top: 20px;
}



@media screen and (min-width: 1024px) {
  .linkedin-btn {
    padding: 24px 60px;
    font-size: 22px;
  }
}

@media screen and (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .contact-images {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-images img {
    width: 70px;
    margin: 5px;
  }

  .linkedin-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .contact-text {
    max-width: 320px;
    margin: 0 auto 20px auto;
    text-align: center;
  }


  .contact-content h2 {
    font-size: 22px;
  }

}

.contact-images img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-images img:hover {
  transform: scale(1.1);
}





/* ==================================== INICIO DE PÁGINAS PROYECTOS INDIVIDUALES () ==================================== */



/* === SECCIÓN: INTRO PROYECTO INDIVIDUAL === */
.proyecto-intro {
  background-color: white;
  color: #000;
  padding: 5rem 2rem;
}

/* Contenedor principal con título, subtítulo e imágenes */
.proyecto-intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1rem;
}

.proyecto-intro-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.proyecto-intro-texto {
  font-size: 14px;
  color: #030304;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.4;
}

/* Galería de mockups */
.proyecto-mockups {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  flex-wrap: wrap;
}

.proyecto-mockups img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease; /* animación */
}

.proyecto-mockups img:hover {
  transform: scale(1.05);
}

/* === Bloque de texto separado === */
.proyecto-texto-separado {
  width: 100%;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1rem;
}

.proyecto-texto-bloque {
  margin-bottom: 3rem;
  text-align: left;
}

.proyecto-texto-bloque h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #000;
}

.proyecto-texto-bloque p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #030304;
  width: 100%;          /* Nuevo: ocupa todo el ancho disponible */
  max-width: none;      /* Nuevo: sin restricción de ancho */
  margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .proyecto-mockups {
    flex-direction: column;
    align-items: center;
  }

  .proyecto-texto-bloque {
    text-align: center;
  }

  .proyecto-texto-bloque p {
    max-width: 100%;
  }
}

/* Desktop: tamaño más grande para las imágenes */
@media (min-width: 1024px) {
  .proyecto-mockups img {
    max-width: 400px;
  }
}

@media (max-width: 767px) {
  .proyecto-mockups {
    flex-direction: column;
    align-items: center;
  }

  .proyecto-texto-bloque {
    text-align: center;
  }

  .proyecto-texto-bloque p {
    max-width: 100%;
    text-align: justify; /* ← esto justifica los párrafos solo en mobile */
  }
}



/* === SECCIÓN: TECNOLOGÍAS USADAS EN PROYECTOS === */
.tecnologias-proyecto {
  background-color: #030304;
  padding: 5rem 2rem;
  text-align: center;
}

.tecnologias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.tec-box {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tec-box img {
  max-height: 80px;
  width: auto;
  filter: brightness(0.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Efecto hover */
.tec-box:hover img {
  transform: scale(1.05); /* Solo agranda */
}

/* Efecto de resalte manual (activado desde PHP con la clase resaltado) */
.tec-box.resaltado img {
  filter: brightness(1);
}

@media (max-width: 768px) {
  .tecnologias-grid {
    grid-template-columns: 1fr;
  }

  .tec-box {
    margin-bottom: 2rem;
  }
}





/* === SECCIÓN: GALERÍA DE IMÁGENES === */
.galeria-imagenes {
  background-color: #030304;
  padding: 5rem 2rem;
  color: #fff;
}

.titulo-galeria {
  text-align: left;
  margin-bottom: 3rem;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1rem;   /* espacio entre columnas */
  row-gap: 5rem;      /* espacio entre filas */
  max-width: 1200px;
  margin: 0 auto;
}

/* Imágenes (estáticas por defecto) */
.galeria-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 0;
  opacity: 1;
}

/* Agregados Titulo Correcto */
.titulo-wrapper {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.titulo-galeria {
  text-align: center;
  margin: 0;
}

/* === SOLO EN DESKTOP: Border radius + hover dinámico === */
@media (min-width: 769px) {
  .img-1 {
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
  }

  .img-3 {
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
  }

  .img-4 {
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
  }

  .img-6 {
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
  }

  .img-7 {
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
  }

  .img-9 {
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
  }

  /* Hover y opacidad solo en desktop */
  .galeria-img {
    opacity: 0.4;
  }

  .galeria-img:hover {
    opacity: 1;
    transform: scale(1.03);
    z-index: 1;
  }
}

/* === VERSIÓN MOBILE === */
@media (max-width: 768px) {
  .grid-galeria {
    grid-template-columns: 1fr;
    row-gap: 1rem;         /* espacio entre filas (ajustado solo en mobile) */
    column-gap: 0.5rem;    /* espacio entre columnas, por si se necesitara */
  }

  .galeria-img {
    border-radius: 0;
    opacity: 1; /* asegurar que el hover no se aplique en mobile */
  }

  .img-1 {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
  }

  .img-9 {
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }

  .titulo-galeria {
    text-align: center;
    margin-bottom: 1.5rem; /* o 2rem si lo prefieres más amplio */
  }
}




/* === SECCIÓN: CONCLUSIÓN Y DESCARGA DEL PROYECTO === */
.seccion-descarga {
  background-color: #000;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.titulo-descarga {
  margin-bottom: 1.5rem;
}

.subtitulo-descarga {
  max-width: 750px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  color: #ccc;
}

/* Estilo para botón "Volver a Proyectos" */
.boton-volver {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'AvantGarde Medium', sans-serif;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.boton-volver:hover {
  background-color: #ccc;
  color: black;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .seccion-descarga {
    padding: 4rem 1rem;
  }

  .subtitulo-descarga {
    font-size: 0.95rem;
  }

  .boton-volver {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* === BOTÓN DE DESCARGA === */
.btn-descarga-wrapper {
  display: flex;
  justify-content: center;
  margin: 5rem auto;
}

.btn-descarga-wrapper a {
  color: rgba(255, 255, 255, 0.85);
  padding: 18px 28px; /* nuevo tamaño */
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem; /* nuevo tamaño */
  font-weight: 600;
  gap: 10px;
  border-radius: 14px; /* nuevo borde */
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn-descarga-wrapper a svg {
  width: 44px;   /* nuevo tamaño */
  height: 38px;
}

.btn-descarga-wrapper a:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.4)
  );
  box-shadow: 0 6px rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
}

.btn-descarga-wrapper a:active {
  transform: translateY(2px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .subtitulo-descarga {
    max-width: 93%;
    margin: 0 auto 3rem;
    line-height: 1.7;
    color: #ccc;
    text-align: justify; /* opcional: puedes quitar esto si prefieres left */
  }
}






/* === FOOTER === */
footer {
  background-color: #D8E1EB;
  color: #000;
  text-align: center;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

footer p {
  margin: 0;
  font-family: 'AvantGarde Demi', sans-serif;
  font-size: 14px;
  transform: scale(1); /* base consistente */
  transition: transform 0.3s ease;
  transform-origin: center center; /* punto de transformación centrado */
}

footer p:hover {
  transform: scale(1.05); /* animación centrada */
}