/* Base */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a1c20 0%, #2c5364 100%);
  color: #f5f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #e2e8f0;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.container:hover {
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(to right, #0f1115, #1a2734);
  color: #f5f7fa;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.logo-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  color: #e2e8f0;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a,
.dropbtn {
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease-in-out;
}

nav a:hover,
.dropbtn:hover {
  color: #dadada;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #cbd5e1;
  font-weight: 400;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: rgba(100, 116, 139, 0.2);
  color: #dadada;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: white;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  color: #e2e8f0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #dadada;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: #cbd5e1;
}

/* Content cards container */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  color: #e2e8f0;
  padding: 0 1rem;
}

/* Cada card individual */
.card {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.card div {
  padding: 1.5rem;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #dadada;
  font-weight: 700;
  font-size: 1.5rem;
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* CTA Section */
.cta {
  margin-top: 3rem;
  text-align: center;
  background: linear-gradient(to right, #1e293b, #334155);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: #f5f7fa;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  font-weight: 600;
  padding: 0.85rem 2.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.cta-button:hover {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  background: linear-gradient(to right, #0e141a, #1a2734);
  user-select: none;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 2rem 0;
  background: linear-gradient(to right, #0e141a, #1a2734);
  color: white;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid #374151;
  padding-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.4rem;
}

.footer-links ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #dadada;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .card img {
    height: 140px;
  }

  .card h2 {
    font-size: 1.25rem;
  }

  .content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  main {
    margin: 1rem;
    padding: 0;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .card div {
    padding: 1rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.95rem;
  }
}
