:root {
  --primary-color: #3a7bd5;
  --secondary-color: #4b6cb7;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text: #777;
  --bg-color: #f9f9f9;
  --light-bg: #ffffff;
  --dark-bg: #2c3e50;
  --border-color: #e0e0e0;
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

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

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

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

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

.btn-accent:hover {
  background: #ff4f4f;
}

/* Header */
.header {
  background-color: var(--light-bg);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

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

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

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

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

.nav-links li {
  margin-left: 30px;
}

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

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

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

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

.active a:after {
  width: 100%;
  background-color: var(--secondary-color);
}

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

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 90%;
  background-image: url('images/1.jpg');
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: 0;
  left: 25%;
  background-color: var(--accent-color);
}

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

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(58, 123, 213, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
}

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

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-image {
  height: 200px;
  width: 100%;
  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-date {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 10px;
}

.blog-card h3 {
  margin-bottom: 15px;
}

.blog-excerpt {
  color: var(--light-text);
  margin-bottom: 15px;
}

.blog-card .btn {
  padding: 8px 15px;
  font-size: 0.85rem;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2 {
  margin-bottom: 20px;
}

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

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Team Section */
.team-section {
  padding: 80px 0;
}

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

.team-member {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

.member-info {
  padding: 20px;
}

.member-info h3 {
  margin-bottom: 5px;
}

.member-position {
  color: var(--light-text);
  margin-bottom: 15px;
}

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

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

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

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 20px;
}

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

.contact-icon {
  margin-right: 15px;
  min-width: 25px;
  color: var(--primary-color);
}

.contact-text {
  font-size: 1rem;
}

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

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

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

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

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

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

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

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

.footer-widget h4 {
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

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

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

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

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

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

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--light-bg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  flex: 1;
}

.cookie-text h4 {
  margin-bottom: 10px;
}

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

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

.cookie-buttons button {
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

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

.accept-cookies:hover {
  background-color: var(--secondary-color);
}

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

.customize-cookies:hover, .reject-cookies:hover {
  background-color: #f0f0f0;
}

/* Slider */
.slider-container {
  position: relative;
  max-width: 100%;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 400px;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
}

.slide-content h3 {
  color: white;
  margin-bottom: 10px;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1;
}

.prev, .next {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin: 0 10px;
}

.prev:hover, .next:hover {
  background-color: var(--primary-color);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: white;
}

/* Recomendación del Día */
.daily-pick {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 50px 0;
}

.daily-pick h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.daily-pick h3 i {
  margin-right: 10px;
}

.daily-pick-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.daily-pick-item {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.daily-pick-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.daily-pick-img {
  height: 180px;
  overflow: hidden;
}

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

.daily-pick-item:hover .daily-pick-img img {
  transform: scale(1.05);
}

.daily-pick-info {
  padding: 15px;
}

.daily-pick-info h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.daily-pick-info p {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.daily-pick-info .btn {
  align-self: flex-start;
  padding: 8px 15px;
  font-size: 0.85rem;
  margin-top: auto;
}

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

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

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

.modal-header h3 {
  color: var(--primary-color);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: center;
}

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

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

/* Success Icon */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  font-size: 40px;
  color: white;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 100px 0 30px;
  background-color: #f0f4f8;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--light-text);
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item:last-child a {
  color: var(--light-text);
  pointer-events: none;
}

/* Single Blog Post */
.single-post {
  padding: 60px 0;
}

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

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--light-text);
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 5px;
}

.post-featured-img {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

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

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.post-tag {
  background-color: #f0f4f8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.post-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-share {
  margin-bottom: 40px;
}

.post-share h4 {
  margin-bottom: 15px;
}

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

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.share-button:hover {
  transform: translateY(-3px);
}

.facebook {
  background-color: #3b5998;
}

.twitter {
  background-color: #1da1f2;
}

.linkedin {
  background-color: #0077b5;
}

.pinterest {
  background-color: #bd081c;
}

.related-posts {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-posts h3 {
  margin-bottom: 30px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-image {
    width: 40%;
  }

  .about-wrapper, .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hero {
    height: auto;
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    display: none;
  }

  .features-grid, .blog-grid, .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    margin-left: 0;
    margin-top: 15px;
    flex-wrap: wrap;
  }

  .slides {
    height: 300px;
  }

  .single-post {
    padding: 40px 0;
  }

  .post-featured-img {
    height: 250px;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .features-grid, .blog-grid, .team-grid, .daily-pick-content {
    grid-template-columns: 1fr;
  }

  .slides {
    height: 250px;
  }
}
