/* ============================================================
   🔧 VARIABLES BASE GLOBALES
============================================================ */
@charset "UTF-8";
:root {
  /* Tipografía */
  --font-main: 'Poppins', sans-serif;
  --font-title: 'Oswald', sans-serif;
  --font-alt: "Press Start 2P", cursive;
  --font-alt-3:  "Caveat", cursive;
  --background-project: url('../img/letter-paper.png');
  /* Transiciones y sombras */
  --transition: all 0.3s ease;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  --backdrop-level: blur(3px);
}

/* ============================================================
   🎨 LIGHT THEME
============================================================ */
.light-theme {
  --color-bg: #5cbbe0;
  --color-bg-alt: #ffffff;
  --color-text: #141414;
  --color-muted: #666666;
  --color-navbar: #cccccc33;
  --particle-color: rgba(0, 0, 0, 1);
  --card-container-color: #fbfbfb33;
  --bg-footer-gradient: linear-gradient(#ffffff05 10%, #c2dce4ba 75%);

  --color-primary: #eb7141;
  --color-primary-dark: #ee5112;
  --color-accent: #e67308;

  --color-card-bg: rgba(255, 255, 255, 0.75);
  --color-overlay: rgba(255, 255, 255, 0.5);
  --btn-text: #fff;

  --background-navbar: url('https://www.transparenttextures.com/patterns/little-pluses.png');
  --background-texture: url('../img/textures/45-degree-fabric-dark.png');
  --background-banner: url('../img/bg4.jpg');

  --icon-instagram: url('../img/icons/instagram_icon_b.png');
  --icon-youtube: url('../img/icons/youtube_icon_b.png');
  --icon-github: url('../img/icons/github_icon_b.png');
}

/* ============================================================
   🌑 DARK THEME
============================================================ */
.dark-theme { 
  --color-bg: #021a38;
  --color-bg-alt: #2b2b2b;
  --color-text: #f2f2f2;
  --color-muted: #aaaaaa;
  --color-navbar: #33333333;
  --particle-color: rgba(255, 255, 255, 1);
  --card-container-color: #2b2b2b33;
  --bg-footer-gradient: linear-gradient(#00384210 10%, #00141aaf 75%);

  --color-primary: #e69f43;
  --color-primary-dark: #c97910;
  --color-accent: #047dad;

  --color-card-bg: rgba(255, 255, 255, 0.08);
  --color-overlay: rgba(0, 0, 0, 0.77);
  --btn-text: #000;

  --background-navbar: url('https://www.transparenttextures.com/patterns/grunge-wall.png');
  --background-texture: url('../img/textures/45-degree-fabric-light.png');
  --background-banner: url('../img/bg5.jpg');

  --icon-instagram: url('../img/icons/instagram_icon_w.png');
  --icon-youtube: url('../img/icons/youtube_icon_w.png');
  --icon-github: url('../img/icons/github_icon_w.png');
}

/* ============================================================
   🧩 ESTILO BASE
============================================================ */
*, html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  transition: var(--transition);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1 {
  color: var(--color-primary-dark);
}

h2, h3 {
  font-family: var(--font-title);
  color: var(--color-primary);
  text-shadow: 4px 4px 2px black;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
}
label {
  margin-bottom:-18px;
  font-size:20px;
  font-family:monospace;
  color:ivory;
}
input {
  font-family: monospace;
}
input:focus {
  outline: 0 !important;
  border-bottom: 2px solid rgb(0, 83, 207) !important;
  box-shadow: inset 2px 2px 4px black !important;
}
.main-container {
  display: flex; 
  flex-direction: column;
  min-height: 100%;
  background-color: var(--color-bg);
  background-image: var(--background-texture);
  background-repeat: repeat;
  /* background-size: cover; */
  background-position: center;
  background-attachment: fixed; 
  /* min-height: 100vh; */
  padding: 80px 0 80px 0;
}


/* ============================================================
   🌐 HEADER MODERNO
============================================================ */
.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0px;
  padding: 10px;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 10px;
  border-radius: 50px;
  background-color: rgba(33, 33, 33, 0.7);
  background-color:  var(--color-navbar);
  /* background-image: var(--background-navbar);*/
  opacity: 0.94;
  /* background-image: url('../img/header.png'); */
  backdrop-filter: var(--backdrop-level);
  transition: var(--transition);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Overlay animado al hacer scroll */
.header-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-dark);
  transform: translateX(100%) scale(0.85);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: -1;
  border-radius: 16px;
}

