/* Variables de color para modo claro */
:root {
  --primary-color: #5e35b1;
  --primary-hover: #4527a0;
  --secondary-color: #7e57c2;
  --accent-color: #b39ddb;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-alt: #f5f5f7;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --header-height: 80px;
  --footer-background: #212121;
  --footer-text: #f5f5f7;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Variables para modo oscuro */
body.dark-theme {
  --primary-color: #7e57c2;
  --primary-hover: #9575cd;
  --secondary-color: #5e35b1;
  --accent-color: #d1c4e9;
  --text-color: #f5f5f7;
  --text-light: #bdbdbd;
  --background-color: #121212;
  --background-alt: #1e1e1e;
  --border-color: #333333;
  --success-color: #66bb6a;
  --warning-color: #ffb74d;
  --error-color: #e57373;
  --footer-background: #0a0a0a;
  --footer-text: #f5f5f7;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: var(--transition);
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(94, 53, 177, 0.3);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn.tertiary {
  background-color: transparent;
  color: var(--text-color);
  text-decoration: underline;
}

.btn.tertiary:hover {
  color: var(--primary-color);
}

/* Estilos de Header */
header {
  background-color: var(--background-color);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  cursor: pointer;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-alt);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--accent-color);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu span {
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--background-alt);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card svg {
  width: 30px;
  height: 30px;
}

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

/* Latest Posts Section */
.latest-posts {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.latest-posts h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.post-card {
  background-color: var(--background-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.post-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

.center {
  text-align: center;
  margin-top: 20px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--background-alt);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-card .quote {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.testimonial-card .quote svg {
  width: 30px;
  height: 30px;
  opacity: 0.3;
}

.testimonial-card p {
  margin-bottom: 20px;
  font-style: italic;
}

.client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.client span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.cta .btn.primary {
  background-color: white;
  color: var(--primary-color);
}

.cta .btn.primary:hover {
  background-color: var(--background-alt);
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.newsletter-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-content h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.newsletter-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  background-color: var(--background-color);
  color: var(--text-color);
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

/* Footer Styles */
footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about img {
  width: 120px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.footer-about p {
  color: var(--text-light);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}

.footer-links li,
.footer-services li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
  color: var(--text-light);
}

.footer-links a:hover,
.footer-services a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--text-light);
}

.footer-contact i {
  margin-right: 10px;
  margin-top: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: white;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  z-index: 1000;
}

.cookie-banner p {
  margin-bottom: 0;
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner a {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* User Letter */
.user-letter {
  position: fixed;
  right: -400px;
  bottom: 30px;
  width: 350px;
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: right 0.4s ease;
  z-index: 900;
}

.user-letter.show {
  right: 30px;
}

.letter-content {
  padding: 25px;
}

.letter-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.letter-content p {
  margin-bottom: 15px;
}

.letter-content button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}

.letter-content button:hover {
  background-color: var(--primary-hover);
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
  color: white;
}

/* About Page */
.about-intro {
  padding: 80px 0;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 15px;
  box-shadow: var(--box-shadow);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-text {
  color: var(--text-light);
}

.our-values {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.value-card .icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card svg {
  width: 40px;
  height: 40px;
}

.team {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--background-alt);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card h3, 
.team-card p {
  padding: 0 20px;
}

.team-card h3 {
  margin-top: 20px;
  margin-bottom: 5px;
}

.team-card p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card .social-icons {
  margin: 15px 20px 20px;
  justify-content: flex-start;
}

.our-story {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.story-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.story-image {
  flex: 1;
}

.story-image img {
  border-radius: 15px;
  box-shadow: var(--box-shadow);
}

.story-text {
  flex: 1;
}

/* Blog Page */
.blog-intro {
  padding: 60px 0 30px;
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-box form {
  display: flex;
  position: relative;
}

.search-box input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  background-color: var(--background-color);
  color: var(--text-color);
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

.search-box svg {
  width: 20px;
  height: 20px;
}

.categories {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  justify-content: center;
}

.categories a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.categories a:hover,
.categories a.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.blog-posts {
  padding: 30px 0 80px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pagination a.next {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

.pagination a.next i {
  margin-left: 5px;
}

.pagination a.active,
.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Services Page */
.services-intro {
  padding: 60px 0;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service {
  padding: 80px 0;
}

.service.alt {
  background-color: var(--background-alt);
}

.service-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.service-image {
  flex: 1;
}

.service-image img {
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  width: 100%;
}

.service-details {
  flex: 1;
}

.service-features {
  list-style: none;
  margin: 20px 0 30px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.service-features i {
  color: var(--success-color);
  margin-right: 15px;
  margin-top: 5px;
}

.faq {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.faq-grid {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}

.faq-item {
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 20px;
}

/* Contact Page */
.contact-intro {
  padding: 60px 0 30px;
}

.contact-content {
  padding: 30px 0 80px;
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.info-items {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-item .icon {
  width: 60px;
  height: 60px;
  background-color: var(--background-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.info-item svg {
  width: 30px;
  height: 30px;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.social-contact {
  margin-top: 40px;
}

.social-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-form-container {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group-inline {
  display: flex;
  gap: 20px;
}

.form-group-inline .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group .required {
  color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(94, 53, 177, 0.2);
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group.consent-checkbox input {
  width: auto;
  margin-top: 5px;
}

.form-actions {
  margin-top: 30px;
}

.map-section {
  padding: 0 0 80px;
}

.map-container {
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-top: 30px;
}

.map-container iframe {
  border: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
}

.modal-content {
  background-color: var(--background-color);
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.checkmark {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.checkmark-circle {
  stroke: var(--success-color);
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--success-color);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Blog Post Page */
.blog-post {
  padding: 80px 0;
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: 2.8rem;
  margin: 20px 0 15px;
}

.post-featured-image {
  margin-top: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-intro {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.post-content h2 {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.post-content h3 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.post-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 30px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  background-color: var(--background-alt);
  font-style: italic;
}

.content-box {
  background-color: var(--background-alt);
  padding: 25px;
  border-radius: 15px;
  margin: 40px 0;
}

.content-box h4 {
  color: var(--primary-color);
  margin-top: 0;
}

.content-box p,
.content-box ul,
.content-box ol {
  margin-bottom: 0;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0;
  padding: 25px;
  background-color: var(--background-alt);
  border-radius: 15px;
}

.author-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 5px;
  margin-top: 0;
}

.author-info h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  gap: 20px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-tags span {
  color: var(--text-light);
}

.post-tags a {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--background-alt);
  border-radius: 5px;
  font-size: 0.9rem;
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.social-share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-share span {
  color: var(--text-light);
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--background-alt);
  border-radius: 50%;
  transition: var(--transition);
}

.social-share a:hover {
  background-color: var(--primary-color);
  color: white;
}

.social-share svg {
  width: 18px;
  height: 18px;
}

.related-posts {
  margin: 80px 0 50px;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.related-post-card {
  background-color: var(--background-alt);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.related-post-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post-card h4 {
  padding: 15px 15px 5px;
  font-size: 1rem;
  line-height: 1.4;
}

.related-post-card .post-date {
  padding: 0 15px 15px;
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.comments-section {
  margin: 80px 0 0;
}

.comments-section > h3 {
  margin-bottom: 30px;
}

.comment {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.comment.reply {
  margin-left: 50px;
  padding-left: 20px;
  border-left: 3px solid var(--primary-color);
}

.comment-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.comment-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.comment-content p {
  margin-bottom: 15px;
}

.reply-btn {
  background-color: var(--background-alt);
  color: var(--text-color);
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.reply-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.comment-form {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--background-alt);
  border-radius: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container,
  .about-content,
  .story-content,
  .service-content {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image,
  .about-text,
  .about-image,
  .story-text,
  .story-image,
  .service-details,
  .service-image {
    flex: none;
    width: 100%;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .about-image,
  .story-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .service:nth-child(even) .service-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-info,
  .contact-form-container {
    flex: none;
    width: 100%;
  }
  
  .contact-info {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    background-color: var(--background-color);
    padding: 30px 0;
    gap: 20px;
    transition: var(--transition);
    z-index: 1000;
    align-items: center;
    justify-content: flex-start;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .mobile-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .features-grid,
  .posts-grid,
  .testimonial-slider,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-inline {
    flex-direction: column;
    gap: 0;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions button {
    width: 100%;
  }
  
  .post-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-letter {
    width: 85%;
    right: -100%;
  }
  
  .user-letter.show {
    right: 7.5%;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 60px;
  }
  
  .logo img {
    height: 40px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .feature-card,
  .value-card,
  .team-card {
    padding: 20px;
  }
  
  .client img {
    width: 40px;
    height: 40px;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 20% auto;
  }
  
  .comment.reply {
    margin-left: 20px;
  }
  
  .comment-form {
    padding: 20px;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-intro {
    font-size: 1.1rem;
  }
  
  .cookie-banner p {
    font-size: 0.9rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.feature-card,
.post-card,
.testimonial-card,
.value-card,
.team-card {
  animation: fadeIn 0.5s ease-in-out;
}

/* Estilos para modo de impresión */
@media print {
  header,
  footer,
  .cookie-banner,
  .user-letter,
  .cta,
  .newsletter,
  .related-posts,
  .comments-section,
  .theme-toggle,
  .mobile-menu {
    display: none !important;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .post-content {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .post-content a {
    text-decoration: underline;
    color: black;
  }
  
  .post-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  
  p, li {
    page-break-inside: avoid;
  }
}
