* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #000000;
  --secondary-color: #0a0a0a;
  --accent-color: #3b82f6;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --border-color: #1a1a1a;
  --background-color: #000000;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background-color) !important;
  color: var(--text-color);
  height: 100%;
  width: 100%;
  transition: background-color 0.1s ease-out;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.italic {
  font-style: italic;
  font-weight: 300;
}

/* Hero Section */
.hero-terminos {
  padding: 120px 0 80px;
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at top center, rgba(59, 130, 246, 0.3), rgba(0, 0, 0, 1) 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-terminos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-terminos h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-terminos .subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* Términos Content */
.terminos-content {
  padding: 80px 0;
  background-color: var(--secondary-color);
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.98));
}

.terminos-wrapper {
  display: flex;
  gap: 50px;
}

/* Sidebar */
.terminos-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background-color: rgba(10, 10, 10, 0.7);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.terminos-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.terminos-sidebar a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 5px;
}

.terminos-sidebar a:hover {
  color: var(--accent-color);
  text-decoration: none;
  transform: translateX(5px);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Texto Principal */
.terminos-texto {
  flex: 1;
}

.termino-seccion {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
  background-color: rgba(10, 10, 10, 0.6);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.termino-seccion:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.2);
}

.termino-seccion h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 600;
  color: var(--accent-color);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.termino-seccion p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.termino-seccion ul {
  margin: 20px 0;
  padding-left: 20px;
}

.termino-seccion ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.termino-seccion ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.termino-seccion ul li strong {
  color: var(--text-color);
}

/* Estilos para las imágenes */
.terminos-imagenes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px 0 30px;
}

.terminos-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 300px;
  object-fit: contain;
  cursor: pointer;
}

.terminos-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Estilos para la vista ampliada de imágenes */
.imagen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.imagen-ampliada {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  object-fit: contain;
  transition: transform 0.3s ease;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.terminos-contacto {
  margin-top: 60px;
  padding: 30px;
  background-color: rgba(10, 10, 10, 0.7);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminos-contacto p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Footer Styles */
footer {
  padding: 80px 0 30px;
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at top center, rgba(41, 52, 92, 0.5), rgba(0, 0, 0, 1) 70%);
  color: var(--text-color);
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
}

.footer-content h2 {
  font-size: 3.5rem;
  margin-bottom: 80px;
  text-align: center;
  line-height: 1.2;
  font-weight: 400;
}

.footer-content h2 span {
  font-weight: 700;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links a {
  color: var(--text-color);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-cta {
  position: relative;
  right: 475px;
  text-align: right;
}

.footer-cta p {
  margin-bottom: 15px;
  color: var(--text-color);
}

.btn-footer {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-footer:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-cta {
    right: 200px;
  }
}

@media (max-width: 768px) {
  .hero-terminos h1 {
    font-size: 3rem;
  }
  
  .terminos-wrapper {
    flex-direction: column;
  }
  
  .terminos-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 40px;
  }
  
  .terminos-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .terminos-sidebar a {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
  }
  
  .terminos-sidebar a:hover {
    transform: translateY(-3px);
  }
  
  .terminos-imagenes {
    flex-direction: column;
    align-items: center;
  }
  
  .terminos-img {
    max-width: 90%;
  }
  
  .footer-content h2 {
    font-size: 2.5rem;
  }
  
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-cta {
    text-align: left;
    right: auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-terminos h1 {
    font-size: 2.5rem;
  }
  
  .termino-seccion h2 {
    font-size: 1.8rem;
  }
}