@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Variables */
:root {
  --dark: #333;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(249, 145, 9, 0.679);
  color: white;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.logo {
  height: 65px;
  transition: height 0.3s ease;
  border: 3px solid black;
  border-radius: 8px;
}

header.shrink .logo {
  height: 40px;
}

header.shrink {
  padding: 2px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
nav {
  margin: 5px -70px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--dark);
}  
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1101;
  font-size: 1.5rem;
}

.menu-toggle .bar {
  display: block;
  height: 3px;
  width: 30px;
  background-color: white;
  border-radius: 2px;
  transition:all 0.3s ease;
  position: relative;
  transform-origin: center;
  margin: 3px 0;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/* Responsividad */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.533);
    padding: 30px 20px;
    transition: right 0.6s ease;
    z-index: 1000;
  }

  nav.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 26px;
    right: 12px;
    z-index: 1101;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  body.menu-abierto {
    overflow: hidden; /* Bloquea el scroll del fondo */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}
.blog-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.blog-header {
  margin-bottom: 50px;
}

.blog-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.blog-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

/* Tarjetas del Blog */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-actions {
  margin-top: auto;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.card-meta .date {
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-meta .category {
  background-color: #f97109;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.8rem;
}

.card-content h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: #222;
  line-height: 1.4;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-read {
  display: inline-block;
  padding: 10px 18px;
  background-color: #0066cc;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.btn-read:hover {
  background-color: #004999;
  transform: translateY(-2px);
}

.btn-contact {
  display: inline-block;
  padding: 10px 18px;
  background-color: #25D366;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.btn-contact:hover {
  background-color: #1da851;
  transform: translateY(-2px);
}

.btn-contact i {
  margin-right: 5px;
}

/* Preguntas Frecuentes (FAQ) */
.faq-section {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.faq-container {
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #f8f9fa;
  border: none;
  font-size: 1.1rem;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f97109;
  color: white;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  color: #444;
  font-size: 0.95rem;
  background-color: white;
}

.faq-answer ul, .faq-answer ol {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.faq-answer a {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px;
  padding-top: 0;
}

/* Modales para Artículos */
.article-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
    align-items: center;
  }

  .faq-question {
    font-size: 1rem;
  }

  /* Botón scroll to top responsive para tablets */
  .scrollToHome {
    width: 50px;
    height: 50px;
    font-size: 18px;
    line-height: 50px;
    border-radius: 18px;
    bottom: 18px;
    right: 18px;
  }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 400;
}

.redes-sociales {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.redes-sociales a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.redes-sociales a:hover {
    color: var(--primary);
    background: rgba(251, 159, 46, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 159, 46, 0.3);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 24px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}



.scrollToHome {
    border-radius: 20px;
    background: linear-gradient(135deg, #f49d32, #ff6b35);
    bottom: 20px;
    color: #ffffff;
    display: none;
    font-size: 20px;
    height: 55px;
    line-height: 55px;
    padding: 0;
    position: fixed;
    right: 20px;
    text-align: center;
    width: 55px;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(244, 157, 50, 0.4);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.scrollToHome:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ff6b35, #e8890b);
    box-shadow: 0 12px 35px rgba(244, 157, 50, 0.6);
    color: #ffffff;
}

.scrollToHome:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}





/* Footer responsivo */
@media (max-width: 768px) {
    footer {
        padding: 25px 15px;
    }
    
    footer p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .redes-sociales {
        gap: 15px;
    }
    
    .redes-sociales a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 15px;
        left: 15px;
    }
}

/* Footer para móviles pequeños */
@media (max-width: 480px) {
    footer {
        padding: 20px 10px;
    }
    
    footer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .redes-sociales {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .redes-sociales a {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 12px;
        left: 12px;
    }
}



/* Responsive para dispositivos muy pequeños */
@media (max-width: 480px) {
  /* Botón scroll to top responsive */
  .scrollToHome {
    width: 45px;
    height: 45px;
    font-size: 16px;
    line-height: 45px;
    border-radius: 15px;
    bottom: 15px;
    right: 15px;
  }

  .scrollToHome:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

