/* ======================================
   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);
}


/* ======================================
   Aviso Legal
====================================== */
.legal-card {
  max-width: 900px;
  margin: 80px auto 60px auto; /* arriba 80px, abajo 60px */
  padding: 30px 25px;
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition) ease, box-shadow var(--transition) ease;
}

.legal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.legal-card h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.legal-card h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bold;
}

.legal-card a:hover {
  color: var(--primary);
}




/* ======================================
   Footer
====================================== */
.footer {
	background: #1a1c2b;
	color: #ccc;
	padding: 40px 20px;
	text-align: center;
	border-top: 1px solid #333;
}

.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;
}

/* ======================================
   WhatsApp Flotante (igual tamaño que scroll-to-top)
====================================== */
#whatsapp {
    position: fixed;
    bottom: 40px;       /* igual que scroll-to-top */
    right: 40px;         /* igual que scroll-to-top, puedes moverlo a right si quieres */
    width: 50px;        /* mismo tamaño que scroll-to-top */
    height: 50px;       /* mismo tamaño que scroll-to-top */
    background-color: var(--ok);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;    /* igual que scroll-to-top */
    cursor: pointer;
    opacity: 1;          /* visible siempre */
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    
}

#whatsapp:hover {
    background-color: var(--accent);
    transform: scale(1.1);
}

/* ======================================
   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 */
}

