/* ====== Estilos Generales ====== */
/*body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0 2rem;
  background-color: #f4f4f4;
  color: #333;
}*/

body {
    margin: auto;
    /*font-family: -apple-system, BlinkMacSystemFont, sans-serif;*/
    font-family: 'Exo 2', sans-serif;
    overflow: auto;
    /*background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);*/
    background: linear-gradient(315deg, #2b001f 3%, #1e3a5f 38%, #11605d 68%, #4d0a0a 98%);
    animation: gradient 30s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

header {
    text-align: center;
    padding: 2rem 0;
    color: #eee; 
    font-weight: 600;
    letter-spacing: 1px;
}

.proyecto {
  text-align: center;
}

.proyecto:has(details[open]) {
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Estilo del botón summary */
.acordeon-descriptiva summary {
  cursor: pointer;
  background-color: #222;
  color: #eee;
  padding: 0.6rem;
  margin-top: 0.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.acordeon-descriptiva[open] summary {
  background-color: #444;
}

/* Contenido de la descripción */
.contenido-descriptiva {
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #666;
  border-radius: 8px;
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 14px;
  text-align: left;
}

.contenido-descriptiva h3 {
  font-size: 16px;
  margin-top: 0;
  color: #eee;
}

.contenido-descriptiva a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #59a6d2;
}

.contenido-descriptiva a:hover {
  color: #a0d8ef;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    padding: 10px;
    color: #ddd;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow:
      0 0 5px rgba(200, 200, 255, 0.6);
}

section {
    margin: 15px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

p {
    color: #bbb;
    font-size: 1rem;
}

a {
    color: #59a6d2; 
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #a0d8ef; 
    text-decoration: underline;
}

.wave {
    background: rgba(255, 255, 255, 0.15); 
}


input, button, select, textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #eee;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input:focus, button:hover, select:focus, textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #59a6d2;
    outline: none;
}

/* ====== Grid y Apps ====== */
.grid, .grid.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 15px;
  justify-items: center;
}

/* Hover para anclas que contengan imágenes */
.grid a:hover {
  z-index: 10;
}

/* Posicionamiento base de los enlaces en grid */
.grid a, .grid.apps a {
  text-align: center;
  transition: all 0.4s ease;
  overflow: visible;
  position: relative;
  z-index: 0;
}

/* Transición para TODAS las imágenes (dentro o fuera de <a>) */
.grid img,
.grid a img,
.grid .proyecto img {
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 8px;
  object-fit: contain;
}

/* Zoom y sombra suave al hacer hover en .proyecto */
.grid .proyecto:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Ajustes específicos */
.grid img {
  width: 350px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #ddd;
}

.grid.apps img {
  width: 190px;
  height: 350px;
}

/* Mostrar u ocultar grid con botón */
.grid, .apps {
  display: none;
}

.grid.show, .apps.show {
  margin: 15px;
  margin-top: 40px;
  display: grid;
  align-items: center;
}

/* Responsividad */
@media (min-width: 901px) {
  .grid, .grid.apps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .grid, .grid.apps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid, .grid.apps {
    grid-template-columns: 1fr;
  }
}

/* ====== Skills ====== */
.skills img {
  width: 50px;
  height: 40px;
  margin: 0.3rem;
}

/* ====== Accordion ====== */
.accordion {
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 5px rgba(200, 200, 255, 0.6);
  cursor: pointer;
  background-color: rgba(50, 50, 50, 0.85); /* gris oscuro semi-transparente */
  color: #ddd; /* texto claro, pero no blanco puro */
  padding: 15px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 8px rgba(89, 166, 210, 0.5); /* un leve resplandor azul */
}

.accordion:hover {
  background-color: rgba(68, 68, 68, 0.9);
  color: #a0d8ef; /* azul claro para el texto al hover */
}

.accordion::after {
  content: '►';
  font-size: 16px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #59a6d2;
  margin-left: 10px;
}

.accordion.active::after {
  transform: rotate(90deg);
  color: #a0d8ef;
}

.panel {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  margin-top: 10px;
}

details.acordeon {
  margin-top: 10px;
  font-size: 0.95rem;
}

details.acordeon summary {
  cursor: pointer;
  color: rgb(89, 166, 210);
  text-shadow: rgba(200, 200, 255, 0.6) 0px 0px 5px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  margin-bottom: 8px;
}

details.acordeon summary:hover {
  color: #a0d8ef;
  text-decoration: underline; 
}

details.acordeon .contenido {
  padding-top: 8px;
  color: #eee;
  background-color: rgba(255, 255, 255, 0.05);
}

details.acordeon .contenido p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 10px;
}

details.acordeon .contenido a {
  display: inline-block;
  margin-top: 5px;
  color: #59a6d2;
  font-weight: bold;
  transition: color 0.3s;
}

details.acordeon .contenido a:hover {
  color: #a0d8ef;
  text-decoration: underline;
}

details.acordeon summary::after {
  content: '►';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
  color: #59a6d2;
}

details.acordeon[open] summary::after {
  content: '▼';
  color: #a0d8ef;
}
