/* Variables globales */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --background-color: #f9f9f9;
  --text-color: #333;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --success-color: #2ecc71;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header y navegación */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
}

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

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  font-size: 1.1rem;
  padding: 5px 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

/* Banner principal */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #c0392b;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sección de bienvenida multilingüe */
.welcome-multilingual {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.welcome-multilingual h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.welcome-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.welcome-language {
  background-color: white;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
}

/* Sección de blog */
.blog-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

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

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

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-content {
  padding: 20px;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.blog-excerpt {
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

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

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

/* Artículos individuales */
.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.post-meta {
  color: var(--dark-gray);
  margin-bottom: 30px;
}

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

.post-content {
  max-width: 800px;
  margin: 0 auto 60px;
}

.post-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 40px 0 20px;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

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

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

/* Página de contacto */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.contact-info h3 {
  font-family: var(--font-heading);
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

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

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.contact-text {
  line-height: 1.4;
}

.contact-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

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

.contact-form h3 {
  font-family: var(--font-heading);
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

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

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Página About */
.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-content {
  margin-bottom: 60px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.team-section {
  margin-bottom: 60px;
}

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

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

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

.team-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin-bottom: 5px;
  font-family: var(--font-heading);
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-link {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

.social-link svg {
  width: 18px;
  height: 18px;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.social-link:hover svg {
  color: white;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer-about p {
  margin-bottom: 20px;
}

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

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

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

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

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* Placa de cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h4 {
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

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

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-accept:hover {
  background-color: #27ae60;
}

.btn-settings {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.btn-settings:hover {
  background-color: #dfe4ea;
}

.btn-decline {
  background-color: var(--dark-gray);
  color: white;
}

.btn-decline:hover {
  background-color: #6c7a89;
}

/* Modal de agradecimiento */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

.modal-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.modal-text {
  margin-bottom: 25px;
}

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

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

/* Media queries */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 15px 10px;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .post-header h1 {
    font-size: 2.2rem;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
