:root {
  --primary-color: #4a8fee;
  --secondary-color: #275ca8;
  --accent-color: #f1c40f;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #555;
  --white: #ffffff;
  --success-color: #2ecc71;
  --warning-color: #e74c3c;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

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

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

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

.slogan {
  font-style: italic;
  color: var(--white);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Navegación */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

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

nav a:hover {
  color: var(--accent-color);
}

nav a:hover::after {
  width: 100%;
}

.current-page::after {
  width: 100%;
  background-color: var(--accent-color);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('images/1.jpg') no-repeat center center;
  background-size: cover;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h2 {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #dab10d;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 1.5rem 2rem;
  position: relative;
  width: 50%;
  margin-bottom: 2rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-left::after {
  right: -17px;
}

.timeline-right::after {
  left: -17px;
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Blog posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 200px;
  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: 1.5rem;
}

.post-date {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.post-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-excerpt {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

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

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

/* Single post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
}

.post-title-large {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.post-meta img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.post-author {
  font-weight: 600;
}

.post-date-large {
  margin-left: auto;
}

.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-content-large {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content-large h2,
.post-content-large h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.post-content-large p {
  margin-bottom: 1.5rem;
}

.post-content-large blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* About page */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-content h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

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

.team-details {
  padding: 1.5rem;
}

.team-name {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

/* Contact page */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

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

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item svg {
  margin-right: 0.5rem;
  min-width: 24px;
  color: var(--accent-color);
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

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

.btn-submit {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #aaa;
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-family: var(--font-primary);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: var(--white);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background-color: var(--white);
  padding: 1.5rem;
  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: 1rem;
  z-index: 1000;
}

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

.cookie-text p {
  margin-bottom: 0.5rem;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.cookie-customize {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.cookie-customize:hover {
  background-color: #e0e0e0;
}

.cookie-decline {
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

.cookie-decline:hover {
  background-color: #e0e0e0;
}

/* Thank you modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--warning-color);
}

.modal-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.modal h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

/* Responsive styles */
@media (max-width: 991px) {
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 15px;
  }
  
  .timeline-left::after,
  .timeline-right::after {
    left: 15px;
  }
  
  .timeline-right {
    left: 0%;
  }
}

@media (max-width: 767px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}
