:root {
  --brand-primary: #1a3a5c;
  --brand-secondary: #2d5a87;
  --brand-accent: #ffc107;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
}

.navbar-brand span {
  font-size: 1.25rem;
  letter-spacing: .5px;
}

.navbar-dark .nav-link {
  font-size: .9rem;
  letter-spacing: .5px;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  transition: color .2s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: var(--brand-accent) !important;
}

.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/MARCA_AGUA_ARBOL_degradado.jpg');
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-mobile {
  max-height: 600px;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35));
  animation: float 4s ease-in-out infinite;
}

/* Phone frame with carousel inside */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 445 / 874;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35));
  animation: float 4s ease-in-out infinite;
}

.phone-screen {
  position: absolute;
  top: 16.5%;
  left: 6.7%;
  width: 86.6%;
  height: 67%;
  background: #fff;
  overflow: hidden;
  z-index: 1;
}

.phone-screen .carousel-inner,
.phone-screen .carousel-item {
  height: 100%;
}

.phone-screen .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-screen .carousel-indicators {
  margin-bottom: .5rem;
}

.phone-screen .carousel-indicators [data-bs-target] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .35);
  border: 0;
  margin: 0 3px;
}

.phone-screen .carousel-indicators .active {
  background-color: var(--brand-primary);
}

.phone-overlay {
  position: relative;
  width: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  z-index: 1080;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #128C7E;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: wa-pulse 1.8s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 575.98px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 28px; }
}

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

.feature-card {
  border: 0;
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12) !important;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

footer a:hover {
  color: var(--brand-accent) !important;
}

@media (max-width: 991.98px) {
  .hero { text-align: center; }
  .hero-mobile { max-height: 450px; margin-top: 2rem; }
}

/* Page hero (smaller variant for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/MARCA_AGUA_ARBOL_degradado.jpg');
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Step cards */
.step-card {
  border: 0;
  border-radius: 12px;
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
  background: #fff;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .1);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Video wrapper (16:9 responsive) */
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .15);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Forms */
.contact-form .form-control,
.contact-form .form-control:focus {
  border-radius: 8px;
  padding: .75rem 1rem;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand-primary);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
}

.info-card {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
}

.info-card .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: .75rem;
}