.header.scrolled .header-container::before {
  transform: translateX(0) scale(1);
  opacity: 0.94;
}

.logo img {
  height: 60px;
  border-radius: 40px;
  transform: scale(1.7);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.logo img:hover {
  transform: scale(2);
}
#logoSound {
  display: none;
}
/* ==============================================
   🎛️ HOT FONTS
============================================== */
.caveat-font {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 7vw;
}

.amatic-sc-regular {
  font-family: "Amatic SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.amatic-sc-bold {
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.alumni-sans {
  font-family: "Alumni Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.rubik-dirt-regular {
  font-family: "Rubik Dirt", system-ui;
  font-weight: 400;
  font-style: normal;
}

.passion-one-regular {
  font-family: "Passion One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.passion-one-bold {
  font-family: "Passion One", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.passion-one-black {
  font-family: "Passion One", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.titan-one-regular {
  font-family: "Titan One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.allison-regular {
  font-family: "Allison", cursive;
  font-weight: 400;
  font-style: normal;
}

.txt-shadow {
  text-shadow: 2px 2px 7px #333;
}

.dark-shadow {
  text-shadow: 4px 4px 2px black;
}

.special-shadow {
  text-shadow: 4px 4px 4px black;
}
/* ============================================================
   🧭 NAVEGACIÓN
============================================================ */
.login-access {
  position: fixed;
  top: -55px;
  right: -55px;
  z-index: 1001;
}
.login-access-inner {
  position: relative;
  width: 100px;
  height: 100px;
  background-color: #ffffffe8;
  border-radius: 50%;
  box-shadow: 3px 3px 4px #333;
  color: black;
  text-shadow: 1px 1px 7px #333;
  cursor: pointer;
  transition: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1333;
}
.login-access-inner:hover {
  background-color: #02659ef6;
  color: #ffffff;
  text-shadow: 1px 1px 13px #a2e5ff;
  transform-origin: center;
  transform: scale(2);
  box-shadow: 3px 3px 7px #333;
}
.login-access-inner-text {
  position: absolute;
  font-family: Impact;
  font-size: 13px;
  top: 63px;
  right: 55px;
  transform: rotate(-45deg);
  z-index: 2000;
}

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-family: var(--font-alt-3);
  transition: var(--transition);
}

.btn-navbar {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-alt-3);
  font-size:1.1rem;
  font-weight: 700;
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--color-primary);
}


/* === Menú Móvil === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: 500;
}

.mobile-cta-button {
  background-color: white;
  color: black;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

/* === Estado scrolled === */
.header.scrolled .desktop-nav a,
.header.scrolled .cta-button {
  color: white;
}

.header.scrolled .hamburger span {
  background-color: white;
}

/* ============================================================
   💎 SECCIONES
============================================================ */
.card-container {
  padding: 25px 10px 25px 10px;
  border-radius: 20px;
  background-color: var(--card-container-color);
}
.hero-banner {
  position: relative;
  height: 75vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 1rem;
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
}
.banner::before {
  background: var(--color-overlay);
}
.hero-banner .content {
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1.2s ease;
}
.banner {
  color: var(--color-bg-alt);
  background-image: var(--background-banner);
}
.project {
  color: #141414;
  background-image: var(--background-project);
}
/* Tarjetas tipo glass */
.glass-card {
  background: var(--color-card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-5px);
}
.contact-text {
  text-align: justify;
  font-size: 1.8vw;
  color: var(--color-text);
}
.card-img-top {
  height: 250px;               /* Ajusta el valor al alto que necesites */
  width: 100%;                 /* Mantiene el ancho del contenedor */
  object-fit: cover;           /* Recorta la imagen manteniendo la proporción */
  object-position: center;    /* Centra la parte visible */
}
.ig-icon {
      width: 2.5rem;
      height: auto;
    }
