/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
:root {
  --primary-color: #892348;
  --primary-dark: #701c3a;
  --secondary-color: #a32a56;
  --text-color: #333;
  --text-light: #6b7280;
  --bg-color: #fff;
  --bg-light: #f9fafb;
  --bg-dark: #2d0f18;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Section styling */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-align: center;
}

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

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

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

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

.btn-full {
  width: 100%;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-dark);
}

/* Header styles */
.header {
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 100;
}

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

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  background-image: url('assets/sombra.png');
  background-size: 150% auto; /* Further increased size to make background more visible */
  background-position: center top;
  background-repeat: no-repeat;
  padding: 6rem 0;
  position: relative;
  overflow: hidden; /* Ensure animated shapes don't cause scrollbars */
  background-attachment: fixed; /* Creates a parallax-like effect */
}

/* Clients Logo Carousel */
.clients-carousel {
  padding: 2rem 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.carousel-title {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.logo-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0;
  align-items: center;
  justify-content: space-between;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.logo-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.logo-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-width: 120px;
}

.logo-slide img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-slide img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(137, 35, 72, 0.05) 100%);
  z-index: 1;
}

/* Animated shapes */
.animated-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
  filter: blur(40px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(137, 35, 72, 0.15);
  top: -100px;
  right: 10%;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background-color: rgba(137, 35, 72, 0.1);
  bottom: -50px;
  left: 5%;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

/* Social proof stars */
.social-proof-stars {
  margin-bottom: 1.5rem;
}

.google-rating {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  margin-bottom: 0.5rem;
}

.google-icon {
  font-size: 1.2rem;
  color: #4285F4;
  margin-right: 0.5rem;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-right: 0.5rem;
}

.rating-stars {
  display: flex;
  align-items: center;
}

.rating-stars span {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--text-color);
}

.stars {
  display: flex;
  color: #FFC107;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* Feature tags */
.feature-tag {
  position: absolute;
  background-color: white;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.feature-tag i {
  color: var(--primary-color);
  font-size: 1rem;
}

.tag-light {
  top: 15%;
  right: -10px;
  animation-delay: 0.5s;
}

.tag-resistant {
  bottom: 20%;
  left: -10px;
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Products section */
.products {
  background-color: var(--bg-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.product-image {
  height: 200px;
  overflow: hidden;
}

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

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.75rem;
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Help section */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.help-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

.help-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.help-card h3 {
  margin-bottom: 0.75rem;
}

.help-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.showroom-card {
  margin-top: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.showroom-image {
  height: 300px;
  overflow: hidden;
}

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

.showroom-info {
  padding: 1.5rem;
}

.showroom-info h3 {
  margin-bottom: 0.75rem;
}

.showroom-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.showroom-info p i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.showroom-map {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Testimonials section */
.testimonials {
  background-color: var(--bg-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* FAQ section */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.faq-icon {
  color: var(--primary-color);
}

.faq-answer {
  padding-bottom: 1.5rem;
  display: none;
}

.faq-answer p {
  color: var(--text-light);
  margin-bottom: 0;
}

.faq-item.active .faq-icon i {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact section */
.contact {
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(137, 35, 72, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background-color: rgba(137, 35, 72, 0.08);
  bottom: -100px;
  right: 5%;
  animation: float 18s ease-in-out infinite;
}

.shape-4 {
  width: 180px;
  height: 180px;
  background-color: rgba(137, 35, 72, 0.05);
  top: -50px;
  left: 10%;
  animation: float 15s ease-in-out infinite reverse;
}

.contact-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-highlight {
  background-color: rgba(137, 35, 72, 0.08);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
  margin-bottom: 2rem;
}

.highlight-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.highlight-link:hover {
  color: var(--primary-dark);
}

.contact-form-container {
  flex: 1;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-header img {
  height: 30px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 1.5rem;
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-about p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

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

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
  color: #9ca3af;
  transition: color 0.3s;
}

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

.footer-contact ul li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #9ca3af;
}

.footer-contact i {
  color: var(--primary-color);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text, .hero-image {
    flex: none;
    width: 100%;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-info, .contact-form-container {
    flex: none;
    width: 100%;
  }
  
  .showroom-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Success indicator for adding curtains */
.add-curtain-container {
  position: relative;
}

.success-indicator {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.success-indicator i {
  color: white;
}

.success-indicator.fade-out {
  opacity: 0;
}
