/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  line-height: 1.6;
  background: #f8fafc;
  color: #0f172a;
}

/* HEADER */
header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #22c55e;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1e293b, #0ea5e9);
  color: #fff;
  padding: 120px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* BOTÓN */
.btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* SECCIONES */
.section {
  padding: 70px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.section p {
  margin-bottom: 30px;
  color: #475569;
}

/* CARDS */
.cards {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 300px;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 10px;
  color: #0ea5e9;
}

/* CTA */
#contacto {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #fff;
  border-radius: 20px;
  margin: 40px 20px;
}

/* FOOTER */
footer {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
}

/* WHATSAPP */
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: 0.3s ease;
}

.float:hover {
  transform: scale(1.1);
}

.my-float {
  margin-top: 16px;
}

/* ========================= */
/* 🔥 ARTÍCULOS BLOG (CORREGIDO) */
/* ========================= */

.article-container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

.article-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.article-box p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.highlight {
  background: #f1f5f9;
  border-left: 4px solid #0ea5e9;
  padding: 15px;
  margin: 25px 0;
  border-radius: 8px;
  font-weight: 500;
}

.article-title {
  text-align: center;
  margin-bottom: 30px;
}

.article-title h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.article-title p {
  color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #0f172a;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 15px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
