:root {
  --primary-color: #4a6fa0;
  --secondary-color: #f0a868;
  --text-color: #333333;
  --light-bg: #ffffff;
  --light-accent: #f4f4f4;
  --dark-bg: #202933;
  --dark-accent: #2d3748;
  --dark-text: #e2e8f0;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

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

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

.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .card,
.dark-mode .form-container {
  background-color: var(--dark-accent);
  color: var(--dark-text);
}

.dark-mode a {
  color: var(--secondary-color);
}

.dark-mode input,
.dark-mode textarea {
  background-color: #3a4556;
  color: var(--dark-text);
  border: 1px solid #4a5568;
}

.dark-mode .btn-primary {
  background-color: var(--secondary-color);
  color: var(--dark-accent);
}

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

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

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

/* Navegación */
.navbar {
  background-color: var(--light-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.logo {
  font-family: var(--header-font);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

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

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

.nav-item {
  margin-left: 25px;
}

.nav-item a {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: rgba(74, 111, 160, 0.1);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(74, 111, 160, 0.1) 0%, rgba(74, 111, 160, 0.2) 100%);
  text-align: center;
  margin-bottom: 60px;
  transition: var(--transition);
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #3a5b87;
  color: white;
}

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

.btn-secondary:hover {
  background-color: #e89b51;
  color: white;
}

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

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

/* Secciones */
section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--header-font);
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

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

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

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-excerpt {
  color: #666;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #888;
}

/* Blog */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  margin-bottom: 50px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 40px;
}

.blog-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

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

.post-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.post-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.post-meta svg {
  margin-right: 5px;
  height: 16px;
  width: 16px;
}

.post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.post-content {
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

/* Sobre Nosotros */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--primary-color);
}

.team-member h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.team-member p {
  color: #666;
  margin-bottom: 10px;
}

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

.social-link {
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

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

/* Contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info {
  padding: 30px;
}

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

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

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: #666;
}

.form-container {
  background-color: var(--light-accent);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

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

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

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 160, 0.2);
}

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

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-logo {
  font-family: var(--header-font);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

.footer-heading {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

.footer-links a {
  color: #e2e8f0;
  transition: var(--transition);
}

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

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

.newsletter-form {
  display: flex;
}

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

.newsletter-btn {
  padding: 0 15px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: #e89b51;
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

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

.footer-social a:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.dark-mode .cookie-banner {
  background-color: var(--dark-accent);
  color: var(--dark-text);
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-text h3 {
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

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

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

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

.customize {
  background-color: #eee;
  color: #333;
}

.reject {
  background-color: transparent;
  border: 1px solid #ccc;
  color: #666;
}

.close-cookie {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
}

/* Thank You Modal */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.thank-you-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.dark-mode .modal-content {
  background-color: var(--dark-accent);
  color: var(--dark-text);
}

.thank-you-modal.active .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

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

.close-modal {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  background-color: #3a5b87;
}

/* Admin iframe */
.admin-preview {
  margin: 50px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.admin-preview h2 {
  text-align: center;
  margin-bottom: 20px;
}

.admin-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .navbar-container {
    position: relative;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--light-bg);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 100;
  }
  
  .dark-mode .nav-links {
    background-color: var(--dark-accent);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .contact-container {
    gap: 30px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .team-container {
    grid-template-columns: 1fr;
  }
  
  .post-image {
    height: 300px;
  }
}
