/* ===== RESETEO BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  scroll-padding-top: 70px; /* Ajusta este valor al alto de tu nav-bar */
}
body {
  background-color: #000000;
  color: #001C42;
  line-height: 1.6;
  text-align: center;
}

/* ===========================
   BASE GENERAL
=========================== */
.main-header {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: none;
    position: sticky;
    top: 0;
    z-index: 1000;

}

.nav-bar {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
}

/* ===========================
   LOGO
=========================== */

.nav-left {
    display: flex;
    align-items: center;
    gap: 0px;
    justify-content: left;
}


.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .5s ease;
}


.logo:hover {
    transform: scale(1.1);
}

.brand {

    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: #002B64 0px 0px 3px;
    border-radius: 20px;
    transition: background-color 2.5s ease;
    
}
.change-color {
    color: #0078ff;
    transition: color 0.3s ease;
}

/* ===========================
   MENÚ PÍLDORA CENTRAL
=========================== */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-pill {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 10px 30px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, .0);
    border: .5px solid rgba(26, 115, 232, 0.18);
    backdrop-filter: blur(90px);
}

.nav-pill a {
    color:whitesmoke;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.5s ease;
}

.nav-pill a:hover {
    color: #0078ff;
    transform: scale(1.5);
}

/* ===========================
   IDIOMAS
=========================== */
.lang-switch {
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s, border 0.25s;
}

.lang-btn:hover {
    transform: scale(1.8);
    font-size: 1.7rem;
}

.flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.lang-btn.active {
    transform: scale(1.8);
    font-size: 1.7rem;
}

/* ===========================
   BOTÓN HAMBURGUESA
=========================== */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Oculta el checkbox */
#menu-toggle {
    display: none;
}



/* ===== INICIO ===== */
#inicio {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  background: black; /* Fondo base */
  overflow: hidden;  /* Para que la animación no se salga */
  border-radius: 0 0 20px 20px;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;      /* centro vertical */
  justify-content: center;  /* centro horizontal */
}

/* Halo suave animado */
#inicio::before{
  content: "";
  position: absolute;
  top: 5%;       
  bottom: 5%;    
  left: 0;
  right: 0;
  margin: auto;
  height: 60%;   

  background: radial-gradient(
    ellipse at center,
    rgba(0,120,255,0.5) 0%,
    rgba(0,80,180,0.35) 70%,
    rgba(0,50,120,0.15) 100%,
    transparent 100%
  );
  filter: blur(40px);  
  animation: haloPulse 6s ease-in-out infinite alternate;
    z-index: 0;       
  pointer-events: none;
}

/* Animación de respiración */
@keyframes haloPulse {
  0% {opacity: 0.4;transform: scaleY(0.95); }
  50% {opacity: 0.7;transform: scaleY(1.5);}
  100% {opacity: 0.4;transform: scaleY(0.95);
  }
}

#inicio h2,
#inicio p,
#inicio a {
  position: relative;
  z-index: 2;
}

#inicio h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#inicio p {
  font-size: 1.2rem;
  padding: 10px 50px;
  margin-bottom: 30px;
}

#inicio a {
  margin-top: 1rem;
  background-color: #ffffff;
  color: #002B64;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#inicio a:hover {
  background-color: #e8f0ff;
  transform: scale(1.05);
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 5px 15px black;
}

.inicio-container {
  display: flex;
  align-items: center;   /* centro vertical */
  justify-content: space-between;
  min-height: 100%;
}
/*
.inicio-imagen img {
  width: 450px;
  max-width: 100%;
  animation: float 4s ease-in-out infinite;
}

 Animación suave 
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
*/

/* ===== PROYECTOS ===== */
#proyectos {
  padding: 60px 20px;
  background: linear-gradient(135deg, #000000 0%, #0a1b2f 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#proyectos h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #0078ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proyectos-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
}

.proyectos-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 120, 255, 0.3) rgba(0, 0, 0, 0.1);
}

.proyectos-carousel::-webkit-scrollbar {
  height: 8px;
}

.proyectos-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.proyectos-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 120, 255, 0.3);
  border-radius: 10px;
}

.proyectos-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 120, 255, 0.6);
}

.proyecto-card {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 120, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.proyecto-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0078ff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 120, 255, 0.2);
}

.proyecto-imagen {
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: center;
  opacity: 0.4;
}

.proyecto-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.proyecto-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proyecto-badge {
  align-self: center;
  margin: -5px auto 15px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffb020;
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.3);
}

.proyecto-categoria {
  font-size: 0.85rem;
  color: #0078ff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.proyecto-titulo {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.proyecto-resumen {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.proyecto-fecha {
  font-size: 0.85rem;
  color: #999;
  text-align: right;
}

