/* Base Variables */
:root {
  --primary-color: #ff6b00;
  --primary-dark: #e65100;
  --secondary-color: #1e88e5;
  --secondary-dark: #0d47a1;
  --accent-color: #ffeb3b;
  --accent-dark: #fdd835;
  --text-color: #333333;
  --text-light: #ffffff;
  --text-dark: #212121;
  --background-light: #f5f5f5;
  --background-dark: #212121;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --border-radius: 0;
  --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

/* Container Extensions */
.container {
  padding: 1.5rem;
}

/* Button Styles */
.button {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed), 
              background-color var(--transition-speed),
              box-shadow var(--transition-speed);
  font-weight: bold;
  padding: 0.75rem 1.5rem;
}

.button:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-light);
}

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.button.is-outlined {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.button.is-outlined.is-inverted {
  color: var(--text-light);
  border-color: var(--text-light);
}

.button.is-outlined.is-inverted:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.button.is-large {
  font-size: 1.25rem;
  padding: 1rem 2rem;
}

/* Form Elements */
.input, .textarea, .select select {
  border-radius: var(--border-radius);
  border: 2px solid var(--text-dark);
  padding: 0.75rem;
  transition: border-color var(--transition-speed);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Card Styles */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed), 
              box-shadow var(--transition-speed);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-image {
  overflow: hidden;
  text-align: center;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .content {
  flex-grow: 1;
}

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Box Styles */
.box {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: transform var(--transition-speed);
}

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

/* Header & Navigation */
.header {
  background-color: var(--background-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background-color: transparent;
}

.navbar-item {
  color: var(--text-light);
  font-weight: bold;
  transition: color var(--transition-speed);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-light);
}

.navbar-menu.is-active {
  background-color: var(--background-dark);
}

.navbar-menu.is-active .navbar-item {
  color: var(--text-light);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}

.hero .title, 
.hero .subtitle,
.hero p {
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Productos Section */
.productos-section {
  padding: 5rem 0;
}

.producto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.producto-card .card-content {
  width: 100%;
}

.precio {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.25rem;
}

.descripcion {
  margin-bottom: 1.5rem;
}

/* Política de Devolución */
.devolucion-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.accordion {
  width: 100%;
  margin-top: 2rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 2px solid var(--text-dark);
}

.accordion-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color var(--transition-speed);
}

.accordion-header:hover {
  background-color: var(--background-light);
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
}

.accordion-item.active .accordion-content {
  padding: 1rem;
  border-top: 1px solid var(--text-dark);
}

.accordion-header .icon {
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(45deg);
}

/* Enlaces Externos */
.enlaces-section {
  padding: 5rem 0;
}

.enlace-card {
  height: 100%;
  transition: transform var(--transition-speed), 
              box-shadow var(--transition-speed);
  padding: 1.5rem;
  display: block;
  color: var(--text-color);
}

.enlace-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  color: var(--text-color);
}

.enlace-card .title {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.leer-mas {
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
  transition: transform var(--transition-speed);
}

.enlace-card:hover .leer-mas {
  transform: translateX(5px);
}

/* Testimonios Section */
.testimonios-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.testimonio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.testimonio-card .card-image {
  width: 100%;
  text-align: center;
}

.testimonio-card .card-image figure {
  margin: 0 auto;
  overflow: hidden;
}

.testimonio-card .card-image img {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  height: 0;
  padding-bottom: 100%;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Blog Section */
.blog-section {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.blog-card .card-image {
  width: 100%;
  text-align: center;
}

.blog-card .card-image figure {
  margin: 0 auto;
  overflow: hidden;
}

.blog-card .card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}

/* Case Studies Section */
.case-studies-section {
  padding: 5rem 0;
}

.case-study-content {
  padding: 2rem;
}

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

.contact-info {
  padding: 2rem;
}

.social-links a {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  font-weight: bold;
  transition: color var(--transition-speed);
}

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

.contact-form {
  padding: 2rem;
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  padding: 4rem 0 2rem;
  color: var(--text-light);
}

.footer .title,
.footer .subtitle {
  color: var(--text-light);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--text-light);
  transition: color var(--transition-speed);
}

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

.footer .social-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 33, 33, 0.9);
  color: var(--text-light);
  z-index: 9999;
  padding: 1.5rem;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-right: 2rem;
  margin-bottom: 1rem;
}

/* About, Terms, Privacy Pages */
.about-hero,
.terms-hero,
.privacy-hero,
.contact-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.terms-content,
.privacy-content {
  padding-top: 100px;
}

.mission-box,
.vision-box {
  height: 100%;
  padding: 2rem;
}

.value-card,
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.terms-block,
.privacy-block {
  margin-bottom: 3rem;
}

/* Contact Page */
.contact-info-box {
  height: 100%;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon-container {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.map-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.map-container:hover img {
  transform: scale(1.05);
}

.faq-section {
  padding: 5rem 0;
}

/* Success Page */
.success-section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message {
  padding: 3rem;
  text-align: center;
  max-width: 600px;
}

.success-icon {
  margin: 0 auto 2rem;
  max-width: 150px;
}

.newsletter-section {
  padding: 5rem 0;
}

.newsletter-box {
  padding: 3rem;
  text-align: center;
}

/* Animations */
@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.gallery-item img, 
.product-image img, 
.success-icon img,
.team-card .card-image img {
  animation: morphing 8s ease-in-out infinite;
}

/* Read More Links */
.read-more {
  display: inline-block;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-right: 20px;
  transition: transform var(--transition-speed);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-speed);
}

.read-more:hover {
  transform: translateX(5px);
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 4rem 1rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content button {
    margin-top: 1rem;
    width: 100%;
  }
  
  .navbar-menu.is-active {
    position: absolute;
    width: 100%;
    left: 0;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .gallery-item {
    padding-bottom: 75%;
  }
  
  .contact-info, 
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .column {
    margin-bottom: 2rem;
  }
  
  .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .button {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero .title {
    font-size: 1.75rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.has-text-primary {
  color: var(--primary-color) !important;
}

.has-text-secondary {
  color: var(--secondary-color) !important;
}

.has-text-accent {
  color: var(--accent-color) !important;
}

.has-background-primary {
  background-color: var(--primary-color) !important;
}

.has-background-secondary {
  background-color: var(--secondary-color) !important;
}

.has-background-accent {
  background-color: var(--accent-color) !important;
}

.is-centered-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.is-centered-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.has-equal-height {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.has-equal-height .card-content {
  flex-grow: 1;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 1.5rem !important;
}

.mb-6 {
  margin-bottom: 3rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mt-5 {
  margin-top: 1.5rem !important;
}

.mt-6 {
  margin-top: 3rem !important;
}