/* ======================================
   Variables y Reset
====================================== */
:root {
  background: linear-gradient(135deg, #1a1c2b, #1a1c2b); /* Verde menta suave */
  --bg-card: #1a1c2b;   
  --primary: #2272FF;   
  --accent: #ff0000;    
  --text: #f5f6fa;      
  --muted: #a3a9b8;     
  --ok: #29d397;
  --radius: 15px;
  --shadow: 0 10px 25px rgba(0,0,0,0.5);
  --transition: 0.5s;
}

/* Modo claro */
.light-mode {
  --bg: #ffffff;
  --bg-card: #ff0000;
  --primary: #2272FF;
  --accent: ff0000;
  --text: #1D1D1D;
  --muted: #6b6b6b;
  --shadow: 0 10px 25px rgba(0,0,0,0.2);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
}




/* ======================================
   Header y Navegación
====================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: transparent;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

header.scrolled {
  background: var(--bg-card);
  border-bottom-color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--text);
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent);
}

.btn-contact {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-contact:hover {
  background: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}


/* ======================================
   Media Queries
====================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .burger {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    position: fixed;
    left: -100%;
    top: 0;
    background: var(--bg-card);
    padding-top: 100px;
    gap: 20px;
    transition: var(--transition);
  }

  nav.show {
    left: 0;
  }
}



#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* empieza desplazado */
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s;
    z-index: 1000;
}

#scrollToTopBtn:hover {
    background-color: var(--accent);
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* aparece suavemente */
}






body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* altura completa */
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ======================================
   CONTENEDOR GENERAL (mantiene tu diseño)
====================================== */

.centered-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Contenedor swipe */
.swipe-container {
  display: flex;
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

/* Imagen lateral */
.form-image {
  width: 50%;
  background: #00000020;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* CONTENEDOR DE FORMULARIOS */
.form-content {
  width: 50%;
  padding: 30px;
  transition: transform 0.6s ease;
}

/* SWIPE: mover a registro */
.swipe-register .form-content {
  transform: translateX(-100%);
}

/* ======================================
   FORMULARIOS
====================================== */

form {
  display: none;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transition: opacity var(--transition);
}

form.active {
  display: flex;
  opacity: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: #10121a;
  color: var(--text);
}

/* ======================================
   BOTONES
====================================== */

.btn-contact {
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn-contact:hover {
  background: #1a5adb;
}

/* ======================================
   TOGGLE LOGIN / REGISTRO
====================================== */

.form-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-toggle button {
  width: 48%;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: #222;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.form-toggle button.active {
  background: var(--primary);
  color: white;
}

/* ======================================
   CHECKLIST
====================================== */

.checklist-box {
  background: #141621;
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.checklist-box ul {
  list-style: none;
  margin-top: 5px;
}

.checklist-box li {
  font-size: 14px;
}



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

/* Tablets */
@media (max-width: 900px) {
  .swipe-container {
    flex-direction: column;
    max-width: 500px;
  }

  .form-image {
    width: 100%;
    height: 200px;
    padding: 0;
  }

  .form-content {
    width: 100%;
  }
}

/* Teléfonos */
@media (max-width: 500px) {
  .form-content {
    padding: 20px;
  }

  .form-toggle button {
    padding: 8px;
  }

  .form-image img {
    width: 80%;
  }
}


/* ===========================
   Botón Google Moderno
=========================== */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #1a1c2b, #24273a); /* combina con tu bg */
  border: 2px solid #4285F4; /* borde azul de Google */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: linear-gradient(135deg, #2272FF, #1a1c2b);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(34, 114, 255, 0.4);
  color: #fff;
}

.btn-google:active {
  transform: scale(0.97);
}

/* Icono de Google dentro del botón */
.btn-google img {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  padding: 2px;
}


/* Contenedor principal */
.swipe-container {
  display: flex;
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Imagen */
.form-image {
  width: 40%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-image img {
  width: 100%;
  height: auto;
}

/* TRACK QUE SE DESLIZA */
.swipe-track {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateX(0);
  transition: transform 0.6s ease;
}

/* Cuando pasas a REGISTRO → mueve todo el track */
.swipe-container.swipe-register .swipe-track {
  transform: translateX(-100%);
}

/* Formularios */
form {
  display: none;
  opacity: 0;
  transition: opacity .4s ease;
}

form.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .swipe-container {
    flex-direction: column;
  }
  .form-image {
    width: 100%;
    height: 200px;
  }
  .swipe-track {
    width: 100%;
  }
}




/* =========================
   Footer siempre abajo
========================= */
.footer {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .form-container {
    flex-direction: column;
    gap: 20px;
  }

  .form-image, .form-content {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .form-toggle button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .btn-contact {
    padding: 8px 15px;
  }

  .form-content {
    padding: 20px;
  }
}

.footer-contenedor {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.footer-logo img {
	width: 60px;
	border-radius: 50%;
	box-shadow: 0 0 10px #ff0000;
	margin-bottom: 10px;
}

.footer-logo h3 {
	color: #ff0000;
	font-size: 1.5rem;
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}

.footer-links a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: #ff0000;
}

.footer-redes a {
	color: #ccc;
	margin: 0 10px;
	font-size: 1.2rem;
	transition: color 0.3s;
}

.footer-redes a:hover {
	color: #ff0000;
}

.footer-copy {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #777;
}