/* ============================================================
   lamaroptical.com — PUBLIC SITE CSS
   Palette: Navy #0A1628 | Gold #C9A84C | White #F8F6F1
   Font: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:     #0A1628;
  --navy-mid: #122040;
  --gold:     #C9A84C;
  --gold-lt:  #E8D49A;
  --cream:    #F8F6F1;
  --gray:     #8A909A;
  --border:   #DDD9D0;
  --white:    #FFFFFF;
  --shadow:   0 8px 40px rgba(10,22,40,0.12);
  --r:        4px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--navy); line-height: 1.65; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
.display { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; font-style: italic; }
.subtitle { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.5rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.05em; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-transform: uppercase;
}
.btn-primary   { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline   { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy      { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-sm        { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ── HEADER ──────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,22,40,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem; height: 72px; max-width: 1400px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--navy);
}
.logo-text { color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; letter-spacing: 0.05em; }
.logo-text span { color: var(--gold); }

nav.main-nav { display: flex; gap: 0.25rem; margin: 0 auto; }
nav.main-nav a {
  color: rgba(255,255,255,0.75); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.5rem 1rem; border-radius: var(--r);
  transition: var(--transition);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); background: rgba(201,168,76,0.1); }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-search { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: var(--r); overflow: hidden; }
.header-search input {
  background: transparent; border: none; color: white; padding: 0.5rem 1rem;
  font-size: 0.85rem; width: 200px; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search button { background: none; border: none; color: var(--gold); padding: 0.5rem 0.75rem; cursor: pointer; }
.lang-toggle { display: flex; gap: 0.25rem; }
.lang-toggle button {
  background: none; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
  padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 2px; cursor: pointer; transition: var(--transition);
}
.lang-toggle button.active, .lang-toggle button:hover { border-color: var(--gold); color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; transition: var(--transition); }

/* ── HERO SLIDER ─────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden;
  background: var(--navy);
}
.hero-slides { height: 100%; position: relative; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 2rem; max-width: 1280px; margin: 0 auto; width: 100%;
  transform: translateY(20px); transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s; opacity: 0;
}
.hero-slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-content .subtitle { margin-bottom: 1rem; }
.hero-content h1 { color: white; max-width: 700px; margin-bottom: 1.5rem; }
.hero-content p { color: rgba(255,255,255,0.8); max-width: 500px; margin-bottom: 2.5rem; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.hero-controls {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.75rem; z-index: 10;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: none; }
.hero-dot.active { background: var(--gold); transform: scale(1.3); }
.hero-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 1.5rem; z-index: 10; }
.hero-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: white; cursor: pointer; font-size: 1.2rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ── BRANDS GRID ─────────────────────────────────────────── */
#brands { background: var(--white); }
.brands-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem;
}
.brand-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.brand-card:hover {
  box-shadow: var(--shadow); border-color: var(--gold); transform: translateY(-4px);
}
.brand-card img { height: 40px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.brand-card:hover img { filter: grayscale(0%); opacity: 1; }
.brand-card span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); font-weight: 500; }

/* ── ABOUT ───────────────────────────────────────────────── */
#nosotros { background: var(--navy); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { position: relative; border-radius: var(--r); overflow: hidden; }
.about-img::after {
  content: ''; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 2px solid var(--gold); border-radius: var(--r); z-index: -1;
}
.about-img img { border-radius: var(--r); width: 100%; height: 450px; object-fit: cover; }
.about-text .subtitle { display: block; margin-bottom: 1rem; }
.about-text h2 { color: var(--white); margin-bottom: 1.5rem; }
.about-text p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.metric { text-align: center; padding: 1.5rem; border: 1px solid rgba(201,168,76,0.3); border-radius: var(--r); }
.metric strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--gold); }
.metric span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ── CATEGORIES ──────────────────────────────────────────── */
#categorias { background: var(--cream); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cat-card {
  position: relative; border-radius: var(--r); overflow: hidden;
  height: 360px; cursor: pointer; transition: var(--transition);
}
.cat-card:hover { transform: scale(1.02); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.cat-card:hover img { transform: scale(1.05); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 60%);
}
.cat-info { position: absolute; bottom: 1.5rem; left: 1.5rem; color: white; }
.cat-info span { display: block; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 0.4rem; }
.cat-info h3 { font-size: 1.5rem; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
#testimonios { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  padding: 2rem; border: 1px solid var(--border); border-radius: var(--r);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.testimonial-card::before { content: '"'; font-family: 'Cormorant Garamond', serif; font-size: 5rem; color: var(--gold); opacity: 0.3; position: absolute; top: -0.5rem; left: 1rem; line-height: 1; }
.testimonial-text { font-style: italic; color: var(--gray); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.testimonial-author-info strong { display: block; font-size: 0.9rem; }
.testimonial-author-info span { font-size: 0.78rem; color: var(--gold); }

/* ── B2B BANNER ──────────────────────────────────────────── */
#b2b-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0; text-align: center;
  border-top: 3px solid var(--gold);
}
#b2b-banner h2 { color: var(--white); margin: 0.5rem 0 1rem; }
#b2b-banner p  { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 2.5rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
#contacto { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact-info h3 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-detail-icon { width: 42px; height: 42px; background: var(--navy); color: var(--gold); border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-map { margin-top: 2rem; border-radius: var(--r); overflow: hidden; height: 220px; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: var(--r); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.4rem; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--r);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; background: var(--cream); color: var(--navy);
  transition: var(--transition); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
textarea { resize: vertical; min-height: 120px; }
.form-feedback { display: none; padding: 0.75rem 1rem; border-radius: var(--r); font-size: 0.88rem; margin-top: 1rem; }
.form-feedback.success { background: #d4edda; color: #155724; display: block; }
.form-feedback.error   { background: #f8d7da; color: #721c24; display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem; border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-newsletter { margin-top: 1rem; display: flex; gap: 0; }
.footer-newsletter input { flex: 1; border-radius: var(--r) 0 0 var(--r); border-right: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: white; }
.footer-newsletter button { background: var(--gold); color: var(--navy); border: none; padding: 0.75rem 1rem; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; font-weight: 600; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; transition: var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 8rem 0 4rem; color: white; text-align: center; }
.page-hero h1 { color: white; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: var(--gold); }
.legal-body { padding: 4rem 0; max-width: 800px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.legal-body p, .legal-body li { font-size: 0.95rem; margin-bottom: 0.75rem; color: #444; line-height: 1.75; }
.legal-body ul { padding-left: 1.5rem; }
.legal-date { background: var(--cream); padding: 0.75rem 1rem; border-left: 3px solid var(--gold); font-size: 0.85rem; margin-bottom: 2rem; }

/* ── ALERTS / TOASTS ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--navy); color: white; padding: 1rem 1.5rem;
  border-radius: var(--r); border-left: 4px solid var(--gold);
  box-shadow: var(--shadow); font-size: 0.9rem;
  transform: translateY(100px); transition: var(--transition); opacity: 0;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .cat-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-arrows { display: none; }
}
