:root {
  --primary-color: #3a6ea5;
  --secondary-color: #c0d6df;
  --accent-color: #ff9a3c;
  --text-color: #333333;
  --light-bg: #f6f6f6;
  --white: #ffffff;
  --footer-bg: #2c3e50;
  --footer-text: #ecf0f1;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

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

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

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.1rem;
}

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

/* Menú de hamburguesa para móviles */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
  background-image: linear-gradient(rgba(58, 110, 165, 0.9), rgba(58, 110, 165, 0.9)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e58a32;
  transform: translateY(-3px);
}

/* Main Content */
main {
  padding: 2rem 0;
}

.main-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.post-excerpt {
  margin-bottom: 1.2rem;
  color: var(--text-color);
}

.post-meta {
  display: flex;
  align-items: center;
  color: #777;
  font-size: 0.9rem;
}

.post-meta svg {
  width: 1rem;
  margin-right: 0.4rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.widget-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* Tip of the day */
.tip-of-day {
  background-color: var(--secondary-color);
  border-left: 5px solid var(--accent-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Checklist */
.checklist {
  margin-top: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.checklist-item svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-right: 10px;
  margin-top: 3px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-widget h4 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.contact-info {
  list-style: none;
  margin-bottom: 1.5rem;
}

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

.contact-info svg {
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--accent-color);
}

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

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

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

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

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

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

.cookie-text {
  flex: 1;
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

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

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

.cookie-btn-customize {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

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

.submit-btn {
  justify-self: start;
  margin-top: 1rem;
}

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

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

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Full blog post styles */
.blog-post {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.post-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.post-meta-full {
  display: flex;
  align-items: center;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.post-meta-full svg {
  margin-right: 0.4rem;
}

.post-featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

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

.post-content-full h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.post-content-full ul, .post-content-full ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content-full li {
  margin-bottom: 0.5rem;
}

.post-content-full blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  margin: 1.5rem 0;
  font-style: italic;
}

.post-content-full img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

/* About Page */
.about-section {
  padding: 2rem 0;
}

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

.about-intro h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

.team-info {
  padding: 1.5rem;
}

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

.team-info p:first-of-type {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

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

.team-social a {
  color: #777;
  transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .cookie-consent {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}
