/* 
 * Evapora Rugs - Premium Design System 
 * Aesthetic: Gentle, Kawaii, Handmade, Premium
 */

:root {
  /* Color Palette */
  --color-primary: #f8d7d7;

  /* New Light Pink Layout Background */
  --color-primary-dark: #FDD1D0;
  /* New Darker Pink Accent */
  --color-secondary: #FCECEC;
  /* Using Primary as main background now */
  --color-accent: #FFD97D;
  --color-text-main: #5D4037;
  --color-heading: #80644A;
  /* New Warm Brown for Titles */
  --color-text-light: #8D6E63;
  --color-white: #FFFFFF;
  --color-surface: #FFFFFF;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #FCECEC 0%, #FDD1D0 100%);
  --gradient-button: linear-gradient(to right, #FDD1D0, #EBB0AF);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(93, 64, 55, 0.05);
  --shadow-md: 0 8px 24px rgba(93, 64, 55, 0.1);
  --shadow-lg: 0 16px 48px rgba(93, 64, 55, 0.15);

  /* Typography */
  --font-heading: 'Quicksand', sans-serif;
  /* Rounded, friendly */
  --font-body: 'Outfit', sans-serif;
  /* Clean, modern geometric */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Sticky Footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary-dark);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--color-primary-dark);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-main);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  /* Offset for fixed header */
  padding-bottom: 100px;
  text-align: center;
  /* background: var(--gradient-hero); REMOVED for image */
  background-image: url('assets/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
  text-align: left;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* Footer */
/* Footer */
.footer {
  background-color: var(--color-primary);
  /* Light Pink background */
  padding: 60px 0 20px;
  margin-top: auto;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  color: var(--color-text-main);
  /* Brown text */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-heading);
  /* Brown headers */
}

.footer-text {
  color: var(--color-text-light);
  padding-right: 40px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 1.5rem;
  color: var(--color-text-main);
  /* Pink icons */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(128, 100, 74, 0.1);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Mobile menu needed */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* Custom Steps Section */
.custom-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
}

.custom-steps.vertical-layout {
  grid-template-columns: 1fr;
  gap: 60px;
}

.step-card {
  background: var(--color-secondary);
  /* Light Pink Background */
  padding: 30px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: #FFF;
  /* Pop out effect */
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 2px dashed rgba(93, 64, 55, 0.1);
  padding-bottom: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-main);
}

/* Accordion Styles */
.accordion {
  margin-top: 15px;
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}

.accordion-btn {
  width: 100%;
  padding: 12px 15px;
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-main);
  transition: background 0.2s;
}

.accordion-btn:hover {
  background: var(--color-secondary);
}

.accordion-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.guidelines-grid {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guideline-item h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guideline-item.success h4 {
  color: #66BB6A;
}

.guideline-item.error h4 {
  color: #EF5350;
}

.guideline-item.adapt h4 {
  color: #3e79f7;
}

.guideline-item ul {
  padding-left: 20px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

/* Reviews Section */
.reviews-section {
  padding-bottom: 60px;
  position: relative;
}

.reviews-container {
  position: relative;
  display: flex;
  align-items: center;
}

.reviews-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  width: 100%;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Opera */
}

.reviews-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--color-primary-dark);
  border: 1px solid #eee;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.reviews-nav-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.reviews-nav-btn.prev {
  left: -50px;
}

.reviews-nav-btn.next {
  right: -50px;
}

.review-card {
  min-width: 300px;
  max-width: 300px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.review-stars {
  color: #FFB74D;
  /* Orange/Gold for stars */
  margin-bottom: 15px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* Show approx 3-4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 15px;
  display: inline-block;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.review-images {
  display: flex;
  gap: 10px;
}

.review-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #eee;
}