/* Variables */
:root {
  --primary-color: #4e937a;
  --secondary-color: #f5b942;
  --accent-color: #e17055;
  --dark-color: #2d3436;
  --light-color: #f9f9f9;
  --gray-color: #b2bec3;
  --text-color: #333;
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark-color);
}

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

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

img {
  max-width: 100%;
  height: auto;
}

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

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 20px auto;
}

/* Header & Navigation */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

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

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

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

.nav-link {
  font-weight: 600;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -5px;
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/1.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 5px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Blog Posts */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.post-card {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.post-img {
  height: 200px;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-img img {
  transform: scale(1.1);
}

.post-content {
  padding: 20px;
}

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

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

.post-excerpt {
  margin-bottom: 15px;
  color: #666;
}

.read-more {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

/* Single Post */
.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 5px;
}

.post-meta {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.post-meta span {
  margin: 0 10px;
}

.post-content p, .post-content ul, .post-content ol {
  margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
  margin: 30px 0 15px;
}

.post-content img {
  border-radius: 5px;
  margin: 20px 0;
}

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.post-navigation a {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.post-navigation .prev:before {
  content: '←';
  margin-right: 10px;
}

.post-navigation .next:after {
  content: '→';
  margin-left: 10px;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-img img {
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.team-member {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid var(--light-color);
}

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

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

.social-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.social-links li {
  margin: 0 5px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--light-color);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--dark-color);
}

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

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

.contact-info {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.contact-info-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

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

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

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

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

.footer-column h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
}

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

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

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

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

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

.cookie-btn {
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

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

.accept-all:hover {
  background: var(--dark-color);
}

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

.customize:hover {
  background: #f5f5f5;
}

.decline {
  background: white;
  color: var(--gray-color);
  border: 1px solid var(--gray-color);
}

.decline:hover {
  background: #f5f5f5;
}

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

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 5px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

/* Personalizado para novatos */
.beginners-block {
  background: linear-gradient(to right, #fff, #f5f9f8);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.beginners-block h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.beginners-block ul {
  margin-left: 20px;
}

.beginners-block li {
  margin-bottom: 10px;
}

.beginners-cta {
  margin-top: 20px;
  text-align: center;
}

/* Personalización del scroll */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 3px solid var(--light-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background: white;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    transition: var(--transition);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 15px 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}
