/* =========================================
   NAVIERA MARKETING - Estilos principales
   ========================================= */

:root {
  --primary:   #0a2342;
  --secondary: #1a6faf;
  --accent:    #f0a500;
  --accent2:   #00b4d8;
  --light:     #e8f4f8;
  --dark:      #0d1b2a;
  --text:      #2d3748;
  --gray:      #6c757d;
  --white:     #ffffff;
  --gradient:  linear-gradient(135deg, #0a2342 0%, #1a6faf 100%);
  --gradient2: linear-gradient(135deg, #f0a500 0%, #ff6b35 100%);
  --shadow:    0 8px 32px rgba(10,35,66,.18);
  --radius:    12px;
}

/* ---- Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
a { color: var(--secondary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

/* ---- Tipografía ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--primary); }
.text-accent { color: var(--accent) !important; }
.text-secondary-brand { color: var(--secondary) !important; }
.lead { font-size: 1.2rem; color: var(--gray); }

/* ---- Botones ---- */
.btn-primary-nm {
  background: var(--gradient2);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-nm:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(240,165,0,.4); color: #fff; }

.btn-secondary-nm {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary-nm:hover { background: var(--accent); color: #fff; }

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,.4); color: #fff; }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s, box-shadow .35s;
  padding: 16px 0;
}
#navbar.scrolled {
  background: rgba(10,35,66,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 8px 0;
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: -0.5px;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--accent) !important; }
.navbar-toggler { border-color: rgba(255,255,255,.5); }
.navbar-toggler-icon { filter: invert(1); }
.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  border-radius: 50px;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: #fff; color: var(--primary) !important; }
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  animation: fadeDown .2s ease;
}
.dropdown-item:hover { background: var(--light); color: var(--primary); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--gradient), url('../img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(1rem,2vw,1.2rem); margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Floating card */
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 28px;
  color: #fff;
}
.hero-stat { text-align: center; padding: 12px 0; }
.hero-stat strong { display: block; font-size: 2.2rem; color: var(--accent); font-weight: 900; }
.hero-stat span { font-size: .85rem; opacity: .8; }

/* Animated wave */
.wave-divider svg { display: block; }

/* ---- SERVICIOS ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(10,35,66,.08);
  border-bottom: 4px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient2);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: .92rem; line-height: 1.7; }
.service-link { color: var(--secondary); font-weight: 600; font-size: .9rem; margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; }
.service-link:hover { color: var(--accent); }

/* ---- PAQUETES ---- */
.pack-card {
  background: linear-gradient(145deg, #fff 0%, #f5f9ff 100%);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: 0 4px 24px rgba(10,35,66,.1);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pack-card.featured {
  background: var(--gradient);
  color: #fff;
}
.pack-card.featured h3,
.pack-card.featured p,
.pack-card.featured li { color: #fff !important; opacity: 1; }
.pack-card.featured .pack-price { color: var(--accent); }
.pack-badge { position: absolute; top: 20px; right: -28px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 40px; transform: rotate(35deg); }
.pack-icon { font-size: 2.8rem; margin-bottom: 14px; }
.pack-price { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.pack-list { list-style: none; padding: 0; margin: 16px 0; }
.pack-list li { padding: 6px 0; font-size: .92rem; display: flex; align-items: flex-start; gap: 8px; }
.pack-list li::before { content: "✓"; color: var(--accent); font-weight: 900; flex-shrink: 0; margin-top: 1px; }

/* ---- PROCESO ---- */
.process-step { text-align: center; padding: 24px; position: relative; }
.process-step::after { content: '→'; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-weight: 900; }
.process-step:last-child::after { display: none; }
.step-number { width: 60px; height: 60px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 900; margin: 0 auto 16px; box-shadow: 0 4px 20px rgba(26,111,175,.35); }

/* ---- VERTICALES ---- */
.vertical-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}
.vertical-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vertical-card:hover img { transform: scale(1.08); }
.vertical-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,66,.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.vertical-overlay h3 { color: #fff; margin-bottom: 6px; font-size: 1.1rem; }
.vertical-overlay p { color: rgba(255,255,255,.78); font-size: .85rem; }

/* ---- TESTIMONIOS ---- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(10,35,66,.08);
  border-left: 4px solid var(--accent);
  height: 100%;
}
.testimonial-stars { color: #f0a500; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-text { font-style: italic; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.testimonial-author strong { color: var(--primary); display: block; }
.testimonial-author span { color: var(--gray); font-size: .85rem; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(10,35,66,.1); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .faq-icon { transition: transform .25s; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--gray); line-height: 1.8; display: none; }
.faq-answer.open { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  background: rgba(240,165,0,.12);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(0,180,216,.1);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.78);
  padding: 60px 0 20px;
}
footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 700; }
footer a { color: rgba(255,255,255,.65); font-size: .9rem; }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
.footer-brand { font-size: 1.8rem; font-weight: 900; color: #fff; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: .9rem; line-height: 1.8; margin: 14px 0 20px; opacity: .75; }
.social-icons a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  transition: background .2s;
  margin-right: 6px;
}
.social-icons a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .82rem; }

/* ---- WA Float Button ---- */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  background: #25d366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.6); color: #fff; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: waPulse 2s infinite;
}
@keyframes waPulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 0; } }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,20 C360,60 1080,0 1440,20 L1440,60 L0,60 Z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 640px; margin: 14px auto 0; }
.breadcrumb { background: transparent; justify-content: center; margin-bottom: 16px; }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: rgba(255,255,255,.75); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- BLOG ---- */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,35,66,.08);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-tag { background: var(--light); color: var(--secondary); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; display: inline-block; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { color: var(--gray); font-size: .88rem; line-height: 1.7; }
.blog-meta { font-size: .8rem; color: var(--gray); margin-top: 14px; display: flex; gap: 14px; }

/* ---- CONTACTO ---- */
.contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-control-nm {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .95rem;
  transition: border-color .2s;
  width: 100%;
  margin-bottom: 16px;
  font-family: inherit;
}
.form-control-nm:focus { outline: none; border-color: var(--secondary); }
textarea.form-control-nm { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-info-icon { width: 46px; height: 46px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }

/* ---- EMPRESA ---- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--secondary); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-dot { width: 28px; height: 28px; background: var(--accent); border-radius: 50%; position: absolute; left: -43px; top: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; font-weight: 900; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(240,165,0,.4); }
.timeline-date { color: var(--secondary); font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.timeline-title { font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-text { color: var(--gray); font-size: .9rem; line-height: 1.7; }

/* ---- Mission/Vision cards ---- */
.mv-card {
  background: var(--gradient);
  border-radius: 18px;
  padding: 40px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.mv-card::before { content: '"'; position: absolute; top: -20px; left: 20px; font-size: 120px; color: rgba(255,255,255,.07); font-family: Georgia, serif; line-height: 1; }
.mv-card h2 { color: var(--accent); margin-bottom: 14px; }
.mv-card p { font-size: 1.1rem; line-height: 1.8; opacity: .9; }

/* ---- Animaciones de entrada ---- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: .1s; }
.fade-delay-2 { transition-delay: .2s; }
.fade-delay-3 { transition-delay: .3s; }
.fade-delay-4 { transition-delay: .4s; }

/* ---- Utilities ---- */
.bg-light-brand { background: var(--light); }
.bg-gradient-brand { background: var(--gradient); }
.divider { height: 3px; width: 60px; background: var(--gradient2); border-radius: 3px; margin: 12px 0 24px; }
.divider-center { margin: 12px auto 24px; }
.section-label { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---- Responsive fixes ---- */
@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .process-step::after { display: none; }
  .hero h1 { font-size: 2rem; }
}