.carousel-btn {
  background: rgba(0, 120, 255, 0.2);
  border: 2px solid rgba(0, 120, 255, 0.4);
  color: #0078ff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(0, 120, 255, 0.4);
  border-color: #0078ff;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn-left,
.carousel-btn-right {
  position: relative;
}

.ver-mas-btn {
  background-color: #0078ff;
  color: #fff;
  border: none;
  padding: 13px 40px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.ver-mas-btn:hover {
  background-color: #005fcc;
  box-shadow: 0 5px 20px rgba(0, 120, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== CONTACTO ===== */
#contacto {
  padding: 40px 20px;
  background: linear-gradient(135deg, #000000 0%, #0a1b2f 100%);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contacto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #0078ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-container {
  display: flex;
  gap: 80px;
  max-width: 1000px;
  width: 80%;
  align-items: flex-start;
  justify-content: space-between;
}

/* ===== FORMULARIO ===== */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(0, 120, 255, 0.2);
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: 600;
}


.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  color: #00d4ff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid rgba(0, 120, 255, 0.3);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0078ff;
  background-color: rgba(0, 120, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.2);
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-btn {
  background: linear-gradient(135deg, #0078ff, #00d4ff);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#contact-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #005fcc, #0099cc);
  box-shadow: 0 10px 30px rgba(0, 120, 255, 0.4);
  transform: translateY(-2px);
}

#contact-btn:active:not(:disabled) {
  transform: translateY(0);
}
#contact-btn.loading {
  cursor: wait;
}

#contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#contact-btn.sent {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
  transition: all 0.5s ease;
}

#contact-btn.sent:hover {
  background: #15803d;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.5);
}

.form-message {
  text-align: center;
  font-weight: 500;
  min-height: 20px;
  animation: slideIn 0.3s ease;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #ef4444;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REDES SOCIALES ===== */
.social-links-wrapper {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.social-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.social-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-size: 2.5rem;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-icon svg {
  width: 50px;
  height: 50px;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0078ff, #00d4ff);
  transition: left 0.4s ease;
  z-index: -1;
  border-radius: 15px;
}

.social-icon:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
  transform: scale(1.1) translateY(-5px);
}

.social-icon:hover::before {
  left: 0;
}

.social-icon.youtube {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff0000;
}

.social-icon.youtube::before {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon.youtube:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
}

.social-icon.facebook {
  background: rgba(59, 89, 152, 0.1);
  border-color: rgba(59, 89, 152, 0.3);
  color: #3b5998;
}

.social-icon.facebook::before {
  background: linear-gradient(135deg, #3b5998, #2d4373);
}

.social-icon.facebook:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(59, 89, 152, 0.5);
}

.social-icon.instagram {
  background: rgba(224, 1, 76, 0.1);
  border-color: rgba(224, 1, 76, 0.3);
  color: #e0014c;
}

.social-icon.instagram::before {
  background: linear-gradient(135deg, #e0014c, #e0014c, #f77737, #fdb927);
}

.social-icon.instagram:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(224, 1, 76, 0.5);
}

.social-icon.linkedin {
  background: rgba(0, 119, 181, 0.1);
  border-color: rgba(0, 119, 181, 0.3);
  color: #0077b5;
}

.social-icon.linkedin::before {
  background: linear-gradient(135deg, #0077b5, #004182);
}

.social-icon.linkedin:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.5);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
}

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

@media (max-width: 1024px) {
  .main-header {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 10px 30px;
    background-color: none;
    position: sticky;
    top: 0;
    z-index: 1000;

}
    /* Barra completa se convierte en una píldora */
    .nav-bar {
        padding: 1px 30px;
        border-radius: 50px;
        background-color: rgba(0, 0, 0, .0);
        border: .5px solid rgba(26, 115, 232, 0.18);
        backdrop-filter: blur(100px);
    }

    .brand {
    display: none;  
    }

    .nav-pill {
        gap: 20px;
        padding: 10px 30px;
        border: none;
}
}

/* ===== RESPONSIVE PARA MENÚ ===== */
@media (max-width: 768px) {
  /* Ocultar menú y mostrar icono */
  .menu-icon {
    display: block;
    margin-left: right;
  }

.nav-right{
    display: none;
}

.nav-pill{
    display: none;
    flex: none;
}


.nav-bar {
    overflow: hidden;
    width: 300px;
    padding: 1px 10px;
    transition: border-radius 1s ease-out;

}

#menu-toggle:checked ~ .nav-bar {
    width: 300px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 1px 10px;
    border-radius: 10px;
}


#menu-toggle:checked ~ .nav-bar .nav-left {
    grid-column: 1;
    grid-row: 1;
}

#menu-toggle:checked ~ .nav-bar .nav-hamburger {
    grid-column: 2;
    grid-row: 1;
}

#menu-toggle:checked ~ .nav-bar .nav-center {
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: center;
    justify-self: center;
}

#menu-toggle:checked ~ .nav-bar .nav-right {
    grid-column: 1 / 3;
    grid-row: 3;
    text-align: center;
    justify-self: center;
    display: block;
    padding-bottom: 15px;
}

#menu-toggle:checked ~ .nav-bar nav .nav-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    gap: 15px;
}


}


/* Tabletas */
@media (max-width: 1024px) {
  #proyectos {
    padding: 40px 20px;
  }

  #proyectos h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .proyecto-card {
    flex: 0 0 280px;
  }

  .proyectos-carousel-wrapper {
    gap: 15px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  #contacto {
    padding: 40px 20px;
  }

  #contacto h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper,
  .social-links-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Celulares (pantallas pequeñas) */
@media (max-width: 600px) {
  #proyectos {
    padding: 40px 15px;
  }

  #proyectos h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .proyectos-carousel-wrapper {
    gap: 10px;
  }

  .proyecto-card {
    flex: 0 0 250px;
    padding: 20px;
  }

  .proyecto-titulo {
    font-size: 1.1rem;
  }

  .proyecto-resumen {
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  #contacto {
    padding: 40px 15px;
  }

  #contacto h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-wrapper,
  .social-links-wrapper {
    padding: 25px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Previene zoom en iOS */
  }

  .social-icons {
    gap: 20px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Teléfonos muy pequeños */
@media (max-width: 480px) {
  
}
