/* ========================================
   Optica Amiga - Professional Optical Store
   Modern CSS Stylesheet
   Optimized for Google Ads
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1E5F8E;
  --primary-dark: #164B6F;
  --secondary: #2C3E50;
  --accent: #F4A261;
  --light: #F8F9FA;
  --dark: #1A1A2E;
  --gray: #6C757D;
  --white: #FFFFFF;
  --success: #28A745;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.navbar.scrolled .navbar-brand {
  color: var(--primary);
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  font-weight: 500;
  color: var(--white) !important;
  margin: 0 0.5rem;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--dark) !important;
}

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

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

.btn-lang {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.navbar.scrolled .btn-lang {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--white);
  transition: var(--transition);
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(30,95,142,0.9) 0%, rgba(22,75,111,0.95) 100%),
              url('../images/hero-optica.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(244,162,97,0.2);
  color: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  padding: 4rem 0;
  background: var(--light);
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.stat-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.8rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  color: var(--gray);
  font-weight: 500;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: rgba(30,95,142,0.1);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
  padding: 5rem 0;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  padding: 5rem 0;
  background: var(--light);
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: 5rem 0;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-desc {
  color: var(--gray);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--light);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn-outline-custom {
  border-color: var(--white);
  color: var(--white);
}

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

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, rgba(30,95,142,0.9) 0%, rgba(22,75,111,0.95) 100%),
              url('../images/hero-optica.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
  padding: 5rem 0;
}

.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.value-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  padding: 5rem 0;
}

.contact-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: rgba(30,95,142,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form .form-control {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,95,142,0.1);
}

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

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-desc {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

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

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

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  opacity: 0.7;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow);
  }
  
  .navbar-collapse .nav-link {
    color: var(--dark) !important;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
}
