/* ============================================
   MASTER SEGUROS - Main Stylesheet
   Author: Master Corredores de Seguros S.A.C
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #E0174E;
  --primary-dark: #B01040;
  --secondary: #C8D400;
  --secondary-dark: #a0aa00;
  --accent: #8B1A6B;
  --text-dark: #1a1a2e;
  --text-light: #6c757d;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #E0174E 0%, #8B1A6B 100%);
  --gradient-secondary: linear-gradient(135deg, #C8D400 0%, #a0aa00 100%);
  --shadow-sm: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

/* ---- Page Loader ---- */
#page-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-inner {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 0%; transform: translateX(0); }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ---- Utility ---- */
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-secondary { background: var(--gradient-secondary) !important; }
.text-primary-custom { color: var(--primary) !important; }
.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(224, 23, 78, 0.35);
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 23, 78, 0.5);
  color: var(--white);
}

.btn-secondary-custom {
  background: var(--gradient-secondary);
  color: var(--text-dark);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(200, 212, 0, 0.4);
  cursor: pointer;
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 212, 0, 0.6);
  color: var(--text-dark);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

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

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #128C7E;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ---- Navbar ---- */
.navbar-master {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-master.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

.navbar-master .navbar-brand img {
  height: 52px;
  transition: var(--transition);
}

.navbar-master.scrolled .navbar-brand img {
  height: 44px;
}

.navbar-master .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-master .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-master .nav-link:hover::after,
.navbar-master .nav-link.active::after {
  width: 60%;
}

.navbar-master .nav-link:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.toggler-bar {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ---- Hero Section ---- */
#hero {
  min-height: 100vh;
  padding-top: 80px;
  background: linear-gradient(135deg, #fff 0%, #fff5f7 40%, #fdfffe 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-bg-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.hero-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224, 23, 78, 0.08);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(224, 23, 78, 0.15);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatars .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.hero-trust-avatars .avatar:first-child { margin-left: 0; }

.hero-trust-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.hero-trust-text strong {
  color: var(--text-dark);
  display: block;
}

.hero-image-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-card-floating {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-card-floating.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-card-floating.card-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-card-text { font-size: 0.8rem; }
.hero-card-text strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.hero-card-text span { color: var(--text-light); }

/* ---- Trust/Clients Bar ---- */
#clients {
  background: var(--text-dark);
  padding: 24px 0;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: scroll-left 25s linear infinite;
  width: max-content;
}

.clients-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.client-item i {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* ---- KPI Section ---- */
#kpis {
  background: var(--gradient-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#kpis::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.kpi-card {
  text-align: center;
  color: white;
  padding: 20px;
}

.kpi-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
}

.kpi-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--secondary);
}

.kpi-label {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 500;
}

.kpi-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* ---- Services Section ---- */
#services {
  background: var(--light-bg);
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---- Insurers Section ---- */
#insurers {
  background: white;
}

.insurer-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.insurer-card:hover {
  background: white;
  border-color: rgba(224, 23, 78, 0.15);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.insurer-card img {
  max-height: 45px;
  max-width: 100%;
  transition: var(--transition);
  object-fit: contain;
}

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

.insurer-placeholder {
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* ---- Testimonials ---- */
#testimonials {
  background: var(--light-bg);
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.stars {
  color: #FFC107;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* ---- Contact Section ---- */
#contact {
  background: white;
}

.contact-info-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
  height: 100%;
}

.contact-info-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-info-card p {
  opacity: 0.85;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item-text strong {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-info-item-text span {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-social-link:hover {
  background: rgba(255,255,255,0.3);
  color: white;
  transform: translateY(-2px);
}

.contact-form-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.form-group-custom {
  margin-bottom: 20px;
}

.form-label-custom {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(224, 23, 78, 0.08);
}

.form-control-custom::placeholder {
  color: #adb5bd;
}

select.form-control-custom {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* ---- Map ---- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* ---- WhatsApp Floating Button ---- */
#whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.whatsapp-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
  color: white;
}

.whatsapp-pulse {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.whatsapp-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.whatsapp-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px 10px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.whatsapp-option-btn:hover {
  background: #25D366;
  color: white;
  transform: translateX(-4px);
}

.whatsapp-option-btn i {
  color: #25D366;
  font-size: 1.2rem;
}

.whatsapp-option-btn:hover i {
  color: white;
}

/* ---- Footer ---- */
#footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 70px;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--secondary);
  text-decoration: none;
}

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---- Back to top ---- */
#back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ---- Toasts/Alerts ---- */
.toast-custom {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 99999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 340px;
  border-left: 4px solid var(--primary);
}

.toast-custom.show {
  transform: translateX(0);
}

.toast-custom.success { border-left-color: #25D366; }
.toast-custom.error { border-left-color: var(--primary); }

.toast-icon { font-size: 1.5rem; }
.toast-message { font-size: 0.9rem; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-md);
  }

  .hero-card-floating {
    display: none;
  }

  .hero-image-wrapper {
    margin-top: 40px;
    text-align: center;
  }

  .kpi-divider { display: none; }

  .contact-info-card,
  .contact-form-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
    justify-content: center;
  }

  #whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .kpi-value {
    font-size: 2rem;
  }
}

/* ============================================================
   NAVBAR v2 — CTA always visible
   ============================================================ */
.navbar-master .navbar-desktop { flex: 1; }

.btn-sm-nav {
  padding: 10px 18px !important;
  font-size: 0.82rem !important;
}

.navbar-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 0 solid rgba(0,0,0,0.06);
}

