/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #000000;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --bg-dark: #000000;
  --border-color: #e1e1e1;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul,
ol {
  list-style-position: inside;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo img {
  height: 50px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-list li {
  margin-left: 30px;
}

/* Modificar el estilo del menú para letras blancas y más grandes */
.main-nav .nav-list a,
.header--nav-list-item button span,
.header--nav-list-item a {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Cambiar el color de la barra de hover a azul */
.main-nav .nav-list a:after,
.header--nav a:after {
  background-color: #adcbfa;
}

.main-nav .nav-list a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.main-nav .nav-list a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.main-nav .nav-list a:hover:after,
.main-nav .nav-list a.active:after {
  width: 100%;
}

.main-nav .nav-list a.btn-primary {
  padding: 10px 20px;
}

.main-nav .nav-list a.btn-primary:after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 15px;
}

.mobile-nav-list a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
}

.mobile-nav-list a.active {
  color: var(--accent-color);
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--bg-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs li {
  position: relative;
  padding-right: 25px;
  margin-right: 15px;
  color: var(--text-lighter);
  font-size: 14px;
}

.breadcrumbs li:after {
  content: "/";
  position: absolute;
  right: 0;
}

.breadcrumbs li:last-child {
  padding-right: 0;
  margin-right: 0;
  color: var(--text-light);
}

.breadcrumbs li:last-child:after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--accent-color);
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Blog Post */
.blog-post {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.featured-image {
  height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
}

.post-author,
.post-date,
.post-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.post-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-title {
  font-size: 32px;
  line-height: 1.3;
  color: var(--primary-color);
  padding: 30px 30px 20px;
}

.post-content {
  padding: 0 30px 30px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin: 40px 0 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.info-box {
  display: flex;
  background-color: #e8f4fd;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-icon {
  margin-right: 15px;
  color: var(--primary-color);
}

.info-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.quote-box {
  background-color: var(--bg-light);
  padding: 30px;
  margin: 30px 0;
  border-radius: var(--border-radius);
  position: relative;
}

.quote-box blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
}

.quote-box blockquote:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-color);
}

.quote-box cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--text-light);
  text-align: right;
}

.cta-box {
  background-color: var(--primary-color);
  color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  margin: 40px 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.cta-box p {
  margin-bottom: 20px;
}

.cta-box .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-box .btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

.share-post {
  display: flex;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.share-post span {
  margin-right: 15px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-color);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Sidebar */
.sidebar-widget {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Contact Form Widget */
.contact-form-widget {
  background-color: var(--primary-color);
  color: white;
}

.contact-form-widget h3 {
  color: white;
}

.contact-form-widget h3:after {
  background-color: white;
}

.contact-form-widget p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Table of Contents Widget */
.toc-widget ul {
  list-style: none;
}

.toc-widget li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.toc-widget li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.toc-widget a {
  color: var(--text-color);
  transition: var(--transition);
}

.toc-widget a:hover {
  color: var(--accent-color);
}

/* Related Posts Widget */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-post {
  display: flex;
  gap: 15px;
}

.related-post-image {
  width: 80px;
  height: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
}

.related-post-content .post-date {
  font-size: 12px;
  color: var(--text-lighter);
}

/* Services Widget */
.services-list {
  list-style: none;
}

.services-list li {
  margin-bottom: 12px;
}

.services-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.services-list a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-widget p {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.footer-bottom p {
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  list-style: none;
}

.footer-bottom-links li {
  margin-left: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
  color: var(--accent-color);
}

/* Help Button */
.help-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

/* Actualizar los botones con la nueva paleta de colores */
.btn-primary,
.btn.btn_block,
.header--nav-list-item button {
  background-color: #ffffff;
  color: rgb(0, 0, 2);
  transition: var(--transition);
}

.btn-primary:hover,
.btn.btn_block:hover,
.header--nav-list-item button:hover {
  background-color: #ffffff;
  color: #232323;
  transform: translateY(-2px);
}

/* Asegurar que los enlaces dentro de los botones también sean blancos */
.header--nav-list-item a,
.header--nav-list-item button a {
  color: white;
}

.header--nav-list-item a:hover,
.header--nav-list-item button:hover a {
  color: #05206a;
}

/* Estilo para el botón de ayuda */
.help-button a {
  background-color: #ffffff;
  color: rgb(7, 0, 102);
}

.help-button a:hover {
  background-color: #adcbfa;
  color: #05206a;
}

.help-button a {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 15px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.help-button a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.help-button span {
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .post-title {
    font-size: 28px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-bottom-links li {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 0;
  }

  .logo img {
    height: 40px;
  }

  .featured-image {
    height: 250px;
  }

  .post-title {
    font-size: 24px;
    padding: 20px 20px 10px;
  }

  .post-content {
    padding: 0 20px 20px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .help-button {
    bottom: 20px;
    right: 20px;
  }

  .help-button a {
    padding: 12px 15px;
  }

  .help-button span {
    display: none;
  }
}

