/* Estilos generales */
:root {
  --primary: #4a86e8;
  --primary-dark: #3a76d8;
  --secondary: #6b9c3e;
  --text: #333333;
  --light-text: #666666;
  --white: #ffffff;
  --light-bg: #f9f9f9;
  --border: #dddddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light-bg);
}

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

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

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}

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

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #5a8c2d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

/* Blog section */
.blog-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.post-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-image {
  height: 220px;
  overflow: hidden;
}

.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: 25px;
}

.post-date {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 10px;
  display: block;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-excerpt {
  color: var(--light-text);
  margin-bottom: 20px;
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Countdown timer */
.countdown-container {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 40px 0;
}

.countdown-title {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  min-width: 60px;
  border-radius: 5px;
  display: inline-block;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 5px;
}

/* View counter */
.view-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 15px;
}

.view-counter svg {
  width: 18px;
  height: 18px;
  fill: var(--light-text);
}

/* About page */
.about-section {
  padding: 80px 0;
}

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

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

.team-member {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin-bottom: 5px;
  color: var(--primary);
}

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

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

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

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

.social-icons a:hover svg {
  fill: white;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  transition: fill 0.3s ease;
}

/* Contact page */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  margin-right: 15px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  fill: var(--white);
  width: 24px;
  height: 24px;
}

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.contact-text p, .contact-text a {
  color: var(--light-text);
}

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

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

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

.post-header {
  text-align: center;
  margin-bottom: 50px;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--light-text);
  margin-bottom: 30px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta-item svg {
  width: 18px;
  height: 18px;
  fill: var(--light-text);
}

.featured-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 40px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.post-content-text p {
  margin-bottom: 20px;
}

.post-content-text h2, .post-content-text h3 {
  margin: 40px 0 20px;
  color: var(--primary);
}

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

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

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

.share-post {
  text-align: center;
  margin: 50px 0;
}

.share-post h3 {
  margin-bottom: 20px;
  color: var(--text);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.whatsapp {
  background-color: #25d366;
}

.share-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.share-button:hover {
  transform: translateY(-5px);
}

/* Related posts */
.related-posts {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

/* Cookies banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-content {
  flex: 1;
}

.cookie-content p {
  margin-bottom: 10px;
}

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

.cookie-btn {
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

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

.configure-btn {
  background-color: #f1f1f1;
  color: var(--text);
}

.decline-btn {
  background-color: #f1f1f1;
  color: var(--text);
}

/* Footer */
footer {
  background-color: #2a2a2a;
  color: var(--white);
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaaaaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

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

.footer-bottom p {
  color: #aaaaaa;
  font-size: 0.9rem;
}

/* Thank you modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.modal {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.modal h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 25px;
  color: var(--light-text);
}

.close-modal {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .countdown {
    flex-wrap: wrap;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}