.navbar-mobile-menu.open {
  max-height: 400px;
  border-top-width: 1px;
}

.navbar-mobile-menu .nav-link {
  display: block;
  padding: 10px 4px;
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.hero-slide.active { display: block; }

.hero-slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224,23,78,0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Hero video */
.hero-video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ============================================================
   WHATSAPP CHAT WIDGET
   ============================================================ */
#wa-chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Trigger button */
.wa-chat-trigger {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}

.wa-chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Chat Panel */
.wa-chat-panel {
  width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, visibility 0.3s;
}

.wa-chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Panel header */
.wa-chat-header {
  background: #25D366;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-chat-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.wa-chat-header-text { flex: 1; }
.wa-chat-header-text strong { display: block; color: #fff; font-size: .95rem; }
.wa-chat-header-text span   { color: rgba(255,255,255,.8); font-size: .78rem; }

.wa-chat-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.wa-chat-close:hover { background: rgba(255,255,255,0.3); }

/* Panel body — agent options */
.wa-chat-body { padding: 12px 0; }

.wa-chat-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.wa-chat-option:last-child { border-bottom: none; }

.wa-chat-option:hover { background: #f7fff9; }

.wa-chat-option-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #555;
  flex-shrink: 0;
}

.wa-chat-option-info { flex: 1; }
.wa-chat-option-info strong { display: block; color: #111; font-size: .9rem; font-weight: 700; }
.wa-chat-option-info span   { color: #888; font-size: .78rem; }

.wa-chat-option-arrow {
  color: #25D366;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Panel footer */
.wa-chat-footer {
  padding: 10px 18px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  font-size: .75rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  #wa-chat-widget { bottom: 16px; right: 16px; }
  .wa-chat-panel  { width: calc(100vw - 32px); }
}

/* ============================================================
   PROMOTIONS SECTION
   ============================================================ */
.promo-card{
  background:#fff;border-radius:var(--radius-lg);
  overflow:hidden;border:1px solid rgba(0,0,0,.06);
  transition:var(--transition);height:100%;
  display:flex;flex-direction:column;
  position:relative;
}
.promo-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);}

.promo-badge{
  position:absolute;top:14px;right:14px;z-index:2;
  background:var(--gradient-primary);color:#fff;
  font-size:.75rem;font-weight:800;
  padding:5px 14px;border-radius:50px;
  letter-spacing:.5px;text-transform:uppercase;
  box-shadow:0 3px 10px rgba(224,23,78,.35);
}

.promo-card img{
  width:100%;height:200px;object-fit:cover;
  display:block;transition:var(--transition);
}
.promo-card:hover img{transform:scale(1.03);}

.promo-img-placeholder{
  width:100%;height:200px;
  background:var(--gradient-primary);
  display:flex;align-items:center;justify-content:center;
  font-size:3.5rem;color:rgba(255,255,255,.5);
}

.promo-body{padding:22px;flex:1;display:flex;flex-direction:column;}
.promo-body h3{font-size:1.05rem;font-weight:800;margin-bottom:8px;color:var(--text-dark);}
.promo-body p{font-size:.86rem;color:var(--text-light);line-height:1.7;margin-bottom:18px;flex:1;}

.btn-promo{
  background:var(--gradient-primary);color:#fff;
  border:none;padding:11px 22px;border-radius:50px;
  font-weight:700;font-size:.85rem;
  display:inline-flex;align-items:center;gap:7px;
  text-decoration:none;transition:var(--transition);
  align-self:flex-start;
  box-shadow:0 4px 15px rgba(224,23,78,.25);
}
.btn-promo:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(224,23,78,.4);color:#fff;}

/* ============================================================
   PAGE VIEWER (page.php)
   ============================================================ */
.page-hero{
  background:var(--gradient-primary);
  padding:100px 0 60px;
  text-align:center;
  color:#fff;
}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:900;color:#fff;margin-bottom:.75rem;}
.page-hero p{color:rgba(255,255,255,.8);font-size:1.05rem;max-width:560px;margin:0 auto;}

.page-content{
  padding:70px 0;
  max-width:820px;
  margin:0 auto;
}
.page-content p{
  font-size:1.02rem;color:var(--text-mid,#334155);
  line-height:1.9;margin-bottom:1.4rem;
}
.page-image-box{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  margin:40px auto;
  max-width:680px;
}
.page-image-box img{width:100%;height:auto;display:block;}

/* ---- Service details button + modals ---- */
.service-card { display: flex; flex-direction: column; }
.service-card > .btn-service-details,
.service-card > p + .btn-whatsapp,
.service-card > ul + .btn-whatsapp { margin-top: auto; }

.btn-service-details {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(224, 23, 78, 0.06);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-service-details:hover,
.btn-service-details:focus-visible {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 23, 78, 0.3);
  outline: none;
}

.svc-modal .modal-content,
.site-popup .modal-content { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.svc-modal .modal-header { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 20px 28px; }
.svc-modal .modal-header .service-icon-wrapper { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 14px; flex-shrink: 0; }
.svc-modal .modal-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.svc-modal .modal-body { padding: 24px 28px; }
.svc-modal .modal-footer { border-top: 1px solid rgba(0,0,0,0.06); padding: 16px 28px; }
.svc-modal .modal-footer .btn-whatsapp { width: auto; }

.rich-text p { color: var(--text-light); font-size: 0.93rem; line-height: 1.75; margin-bottom: 14px; }
.rich-text h4 { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); margin: 22px 0 10px; }
.rich-text h4:first-child { margin-top: 0; }
.rich-text ul { list-style: none; padding: 0; margin: 0 0 16px; }
.rich-text li { position: relative; padding: 5px 0 5px 20px; font-size: 0.92rem; line-height: 1.65; color: var(--text-light); }
.rich-text li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.rich-text strong { color: var(--text-dark); }

/* ---- Welcome pop-up ---- */
.site-popup .modal-dialog { max-width: 520px; }
.site-popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; filter: invert(1); opacity: .85; }
.site-popup-header { background: var(--gradient-primary); color: var(--white); text-align: center; padding: 30px 24px 24px; }
.site-popup-header img { height: 54px; max-width: 70%; object-fit: contain; background: var(--white); border-radius: 12px; padding: 6px 12px; margin-bottom: 14px; }
.site-popup-header h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: .5px; margin: 0; }
.site-popup .modal-body { padding: 24px 28px 8px; }
.site-popup-footer { padding: 8px 28px 26px; }
@media (max-width: 575px) {
  .site-popup .modal-body, .svc-modal .modal-body { padding: 20px 18px 8px; }
  .site-popup-footer { padding: 8px 18px 22px; }
}

/* ---- Contact: Google Maps link ---- */
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.contact-map-link:hover { background: var(--white); color: var(--primary); }

/* ---- Page blocks (Admin › Páginas) ---- */
.pg-text { margin-bottom: 1.6rem; color: var(--text-mid, #334155); line-height: 1.9; }
.pg-text p { margin-bottom: 1rem; }
.pg-text h2 { font-size: 1.7rem; font-weight: 800; margin: 2rem 0 1rem; }
.pg-text h3 { font-size: 1.35rem; font-weight: 700; margin: 1.6rem 0 .8rem; }
.pg-text h4 { font-size: 1.12rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.pg-text ul, .pg-text ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.pg-text li { margin-bottom: .4rem; line-height: 1.75; }
.pg-text li::marker { color: var(--primary); }
.pg-text a { color: var(--primary); font-weight: 600; }
.pg-text blockquote { border-left: 4px solid var(--primary); background: var(--light-bg); padding: 14px 20px; border-radius: 0 12px 12px 0; margin: 1.4rem 0; font-style: italic; }
.pg-text .ql-align-center { text-align: center; }
.pg-text .ql-align-right { text-align: right; }
.pg-text .ql-align-justify { text-align: justify; }
.pg-text .ql-size-small { font-size: .8em; }
.pg-text .ql-size-large { font-size: 1.4em; }
.pg-text .ql-size-huge { font-size: 2.2em; line-height: 1.3; }
.pg-text .ql-indent-1 { padding-left: 2em; } .pg-text .ql-indent-2 { padding-left: 4em; } .pg-text .ql-indent-3 { padding-left: 6em; }

.pg-figure { margin: 2rem auto; }
.pg-figure.pg-w-medium { max-width: 560px; }
.pg-figure.pg-w-small { max-width: 340px; }
.pg-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.pg-figure figcaption { text-align: center; font-size: .85rem; color: var(--text-light); margin-top: .7rem; }
.pg-video { width: 100%; display: block; border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow-md); }
.pg-video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.pg-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Hero photo slides (Admin › Hero) ---- */
.hero-slide { position: relative; }
.hero-slide img.is-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero-slide-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.95);
  color: var(--text-dark);
  font-weight: 700;
  font-size: .92rem;
  padding: 9px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.hero-slide-caption i:first-child { color: var(--primary); }
.hero-slide-caption .bi-arrow-right-short { font-size: 1.2rem; color: var(--primary); }
@media (max-width: 575px) { .hero-slide-caption { left: 14px; bottom: 14px; font-size: .82rem; } }
/* Floating info cards stay above the photo slides */
.hero-image-wrapper .hero-card-floating { z-index: 5; }
.hero-image-wrapper .hero-card-floating.card-2 { bottom: 28%; }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
/* Never scroll sideways: off-screen decorations/animations are clipped */
html, body { overflow-x: hidden; max-width: 100%; }
section, footer, #clients { overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* Hamburger button: real tap target with visible bars */
.navbar-master .navbar-toggler {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: rgba(224, 23, 78, .07); border-radius: 12px; cursor: pointer;
}
.navbar-master .navbar-toggler .toggler-bar { width: 22px; height: 2px; }
.navbar-master .navbar-toggler.open .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-master .navbar-toggler.open .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-master .navbar-toggler.open .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Long words (emails, URLs) wrap instead of widening the page */
.contact-info-item-text, .footer-contact-item, .footer-brand p { overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 991px) {
  .navbar-master .navbar-brand img { height: 50px; }
  .navbar-master.scrolled .navbar-brand img { height: 44px; }
  .navbar-mobile-menu.open { max-height: 70vh; overflow-y: auto; }
  .navbar-mobile-menu .nav-link { padding: 13px 6px; font-size: 1rem; }
  #hero .row { min-height: auto !important; padding: 100px 0 50px !important; }
  .hero-slider { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .section-padding { padding: 56px 0; }
  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: .92rem; margin-bottom: 32px; }
  #footer .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .contact-info-card, .contact-form-card { padding: 26px 18px; border-radius: 18px; }
  .service-card { padding: 28px 22px; }
  .testimonial-card { padding: 26px 22px; }
  .insurer-card { height: 76px; padding: 14px; }
  .insurer-card img { max-height: 38px; }
  .map-container iframe { height: 260px; }
  .svc-modal .modal-dialog { margin: 10px; }
}

@media (max-width: 575px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: 2.05rem; line-height: 1.15; }
  .hero-subtitle { font-size: .98rem; }
  .hero-badge { font-size: .74rem; }
  .hero-trust { flex-wrap: wrap; gap: 10px; }
  .hero-slide img.is-photo { border-width: 4px; aspect-ratio: 4 / 3.2; }
  .kpi-card { padding: 22px 8px; }
  .kpi-value { font-size: 1.9rem; }
  .kpi-label { font-size: .78rem; }
  .btn-sm-nav { padding: 9px 14px !important; font-size: .8rem !important; }
  .site-popup .modal-dialog { margin: 12px; }
  .site-popup-header { padding: 24px 18px 18px; }
  .site-popup-header h2 { font-size: 1.15rem; }
  .page-hero { padding: 96px 0 44px; }
  .page-content { padding: 44px 0; }
  .footer-bottom { gap: 6px; font-size: .8rem; }
}

/* Tap-to-call / tap-to-mail */
.contact-tap { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.5); }
.contact-tap:hover { color: inherit; border-bottom-style: solid; }

/* Floating buttons on phones: stacked, smaller, never covering the footer text */
@media (max-width: 767px) {
  #wa-chat-widget { bottom: 16px; right: 16px; }
  .wa-chat-trigger { width: 56px; height: 56px; font-size: 1.6rem; }
  #back-to-top { right: 22px; bottom: 84px; width: 44px; height: 44px; border-radius: 50%; opacity: .92; }
  #footer { padding-bottom: 90px; }
}
/* Floating buttons step aside while a pop-up/modal is open */
body.modal-open #wa-chat-widget, body.modal-open #back-to-top { display: none !important; }
