/* Reset de estilo para asegurar consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://st.depositphotos.com/1736422/4199/i/450/depositphotos_41998051-stock-photo-cockpit.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

.section {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin: 20px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section p, .section ul {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  padding: 10px 20px;
  transition: top 0.3s;
  z-index: 1000;
}



.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #5c22d9;
}

/* Lista de proyectos */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.project {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    width: 300px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project h2 {
    font-size: 24px;
    color: #5c22d9;
    margin-bottom: 10px;
    text-align: center;
}

.project p {
    font-size: 16px;
    color: #ddd;
    text-align: center;
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Contacto */
#contact ul {
    list-style-type: none;
}

#contact ul li {
    margin: 10px 0;
}

#contact ul li a {
    color: #5c22d9;
    text-decoration: none;
    font-size: 18px;
}

#contact ul li a:hover {
    text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #5c22d9;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body {
    scrollbar-width: thin;
    scrollbar-color: #5c22d9 rgba(0, 0, 0, 0.5);
      padding-top: 70px; /* espacio para que el contenido no quede debajo del navbar */

}

/* Card de descarga */
.download-card {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-top: 20px;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.download-card::before,
.download-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #2b2b2b;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.download-card::before {
    left: -10px;
}

.download-card::after {
    right: -10px;
}

.download-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #5c22d9;
    padding-bottom: 5px;
}

.download-card p {
    font-size: 14px;
    margin-bottom: 20px;
}

.download-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #5c22d9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-button:hover {
    background-color: #7b4ff1;
    transform: scale(1.05);
}

.download-card .flight-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flight-details div {
    font-size: 14px;
}

.flight-details .flight-number {
    font-weight: bold;
    color: #5c22d9;
}

/* Carrusel */
.carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.window {
    background-color: rgba(255, 255, 255, 0.16);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 20px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #5c22d9;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

.carousel-button-left {
    left: 10px;
}

.carousel-button-right {
    right: 10px;
}

.carousel-button:hover {
    background-color: #3b148c;
}

.titulo-final {
    color: #5c22d9;
    font-weight: bold;
}

.window img.logo {
    width: 160px;
    height: auto;
    margin-right: 20px;
}

/* Logos */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skill-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-logo:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #5c22d9;
}

/* Botones dentro de proyectos */
.section .project-list .project button {
    background-color: #5c22d9;
    color: white;
    border: 2px solid #3b148c;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.section .project-list .project button:hover {
    transform: scale(1.1);
    background-color: #3b148c;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

.section .project-list .project button:active {
    transform: scale(0.95);
    background-color: #3b148c;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-section {
  padding: 40px 20px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.about-left, .about-right {
  flex: 1 1 300px;
  max-width: 500px;
}

.about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #5c22d9;
}

.about-info {
  list-style: none;
  padding: 0;
  color: #c1c1c1;
  font-size: 16px;
}

.about-info li {
  margin-bottom: 8px;
}

.about-right h1 {
  font-size: 32px;
  color: #5c22d9;
  margin-bottom: 15px;
}

.about-right p {
  font-size: 17px;
  line-height: 1.6;
  color: #c1c1c1;
}

.ort {
    color: rgb(40, 40, 214);
    font-weight: bold;
    font-size: 1.2em;
}
