/* ============================================
   ASOCOMUNAL - Custom Styles
   Archivo: custom.css
   ============================================ */

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

/* ===== URGENCY BANNER ===== */
.urgency-banner {
  background: linear-gradient(135deg, #24A7DF 0%, #764ba2 100%);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 999;
}

.urgency-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.urgency-banner i {
  font-size: 18px;
  animation: flash 1.5s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.urgency-banner strong {
  text-decoration: underline;
}

.urgency-banner .close-banner {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.urgency-banner .close-banner:hover {
  opacity: 1;
}

/* ===== HERO BADGES ===== */
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges .badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.trust-indicators {
  color: #ffd700;
  font-weight: 600;
  font-size: 16px;
}

/* ===== LIVE STATS BANNER ===== */
.live-stats {
  background: linear-gradient(135deg, #3fbbc0 0%, #2c9ca1 100%);
  color: white;
  padding: 30px 0;
  margin-top: -1px;
}

.live-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.live-stat-item i {
  font-size: 32px;
  margin-bottom: 5px;
}

.live-stat-item span {
  font-size: 28px;
  font-weight: 700;
}

.live-stat-item p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

#live-jac-counter {
  animation: countUp 0.5s ease-out;
}

@keyframes countUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.comparison-table thead {
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  color: white;
}

.comparison-table th {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  position: relative;
}

.comparison-table th.highlight::before {
  content: "⭐ RECOMENDADO";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd700;
  color: #333;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

.comparison-table tbody tr:hover {
  background: #f9f9f9;
}

.comparison-table td {
  padding: 15px 20px;
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table td.highlight {
  background: #f0f8ff;
  font-weight: 600;
  color: #667eea;
}

.badge-yes {
  color: #22c55e;
  font-weight: 600;
}

.badge-no {
  color: #ef4444;
  font-weight: 600;
}

.badge-partial {
  color: #f59e0b;
  font-weight: 600;
}

/* ===== ROI CALCULATOR ===== */
.calculator.section {
  background: linear-gradient(135deg, #24A7DF 0%, #764ba2 100%);
  color: white;
}

.calculator-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.calculator-container h2,
.calculator-container p {
  color: white;
}

.calculator-form .form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
}

.calculator-form .form-control {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
}

.calculator-form .form-control:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.calculator-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.resultado-roi {
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin-top: 20px;
}

.resultado-item {
  padding: 20px;
}

.resultado-item i {
  font-size: 48px;
  color: #3fbbc0;
  margin-bottom: 15px;
}

.resultado-item h3 {
  font-size: 42px;
  font-weight: 700;
  color: #667eea;
  margin: 10px 0;
}

.resultado-item p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* ===== SUCCESS CASES ===== */
.case-study-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.case-study-card:hover .case-image img {
  transform: scale(1.1);
}

.case-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.case-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.case-location {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.case-location i {
  color: #3fbbc0;
  margin-right: 5px;
}

.case-description {
  color: #555;
  font-size: 14px;
  margin-bottom: 15px;
  font-style: italic;
}

.case-results {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.case-results li {
  padding: 8px 0;
  font-size: 14px;
  color: #555;
}

.case-results i {
  color: #22c55e;
  margin-right: 8px;
}

.case-content blockquote {
  background: #f9f9f9;
  border-left: 4px solid #3fbbc0;
  padding: 15px;
  margin: 15px 0;
  font-size: 14px;
  font-style: italic;
  color: #666;
}

.case-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s;
}

.btn-case-study:hover {
  gap: 12px;
  color: #764ba2;
}

/* ===== RESOURCES SECTION ===== */
.resource-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.resource-card.featured {
  border: 2px solid #24A7DF;
}

.resource-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.resource-icon {
  font-size: 64px;
  color: #24A7DF;
  margin-bottom: 20px;
}

.resource-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.resource-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.resource-features li {
  padding: 5px 0;
  font-size: 13px;
  color: #555;
}

.resource-features i {
  color: #24A7DF;
  margin-right: 8px;
}

.btn-download,
.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-download:hover,
.btn-watch:hover {
  background: linear-gradient(135deg, #24A7DF 0%, #24A7DF 100%);
  transform: scale(1.05);
  color: white;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  background: linear-gradient(135deg, #3fbbc0 0%, #2c9ca1 100%);
  color: white;
  padding: 80px 0;
}

.video-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.video-section .lead {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.video-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.video-features li {
  padding: 12px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-features i {
  font-size: 24px;
  color: #ffd700;
}

.video-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.video-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.video-stats .stat-item i {
  font-size: 20px;
  color: #ffd700;
}

.video-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.video-placeholder {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== COVERAGE MAP ===== */
.map-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.colombia-map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 20px rgba(0,0,0,0.1));
}

.map-marker {
  position: absolute;
  cursor: pointer;
}

.marker-dot {
  display: block;
  width: 20px;
  height: 20px;
  background: #667eea;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.marker-dot.pulse {
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.department-stats {
  margin-top: 20px;
}

.department-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.department-info {
  flex-grow: 1;
  margin-right: 20px;
}

.department-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.department-info .progress {
  height: 8px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.department-info .progress-bar {
  background: linear-gradient(135deg, #24A7DF 0%, #2c9ca1 100%);
  transition: width 1s ease-out;
}

.department-count {
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
  min-width: 80px;
  text-align: right;
}

.coverage-cta {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}

.coverage-cta p {
  margin-bottom: 10px;
}

/* ===== TRUST SECTION ===== */
.trust-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.trust-item:hover {
  transform: translateY(-5px);
}

.trust-item i {
  font-size: 48px;
  color: #24A7DF;
  margin-bottom: 15px;
}

.trust-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.trust-item p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.trust-badges {
  margin-top: 50px;
}

.trust-badges h4 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-badge {
  height: 60px;
  width: auto;
  filter: grayscale(50%);
  transition: filter 0.3s;
}

.trust-badge:hover {
  filter: grayscale(0%);
}

/* ===== BLOG SECTION ===== */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(63, 187, 192, 0.9);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.blog-badge.popular {
  background: rgba(102, 126, 234, 0.9);
}

.blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #999;
}

.blog-meta i {
  margin-right: 5px;
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-content h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-content h3 a:hover {
  color: #3fbbc0;
}

.blog-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 12px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 40px;
  color: white;
}

.newsletter-section h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.newsletter-section h3 i {
  margin-right: 10px;
  color: #ffd700;
}

.newsletter-section p {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 0;
}

.newsletter-form .input-group {
  margin-bottom: 10px;
}

.newsletter-form .form-control {
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 25px 0 0 25px;
}

.newsletter-form .btn-primary {
  border-radius: 0 25px 25px 0;
  padding: 14px 30px;
  font-weight: 600;
  border: none;
  background: #3fbbc0;
}

.newsletter-form .btn-primary:hover {
  background: #2c9ca1;
}

.newsletter-form .form-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

/* ===== FOOTER ENHANCEMENTS ===== */
.footer-cta {
  background: linear-gradient(135deg, #24A7DF 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 0;
}

.footer-cta h3 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.footer-cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 25px;
}

.btn-footer-cta {
  display: inline-block;
  background: white;
  color: #667eea;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-footer-cta:hover {
  background: #3fbbc0;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.footer-guarantees {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-guarantees span {
  font-size: 14px;
  opacity: 0.9;
}

.footer-badges {
  background: #f9f9f9;
  padding: 20px 0;
}

.footer-badge {
  height: 50px;
  width: auto;
  margin: 0 15px;
  filter: grayscale(70%);
  opacity: 0.7;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
  .video-section h2 {
    font-size: 28px;
  }

  .calculator-container {
    padding: 30px 20px;
  }

  .resultado-item h3 {
    font-size: 32px;
  }

  .footer-cta h3 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .urgency-banner {
    font-size: 12px;
    padding: 10px 0;
  }

  .hero-badges {
    justify-content: center;
  }

  .live-stats {
    padding: 20px 0;
  }

  .live-stat-item span {
    font-size: 22px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  .calculator-container h2 {
    font-size: 24px;
  }

  .resultado-item h3 {
    font-size: 28px;
  }

  .newsletter-section {
    padding: 30px 20px;
  }

  .newsletter-section h3 {
    font-size: 22px;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn-primary {
    border-radius: 25px;
    margin-bottom: 10px;
  }

  .footer-guarantees {
    flex-direction: column;
    gap: 10px;
  }

  .department-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .department-count {
    margin-top: 10px;
    text-align: left;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.0s ease-out;
}

/* ===== PRINT STYLES ===== */
@media print {
  .whatsapp-float,
  .urgency-banner,
  header,
  footer,
  .newsletter-section {
    display: none !important;
  }
}
