/* ========================================
   Lentes & Moda Óptica — Styles
   ======================================== */

/* --- Font Face --- */
@font-face {
  font-family: 'Valentine Love';
  src: url('../logo/Valentine Love.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --primary: #E60000;
  --primary-dark: #B30000;
  --secondary: #1A1A1A;
  --accent: #F5F5F5;
  --white: #FFFFFF;
  --gray-light: #E0E0E0;
  --gray-mid: #888888;
  --font-brand: 'Valentine Love', cursive;
  --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 70px;
  --transition: 0.3s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

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

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.navbar-logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--secondary);
  position: relative;
  transition: color var(--transition);
}

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

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

.nav-links a:hover::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--accent);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.lang-toggle button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  color: var(--gray-mid);
}

.lang-toggle button.active {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: url('../fondo/fondo-lentes-y-moda.png') center/cover no-repeat;
  overflow: hidden;
  padding: 4rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(140, 0, 0, 0.7);
  z-index: 1;
}

.hero-bg-icon {
  position: absolute;
  width: 500px;
  height: 500px;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.hero-bg-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content h1 .brand-name {
  font-family: var(--font-brand);
  font-weight: normal;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-content .btn {
  margin-top: 0.5rem;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 0, 0.08);
  border-radius: 50%;
  padding: 14px;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--primary);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

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

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

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

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

.product-card .card-body {
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.product-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

/* ========================================
   WHY US
   ======================================== */
.why-us {
  padding: 5rem 0;
  background: var(--white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  padding: 18px;
}

.why-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 5rem 0;
  background: var(--accent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

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

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 0, 0, 0.08);
  border-radius: 50%;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.contact-detail-text strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.contact-detail-text a:hover {
  color: var(--primary);
}

.contact-hours {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-light);
}

.contact-hours h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-hours p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-bottom: 0.3rem;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-light);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.9rem;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--gray-mid);
  margin-bottom: 0.5rem;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

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

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--secondary);
  border-right: 0;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Mobile */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-bg-icon {
    width: 300px;
    height: 300px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .product-image {
    height: 220px;
  }
}
