:root {
  --primary-blue: #0d47a1;
  --secondary-blue: #1976d2;
  --accent-red: #d32f2f;
  --accent-gold: #ffb300;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --header-bg: rgba(13, 27, 42, 0.95);
  --border-color: #e2e8f0;
  --transition: all 0.3s ease;
}

body.dark-mode {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --header-bg: rgba(2, 6, 23, 0.95);
  --border-color: #334155;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  line-height: 1.6;
}

/* HEADER Y NAVEGACIÓN */
header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.brand-title span {
  color: var(--accent-red);
}

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

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-gold);
}

.cta-btn-nav {
  background: #25d366;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.cta-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* BANNER HERO */
.hero-banner {
  position: relative;
  min-height: 85vh;
  background: url("assets/banner.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-banner .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.85), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: white;
}

.badge-accent {
  background: var(--accent-red);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-banner h1 span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000;
}

.btn-primary:hover {
  background: #ffc107;
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

/* SECCIONES GENERALES */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background-color: rgba(0,0,0,0.02);
  border-radius: 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.section-title h2 span {
  color: var(--accent-red);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* CARACTERÍSTICAS / NOSOTROS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: white;
}

.icon-wrapper.red { background: var(--accent-red); }
.icon-wrapper.blue { background: var(--primary-blue); }
.icon-wrapper.gold { background: var(--accent-gold); color: black; }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.blog-badge.info { background: var(--primary-blue); }
.blog-badge.warning { background: var(--accent-gold); color: black; }

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--secondary-blue);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-red);
  gap: 12px;
}

/* FOOTER */
footer {
  background: #0b132b;
  color: white;
  padding-top: 4rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.footer-info h3 span {
  color: var(--accent-gold);
}

.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-details a {
  color: #90caf9;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-socials a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  background: #050a18;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* TOGGLE MODO OSCURO */
#toggle-theme {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  transition: var(--transition);
}

#toggle-theme:hover {
  transform: scale(1.1);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .hero-banner h1 {
    font-size: 2.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}