/* ============================================================
      FOOTER
============================================================ */

footer {
  position: fixed;  
  width: 100%;
  background: var(--bg-footer-gradient);
  padding-top: 15px;
  text-align: center;
  bottom: 0px;
  left: 0px;
  right: 0px;
  margin-bottom: 0px;
  z-index: 1000;
}
.icon {
  display: block;         /* Importante para que el <a> tome el tamaño */
  width: calc(20px + 1vw);            /* Tamaño ajustado (42px puede ser muy grande en móviles, puedes subirlo si quieres) */
  height: calc(20px + 1vw);
  margin-left: 2vw;
  margin-right: 2vw;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease; /* Efecto suave al pasar el mouse */
  opacity: 0.8;
}
.icon:hover {
  transform: scale(1.1);  /* Pequeño zoom al pasar el mouse */
  opacity: 1;
}
.icon-instagram    { background-image: var(--icon-instagram); }
.icon-youtube  { background-image: var(--icon-youtube); }
.icon-github { background-image: var(--icon-github); }
.footer small {
  color: var(--color-text);
  font-size: calc(0.85rem - 0.3vw); 
  text-align: center;
  line-height: 1.5;       /* Mejora la lectura si el texto salta de línea */
  max-width: 90%;   
  height: fit-content;      /* Evita que el texto toque los bordes en celulares */
  bottom: 0;
}

/* ============================================================
   📱 RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-banner { height: 65vh; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
  .cta-button { display: none; }

  .hero-banner { height: 55vh; }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

@media (orientation: landscape) and (max-width: 768px) {
  .hero-banner { height: 80vh; }
}

@media (min-width: 1920px) {
  body { font-size: 1.1rem; }
  .hero-banner { height: 85vh; }
}

@media (min-width: 3840px) { /* 4K */
  body { font-size: 1.3rem; }
  .hero-banner { height: 90vh; }
}


/* ==============================================
   🎛️ SWITCH RETRO DE TEMA
============================================== */
.retro-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0px;
}

.retro-switch {
  width: 55px;
  height: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #555, #222);
  position: relative;
  box-shadow: inset 0 3px 6px #000, 0 0 10px rgba(0, 229, 255, 0.3);
  cursor: pointer;
  border: 2px solid #2c2c2c;
  transition: all 0.3s ease;
}

