/* ============================================
   RotaPrint Perú – style.css
   Colores: Azul #1a2b8c | Naranja #f47920
   ============================================ */

:root {
  --ink: #1a2b8c;
  --paper: #f4f6ff;
  --accent: #f47920;
  --accent2: #f5a623;
  --gold: #f5a623;
  --mid: #4a5580;
  --light: #e8ecf8;
  --white: #ffffff;
  --dark: #0f1d6e;
  --radius: 6px;
  --shadow: 0 8px 40px rgba(26,43,140,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── TOPBAR ─── */
.topbar {
  background: #0f1d6e;
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar a { color: var(--accent2); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  box-shadow: 0 2px 20px rgba(26,43,140,0.10);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #d96810 !important; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #0f1d6e 0%, #1a2b8c 60%, #2235a8 100%);
  color: var(--white);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(244,121,32,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { padding: 80px 5% 80px 8%; position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: #d96810;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,121,32,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ─── HERO STATS ─── */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent2);
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ─── HERO FORM ─── */
.hero-form-side {
  background: var(--white);
  height: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 7%;
}
.quote-box { width: 100%; max-width: 420px; }
.quote-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.quote-box p { color: var(--mid); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #dde2f0;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.submit-btn:hover { background: #d96810; transform: translateY(-1px); }
.form-note { text-align: center; font-size: 12px; color: #aaa; margin-top: 12px; }
.form-note span { color: #25d366; font-weight: 600; }
.success-msg {
  display: none;
  background: #efffef;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: #2e7d32;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--light);
  border-top: 1px solid #dde2f0;
  border-bottom: 1px solid #dde2f0;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--mid); }
.trust-icon { font-size: 20px; }

/* ─── SECTION BASE ─── */
.section { padding: 90px 5%; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 16px;
  color: var(--ink);
}
.section-sub {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 50px;
}

/* ─── SERVICIOS ─── */
#servicios { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid #dde2f0;
  border-radius: var(--radius);
  padding: 30px 26px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-emoji { font-size: 32px; margin-bottom: 14px; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.service-desc { font-size: 13px; color: var(--mid); line-height: 1.6; }
.service-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ─── SEO KEYWORDS ─── */
.seo-section {
  background: linear-gradient(135deg, #0f1d6e 0%, #1a2b8c 100%);
  color: var(--white);
  padding: 70px 5%;
  text-align: center;
}
.seo-section h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 40px; }
.seo-section h2 span { color: var(--accent2); }
.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.keyword-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}
.keyword-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ─── PROCESO ─── */
#proceso { background: var(--paper); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 64px; height: 64px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ─── COTIZAR CTA ─── */
#cotizar {
  background: linear-gradient(135deg, #1a2b8c 0%, #0f1d6e 100%);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
#cotizar::before {
  content: 'COTIZA';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  top: -20px; right: -20px;
  pointer-events: none;
  line-height: 1;
}
.cotizar-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cotizar-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.cotizar-inner p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}
.contact-card:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.contact-card-icon { font-size: 28px; margin-bottom: 10px; }
.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.contact-card-value { font-size: 16px; font-weight: 700; color: var(--white); }

/* ─── GALERÍA / PORTAFOLIO ─── */
#portafolio { background: var(--white); }
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 20px;
  border: 2px solid #dde2f0;
  background: transparent;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--light);
  cursor: pointer;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
}
.gallery-item:hover .gallery-thumb { transform: scale(1.06); }
.gallery-emoji-placeholder { font-size: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,29,110,0.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info { color: var(--white); }
.gallery-info-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}
.gallery-info-title { font-size: 15px; font-weight: 700; }
.gallery-cta-bar { text-align: center; margin-top: 40px; }
.gallery-cta-bar p { color: var(--mid); font-size: 15px; margin-bottom: 16px; }

/* Placeholder backgrounds */
.bg-1 { background: linear-gradient(135deg, #ffe8d0, #ffd0a8); }
.bg-2 { background: linear-gradient(135deg, #e8ecff, #c8d4ff); }
.bg-3 { background: linear-gradient(135deg, #e8ffe8, #c8ffcc); }
.bg-4 { background: linear-gradient(135deg, #fff8e8, #ffedc0); }
.bg-5 { background: linear-gradient(135deg, #f0e8ff, #d8c0ff); }
.bg-6 { background: linear-gradient(135deg, #e8f8ff, #c0e8ff); }
.bg-7 { background: linear-gradient(135deg, #ffe8f0, #ffc0d8); }
.bg-8 { background: linear-gradient(135deg, #f0ffe8, #d0ffcc); }
.bg-9 { background: linear-gradient(135deg, #fff4e8, #ffdcb0); }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 700px; width: 100%; text-align: center; position: relative; }
.lightbox-box {
  background: var(--light);
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  margin-bottom: 16px;
}
.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.lightbox-cat { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.lightbox-close {
  position: absolute;
  top: -50px; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-wa {
  display: inline-block;
  background: #25d366;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.lightbox-wa:hover { background: #1ebe5a; }

/* ─── TESTIMONIOS ─── */
#testimonios { background: var(--white); }
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonio-card {
  background: var(--paper);
  border: 1px solid #dde2f0;
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.testimonio-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}
.stars { color: var(--accent2); font-size: 16px; margin-bottom: 14px; }
.testimonio-text { font-size: 14px; color: var(--mid); line-height: 1.75; margin-bottom: 20px; }
.testimonio-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 16px;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.author-role { font-size: 12px; color: var(--mid); }

/* ─── FAQ ─── */
#faq { background: var(--paper); padding: 90px 5%; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; }
.faq-item { border-bottom: 1px solid #dde2f0; padding-bottom: 24px; margin-bottom: 24px; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--ink); cursor: pointer; }
.faq-q:hover { color: var(--accent); }
.faq-a { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* ─── FOOTER ─── */
footer {
  background: #0f1d6e;
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--accent); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.footer-contact-item strong {
  color: var(--white);
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-bubble {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(26,43,140,0.15);
  max-width: 200px;
  text-align: right;
  line-height: 1.4;
  animation: fadeInUp 0.5s ease 1s both;
}
.wa-btn {
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.08); }
