/* RESET */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: white;
  color: #111;
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  z-index: 1000;
}

nav a {
  color: #111;
  margin-left: 20px;
  text-decoration: none;
}

nav a:hover {
  color: black;
}

.nav-links {
  display: flex;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.logo-nav {
  height: 40px;
  width: auto;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-text h1 {
  font-size: 50px;
}

.hero-text p {
  color: #111;
  margin: 20px 0;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
}

/* BOTÓN */
.btn {
  width: fit-content;
  padding: 12px 24px;
  background: #d5ff01;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* MARQUEE */
.marquee-container {
  width: 100%;
  background-color: #3758D3;
  overflow: hidden;
  padding: 14px 0;
  margin-top: -98px;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  display: inline-block;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  padding-left: 100vw;
}

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

/* SECCIÓN DOS COLUMNAS */
.seccion-dos-columnas {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
  text-align: left;
}

.seccion-texto {
  flex: 1;
}

.seccion-texto h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.seccion-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.seccion-imagen img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
}

.seccion-invertida {
  flex-direction: row-reverse;
}

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

.seccion-texto ul li {
  margin-bottom: 10px;
  color: #111;
  line-height: 1.6;
}

/* PARALLAX */
.seccion-parallax {
  flex: 1;
  min-height: 350px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  background-attachment: scroll;
}

/* FRANJA PUNTOS */
.franja-puntos {
  background-color: #3758D3;
  display: flex;
  justify-content: center;
  gap: 0px;
  padding: 30px 40px;
}

.punto {
  flex: 1;
  max-width: 300px;
  text-align: center;
  color: white;
  padding: 0 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.punto-icono {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.punto p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.punto:last-child {
  border-right: none;
}

/* FONDO GRIS */
.fondo-gris {
  background: #f4f4f4;
}

/* SECCIÓN CÓMO PUEDO AYUDARTE */
.seccion-ayuda {
  max-width: 100%;
  padding: 40px 60px 20px;
  text-align: center;
  color: #111;
}

.seccion-ayuda h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #111;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.seccion-ayuda p {
  color: #111;
  max-width: 700px;
  margin: 10px auto;
  text-align: left;
}

/* SECCIÓN SERVICIOS HOME */
.seccion-servicios {
  text-align: center;
  max-width: 1100px;
  margin: auto;
  padding: 5px 10px 60px;
}

.card-blanco {
  background: white;
  color: #111;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-azul {
  background: #3758D3;
  color: white;
  border: none;
}

.card-azul:hover {
  border-color: #3758D3;
}

/* CARDS */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #00ffcc;
}

/* PÁGINA SERVICIOS */
.servicios-page {
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.servicios-page h1 {
  font-size: 42px;
  margin-bottom: 30px;
  color: #111;
}

.servicios-page p {
  color: #111;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* SOBRE MÍ */
.sobre-mi-container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 1100px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.sobre-mi-imagen img {
  width: 300px;
  border-radius: 12px;
}

.sobre-mi-texto h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.sobre-mi-texto p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* FOOTER */
footer {
  border-top: 1px solid #eee;
  padding: 30px 40px;
  background-color: white;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-redes a {
  color: #555;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-redes a:hover {
  color: black;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: center;
}

.footer-frase {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
  font-style: italic;
}

.footer-copyright {
  font-size: 13px;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  nav {
    padding: 10px 20px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 16px;
  }

  .hero {
    height: auto;
    padding-top: 100px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-image img {
    max-width: 280px;
  }

  .marquee-container {
    margin-top: 0;
  }

  .seccion-dos-columnas {
    flex-direction: column;
    padding: 30px 20px;
    gap: 10px;
    text-align: center;
  }

  .seccion-texto h2 {
    font-size: 28px;
  }

  .seccion-imagen img {
    max-width: 100%;
  }

  .seccion-parallax {
    min-height: 250px;
    background-size: contain;
    background-attachment: scroll;
    width: 100%;
  }

  .franja-puntos {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .punto {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 0 30px 0;
    max-width: 100%;
  }

  .punto:last-child {
    border-bottom: none;
  }

  .seccion-ayuda h2 {
    font-size: 32px;
  }

  .card {
    max-width: 100%;
  }

  .servicios-page {
    margin: 80px 20px 20px;
  }

  .sobre-mi-container {
    flex-direction: column;
    margin: 100px 20px 60px;
  }

  .sobre-mi-imagen img {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-redes a {
    margin: 0 10px;
  }
}
/* BLOG - ARTÍCULO */
.articulo-container {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.articulo-titulo {
  font-size: 38px;
  line-height: 1.2;
  color: #111;
  margin-bottom: 10px;
}

.articulo-fecha {
  color: #888;
  font-size: 14px;
  margin-bottom: 30px;
}

.articulo-imagen-principal img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
}

/* ÍNDICE */
.articulo-indice {
  padding: 60px 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 0;
}

.articulo-indice h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
}

.articulo-indice ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column; /* ← esto pone los items en columna */
}

.articulo-indice li {
  margin-bottom: 8px;
}

.articulo-indice a {
  color: #111;
  text-decoration: none;
  font-size: 15px;
}

.articulo-indice a:hover {
  text-decoration: underline;
}

/* CONTENIDO */
.articulo-contenido h2 {
  font-size: 28px;
  color: #111;
  margin: 40px 0 16px;
}

h2[id] {
  scroll-margin-top: 90px; /* ← agregá esto aquí abajo */
}

.articulo-contenido p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 16px;
}

.articulo-contenido ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.articulo-contenido ul li {
  color: #444;
  line-height: 1.8;
  margin-bottom: 8px;
}

.articulo-imagen-seccion {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* DESTACADO */
.articulo-destacado {
  background: #f4f4f4;
  border-left: 4px solid #3758D3;
  padding: 20px 30px;
  border-radius: 8px;
  margin: 30px 0;
}

.articulo-destacado p {
  font-size: 18px;
  margin-bottom: 12px;
}

/* FAQS */
.articulo-faqs {
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
}

/* RESPONSIVE BLOG */
@media (max-width: 768px) {
  .articulo-container {
    margin: 100px 20px 60px;
  }

  .articulo-titulo {
    font-size: 26px;
  }

  .articulo-contenido h2 {
    font-size: 22px;
  }
}
/* BLOG - PÁGINA PRINCIPAL */
.blog-header {
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.blog-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
  color: #111;
}

.blog-header p {
  color: #555;
  font-size: 18px;
  line-height: 1.6;
}

.blog-lista {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card {
  display: flex;
  gap: 30px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #3758D3;
}

.blog-card-imagen {
  width: 280px;
  min-height: 200px;
  flex-shrink: 0;
}

.blog-card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-contenido {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-fecha {
  color: #888;
  font-size: 13px;
  margin-bottom: 10px;
}

.blog-card-contenido h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111;
}

.blog-card-contenido p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-leer {
  color: #3758D3;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 768px) {
  .blog-header {
    margin: 100px 20px 30px;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card-imagen {
    width: 100%;
    height: 200px;
  }

  .blog-card-contenido {
    padding: 20px;
  }
}

.articulo-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.articulo-tabla th {
  background: #3758D3;
  color: white;
  padding: 12px 16px;
  text-align: left;
}

.articulo-tabla td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.articulo-tabla tr:nth-child(even) {
  background: #f4f4f4;
}
