/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.logo img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.9375rem;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease-in-out;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-image: url('../assets/images/obrafinalizada.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(0, 59, 115, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  color: var(--color-primary-dark);
}

.hero-title-highlight {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.hero-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent-green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.75rem;
}

.indicator-text {
  font-weight: 500;
  color: var(--color-text);
}

/* Brands Carousel */
.brands-section {
  padding: var(--spacing-md) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.brands-carousel {
  width: 100%;
  overflow: hidden;
}

.brands-track {
  display: flex;
  width: calc(200px * 10);
  animation: scroll 20s linear infinite;
}

.brand-item {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item h2 {
  font-size: 1.5rem;
  color: var(--color-text-light);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 5)); }
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-seal {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: var(--color-white);
  border-radius: 50%;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-left {
  text-align: left;
}

/* Editorial Features */
.features-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl) var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.editorial-card {
  position: relative;
  padding-left: var(--spacing-lg);
  border-left: 2px solid var(--color-border);
  transition: border-color var(--transition-normal);
}

.editorial-card:hover {
  border-left-color: var(--color-primary);
}

.editorial-number {
  position: absolute;
  top: -30px;
  left: 1rem;
  font-family: var(--font-secondary);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 59, 115, 0.04);
  line-height: 1;
  z-index: -1;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.editorial-card:hover .editorial-number {
  color: rgba(0, 59, 115, 0.1);
  transform: translateX(10px);
}

.editorial-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary-dark);
}

.editorial-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  border-left: 4px solid var(--color-primary);
  transition: background-color var(--transition-normal);
}

.product-card:hover {
  background-color: rgba(0, 59, 115, 0.05);
}

/* Services */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.service-item {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: var(--spacing-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 59, 115, 0.4);
  color: white;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

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

/* Reviews */
.reviews-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.rating-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.rating-stars {
  color: var(--color-accent-yellow);
  font-size: 1.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.review-card {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.review-stars {
  color: var(--color-accent-yellow);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

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

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--spacing-sm) 0;
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
  padding-bottom: var(--spacing-sm);
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--spacing-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: var(--spacing-sm);
}

.footer h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-secondary);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.map-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.footer-bottom {
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid rgb(255, 255, 255);
  font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .about-container { grid-template-columns: 1fr; }
  .about-seal { bottom: 10px; right: 10px; width: 100px; height: 100px; padding: 0.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    transition: left var(--transition-normal);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
  }

  .hero-buttons {
    flex-direction: column;
  }

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