.retro-switch .switch-handle {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #aaa 70%);
  box-shadow: inset 1px 1px 2px #000, 2px 2px 5px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cuando está en modo oscuro */
.dark-theme .retro-switch {
  background: linear-gradient(180deg, rgb(206, 206, 206), rgb(255, 255, 248));
  box-shadow: inset 0 3px 6px #000, 0 0 15px rgba(254, 255, 249, 0.6);
}

.dark-theme .retro-switch .switch-handle {
  left: 29px;
  background: radial-gradient(circle at 70% 70%, #fbffe6, #ffffff);
  transform: rotateY(180deg);
}

/* Click visual */
.retro-switch:active .switch-handle {
  transform: scale(0.9);
}

.wrapper {
  position: relative;
  display: inline-block;
  margin: 35px auto;
}

.header-wrap {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  text-align: center;
  font-size: 25px;
  font-family: "Press Start 2P", cursive;
  transform: perspective(200px) rotateX(10deg);
  letter-spacing: 0.1em;
  user-select: none;
  text-shadow: 0 -1px 0 #fff, 0 1px 0 #00284d, 0 2px 0 #001148, 0 3px 0 #000746, 0 4px 0 #001543, 0 5px 0 #001541, 0 6px 0 #00063f, 0 7px 0 #00043d, 0 8px 0 #00081f, 0 22px 30px rgba(0, 0, 0, 0.9), 0 22px 30px rgba(0, 0, 0, 0.9), 0 22px 15px rgba(0, 0, 0, 0.9), 0 11px 15px rgba(0, 0, 0, 0.9), 0 15px 20px rgba(0, 0, 0, 0.9);
  transition: text-shadow 0.3s ease 0.3s, transform 0.3s ease 0.3s, letter-spacing 0.3s ease 0.3s;
}
.header-wrap:hover {
  transition: text-shadow 0.33s ease, transform 0.3s ease, letter-spacing 0.3s ease;
  text-shadow: 0 0 0 #004134, 0 1px 0 #00483B, 0 2px 0 #003528, 0 3px 3px rgba(0, 0, 0, 0.9);
  transform: translate(0px, 15px) perspective(200px) rotateX(10deg);
  letter-spacing: 0.125em;
}

/* ==============================================
   🎛️ HOT BUTTONS
============================================== */

/* contenedor de la barra */
.navbar{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    position: fixed;
}

/* wrapper del botón */
.btn-wrapper{
    position:relative;
    width:auto;
    height:50px;
    margin:0 7px;
    overflow:hidden;
}

/* canvas que dibuja las partículas */
.btn-canvas{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;   /* no bloquea el hover del botón */
}

/* botón visible */
.btn {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}
.login-enter {
  box-shadow: 1px 1px 10px black;
  border:3px solid ivory;
  font-weight: bolder;
}
/* enlace que envuelve al botón (opcional) */
.btn-link {
  display: block;
  text-decoration: none;
  text-align: center;
}
.link {
  text-align: center;
  background-color: rgba(228, 11, 11, 0.623);
  width: 100%;
  padding: 5px;
  border: 1px solid rgb(94, 0, 0);
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
  color: var(--color-text);
  transition:cubic-bezier(1, 0, 0, 1);
}
.link:hover {
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 2px 2px 2px #333;
}
.button-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cta-button {
  background-color: var(--color-primary);
  color: var(--btn-text);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.sticky-btn {
  position: absolute;          /* saca el botón del flujo normal */
  bottom: 0;                    /* lo pega al borde inferior del .content */
  left: 0;                      /* opcional: alinea a la izquierda */
  right: 0;                     /* opcional: hace que ocupe todo el ancho */
  margin: 0 auto;               /* centra horizontalmente si usas left+right */
  padding: 10px 20px;
  background: #0066ff;
  color: #fff;
  border: none;
  cursor: pointer;
}
.glass-button {
  padding: 10px 20px;
  background: rgba(146, 146, 146, 0.5);
  border-radius: 1px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--color-text);
  height: auto;
  border-top: 1px solid black !important;
  border-bottom: 1px solid black !important;
}
.glass-button:hover {
  color: var(--color-text);
  background-color: rgba(0, 153, 255, 0.473);
  border-top: 2px solid black !important;
  border-bottom: 2px solid black !important;
}

/* ============================================================
   ✨ ANIMACIONES
============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==============================================
   🎛️ LOGIN MODAL
============================================== */
/* Ocultar por defecto */
.hidden { display: none !important; }

/* Contenedor del modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 7007;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-info {
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-color: whitesmoke;
  color: orangered;
  width: 100%;
  padding: 30px 0 30px 0;
  font-size: 33px;
  text-align: center;
  box-shadow: 0px 4px 4px black;
  border-top: 7px solid orangered;
  border-bottom: 7px solid orangered;
  text-shadow: 2px 2px 3px black;
  z-index: 7077;
}

/* Overlay oscuro */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Caja del modal */
.modal-content {
  position: relative;
  background: var(--background-navbar);
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
  animation: slideUp 0.3s ease-out;
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Formulario */
#login-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
#login-form label {
  font-weight: 600;
}
#login-form input {
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.btn-primary {
  margin-top: .5rem;
  padding: .6rem;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-primary:hover { background: #0052cc; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
