/* Premium Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #52489c;
  --secondary-color: #3b3372;
  --accent-color: #e84393;
  --bg-color: #f8f9fc;
  --white: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

#page-content {
  background-color: var(--bg-color);
  background-image: url('../images/fondo.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  padding-bottom: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Hero Section Light */
.hero-section {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.98) 100%), url('../images/backimage.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

.hero-image {
  max-width: 160px;
  margin-bottom: 30px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.landing-title {
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.landing-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Premium Button */
.btn-premium {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(82, 72, 156, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(82, 72, 156, 0.4);
  color: var(--white);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f0f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Galería de Imágenes (Artes Postales) */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Emergency Section */
.emergency-section {
  background: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius);
  max-width: 1200px;
  margin: 0 auto 80px auto;
  box-shadow: var(--shadow-lg);
}

.emergency-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-emergency {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  padding: 18px 25px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 1. Policía 110 (Azul) */
.btn-emergency-police:hover,
.btn-emergency-police:focus,
.btn-emergency-police:active {
  background: #0984e3 !important;
  border-color: #0984e3 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(9, 132, 227, 0.5) !important;
  transform: translateY(-3px);
}

/* 2. FELCV 800100348 (Verde) */
.btn-emergency-felcv:hover,
.btn-emergency-felcv:focus,
.btn-emergency-felcv:active {
  background: #00b894 !important;
  border-color: #00b894 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.5) !important;
  transform: translateY(-3px);
}

/* 3. Mujer Segura (Lila/Morado) */
.btn-emergency-mujer:hover,
.btn-emergency-mujer:focus,
.btn-emergency-mujer:active {
  background: #6c5ce7 !important;
  border-color: #6c5ce7 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.5) !important;
  transform: translateY(-3px);
}

/* 4. Bomberos 119 (Blanco) */
.btn-emergency-bomberos:hover,
.btn-emergency-bomberos:focus,
.btn-emergency-bomberos:active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px);
}

/* Descargas */
.content-section {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 50px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 5px;
}

.download-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.download-card:hover {
  transform: translateX(10px);
  border-left: 5px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-icon {
  font-size: 2.5rem;
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Video Wrapper */
.video-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* FAQ Accordion */
.faq-accordion {
  text-align: left !important;
}

.faq-accordion .card {
  border: none;
  border-radius: var(--radius) !important;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .card-header {
  background: var(--white);
  padding: 0;
  border: none;
  border-radius: var(--radius) !important;
}

.faq-accordion .btn-link {
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 25px 30px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-accordion .btn-link:hover {
  color: var(--primary-color);
}

.faq-accordion .btn-link::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: transform 0.3s;
}

.faq-accordion .btn-link[aria-expanded="true"]::after {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-accordion .card-body {
  background: var(--white);
  color: var(--text-muted);
  padding: 0 30px 25px 30px;
  line-height: 1.7;
  text-align: left !important;
}

.faq-accordion .card-body p,
.faq-accordion .card-body li {
  text-align: left !important;
}

/* Authorities Logos Carousel */
.authorities-carousel-wrapper {
  background: var(--white);
  padding: 35px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.authorities-carousel-wrapper::before,
.authorities-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.authorities-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.authorities-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.authorities-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: authoritiesScroll 22s linear infinite;
  cursor: pointer;
}

.authorities-track:hover,
.authorities-track.is-paused {
  animation-play-state: paused !important;
}

.authorities-logo-item {
  flex: 0 0 auto;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authorities-logo-item img {
  max-height: 70px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.authorities-logo-item img:hover {
  transform: scale(1.08);
}

@keyframes authoritiesScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Marquee CSS Extraido */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.marquee-track {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

/* La pausa automática con hover fue eliminada. Solo se pausa al hacer click. */
/* Clase especial para pausar al hacer clic */
.marquee-track.is-paused {
  animation-play-state: paused !important;
}

.marquee-item {
  display: inline-block;
  margin: 0 15px;
  width: 240px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  vertical-align: top;
}

.marquee-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Premium Styles */
.hero-custom-padding {
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
  border-bottom: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.blob-purple {
  top: -50px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(82, 72, 156, 0.05);
  filter: blur(50px);
}

.blob-pink {
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(232, 67, 147, 0.04);
  filter: blur(60px);
}

.custom-hero-img {
  max-width: 180px;
  margin-bottom: 25px;
  filter: drop-shadow(0 15px 25px rgba(82, 72, 156, 0.2));
}

.landing-title-premium {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.landing-subtitle-premium {
  font-family: 'Roboto', sans-serif;
  max-width: 750px;
  font-size: 1.3rem;
  color: #4b5563;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 36px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.btn-outline-primary-custom {
  border-width: 2px;
}

.emergency-premium {
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
  box-shadow: 0 15px 30px rgba(82, 72, 156, 0.3);
  border-radius: 20px;
}

.watermark-icon {
  position: absolute;
  top: -10%;
  right: -2%;
  font-size: 20rem;
  color: rgba(255, 255, 255, 0.622);
  z-index: 0;
  pointer-events: none;
}

.emergency-title-premium {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.emergency-subtitle-premium {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Installation Timeline Section - Ultra Premium */
.timeline-container-section {
  position: relative;
  margin-top: 60px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 45px 35px;
  position: relative;
  margin-top: 60px;
}

/* Línea conectora entre pasos (Desktop) */
@media (min-width: 992px) {
  .timeline-connector-line {
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #00b894 0%, #52489c 50%, #e84393 100%);
    z-index: 0;
    border-radius: 3px;
    opacity: 0.4;
  }
}

.timeline-card {
  background: var(--white);
  border-radius: 24px;
  padding: 45px 25px 30px 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(82, 72, 156, 0.15);
}

/* Número de fondo marca de agua */
.timeline-bg-num {
  position: absolute;
  right: 10px;
  bottom: 0px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 6.5rem;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: all 0.4s ease;
  z-index: 0;
}

.timeline-card:hover .timeline-bg-num {
  transform: scale(1.08);
  color: rgba(82, 72, 156, 0.09);
}

/* Insignias por Paso - Alta Visibilidad */
.timeline-step-badge {
  position: absolute;
  top: -18px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 24px;
  border-radius: 50px;
  letter-spacing: 1px;
  z-index: 2;
}

.badge-step1 {
  background: linear-gradient(135deg, #00b894, #009473);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.45);
}

.badge-step2 {
  background: linear-gradient(135deg, #52489c, #3b3372);
  box-shadow: 0 4px 15px rgba(82, 72, 156, 0.45);
}

.badge-step3 {
  background: linear-gradient(135deg, #e84393, #d63031);
  box-shadow: 0 4px 15px rgba(232, 67, 147, 0.45);
}

/* Íconos por Paso - Mayor Tamaño y Contraste */
.timeline-icon-box {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0 20px 0;
  font-size: 2.5rem;
  transition: all 0.4s ease;
}

.icon-step1 {
  background: #e6f9f5;
  color: #00b894;
  border: 3px solid #00b894;
}

.icon-step2 {
  background: #f1f0f9;
  color: #52489c;
  border: 3px solid #52489c;
}

.icon-step3 {
  background: #fdeef6;
  color: #e84393;
  border: 3px solid #e84393;
}

.timeline-card:hover .icon-step1 {
  background: #00b894;
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.5);
}

.timeline-card:hover .icon-step2 {
  background: #52489c;
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(82, 72, 156, 0.5);
}

.timeline-card:hover .icon-step3 {
  background: #e84393;
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(232, 67, 147, 0.5);
}

.timeline-card h5 {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Píldoras con fondo sólido sutil y texto oscuro legible */
.timeline-tag-pill {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pill-step1 {
  background: #e6f9f5;
  color: #008767;
  border: 1.5px solid #00b894;
}

.pill-step2 {
  background: #f1f0f9;
  color: #3b3372;
  border: 1.5px solid #52489c;
}

.pill-step3 {
  background: #fdeef6;
  color: #c02674;
  border: 1.5px solid #e84393;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-custom-padding {
    padding: 80px 20px 60px;
  }

  .landing-title-premium {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
  }

  .landing-subtitle-premium {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .custom-hero-img {
    max-width: 130px;
  }

  .hero-btn {
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .emergency-premium {
    padding: 50px 20px;
  }

  .emergency-title-premium {
    font-size: 1.8rem;
  }

  .emergency-subtitle-premium {
    font-size: 1rem;
  }

  .watermark-icon {
    font-size: 12rem;
    top: -10%;
  }

  .marquee-item {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .landing-title-premium {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}