/* ==========================================
   ProRed - Estilos Base Globales
   ========================================== */

:root {
  --color-principal: #005B9F;
  --color-secundario: #E58E21;
  --color-fondo: #FFFFFF;
  --color-texto: #333333;
  --color-texto-claro: #666666;
  --color-hover: #004A7F;
  --color-hover-secundario: #CC7A1D;
  --sombra-suave: 0 2px 10px rgba(0, 91, 159, 0.1);
  --sombra-media: 0 4px 20px rgba(0, 91, 159, 0.15);
  --transicion: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   Tipografía
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-principal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* ==========================================
   Contenedores
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* ==========================================
   Hero de Página (compartido por subpáginas)
   ========================================== */

.hero-page {
  position: relative;
  height: 30vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,20,50,0.6) 0%, rgba(0,50,100,0.85) 100%);
  z-index: 1;
}

.hero-page .container {
  position: relative;
  z-index: 2;
}

.hero-page h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 15px #004A7F;
}

.hero-page p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-page .hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-page .hero-badges span {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transicion);
}

.hero-page .hero-badges span:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-page .hero-badges i {
  color: var(--color-secundario);
  margin-right: 6px;
}

@media (max-width: 768px) {
  .hero-page h1 { font-size: 2.2rem; }
  .hero-page p { font-size: 1.1rem; padding: 0 10px; }
  .hero-page .hero-badges span { font-size: 0.8rem; padding: 8px 14px; }
}

@media (max-width: 480px) {
  .hero-page h1 { font-size: 1.8rem; }
  .hero-page .hero-badges span { font-size: 0.75rem; padding: 6px 12px; }
}

/* ==========================================
   Botones
   ========================================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-principal);
  color: var(--color-fondo);
}

.btn-primary:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}

.btn-secondary {
  background-color: var(--color-secundario);
  color: var(--color-fondo);
}

.btn-secondary:hover {
  background-color: var(--color-hover-secundario);
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-principal);
  color: var(--color-principal);
}

.btn-outline:hover {
  background-color: var(--color-principal);
  color: var(--color-fondo);
}

/* ==========================================
   Navegación
   ========================================== */

.navbar {
  background:linear-gradient(135deg, #005B9F 0%, #0077CC 100%);
  box-shadow: 0 8px 30px rgba(3,103,166,0.12);
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  border-radius: 14px;
  z-index: 1100;
  transition: var(--transicion);
  backdrop-filter: saturate(120%);
}

.navbar.scrolled {
  box-shadow: 0 10px 40px rgba(3,103,166,0.18);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width:9rem;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicion);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #FDEBD0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secundario);
  transition: var(--transicion);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: var(--transicion);
  border-radius: 2px;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay that appears when mobile nav is open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 1050;
  transition: opacity 0.25s ease;
}

.nav-overlay.active {
  display: block;
}

/* Prevent background scroll when menu open */
.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

/* ==========================================
   Cards
   ========================================== */

.card {
  background-color: var(--color-fondo);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
}

.card:hover {
  box-shadow: var(--sombra-media);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-principal);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-principal);
}

.card-text {
  color: var(--color-texto-claro);
}

/* ==========================================
   Footer
   ========================================== */

footer {
  background-color: var(--color-principal);
  color: var(--color-fondo);
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: var(--color-fondo);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--color-fondo);
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transicion);
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--color-secundario);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--color-fondo);
  opacity: 0.8;
  margin-bottom: 5px;
}

.footer-bottom p:nth-child(2) {
  color: var(--color-principal);
  opacity: 1;
}

/* ==========================================
   Utilidades
   ========================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-principal); }
.text-secondary { color: var(--color-secundario); }
.bg-light { background-color: #f8f9fa; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 3rem; }
.mb-12 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }
.mt-12 { margin-top: 4rem; }

.mr-2 { margin-right: 0.5rem; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .section { padding: 60px 0; }
  
  .navbar {
    width: calc(100% - 20px);
    top: 10px;
    border-radius: 12px;
  }
  
  .nav-container {
    padding: 12px 16px;
  }
  
  .nav-logo {
    width: 6rem;
    height: auto;
  }
  
  .menu-toggle { 
    display: flex;
    z-index: 1111;
  }
  
  .nav-menu {
    margin-top: 1rem;
    position: fixed;
    top: 60px;
    right: -120%;
    flex-direction: column;
    background-color: #0367A6;
    width: 70%;
    height: max-content;
    border-radius: 0.75rem;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(3,103,166,0.15);
    transition: right 0.3s ease;
    overflow: hidden;
    z-index: 1080;
  }
  
  .nav-menu.active {
    right: 1rem;
    align-items: normal;
  }
  
  .nav-menu li {
    list-style: none;
  }

  .nav-menu .nav-link { 
    color: #ffffff; 
    padding: 0.2rem 0;
    font-size: 1rem;
    display: block;
  }
  
  .nav-menu .btn {
    width: 100%;
    margin-top: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  
  .navbar {
    width: calc(100% - 10px);
    top: 5px;
  }
  
  .nav-container {
    padding: 10px 14px;
  }
  
  .nav-logo {
    width: 5.5rem;
    height: auto;
  }
  
  .nav-menu {
    top: 52px;
    padding: 15px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 20px;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}


.whatsapp-float i {
  color: #fff;
  font-size: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   Notificación Flotante de Pagos
   ========================================== */
.payment-notification {
  position: fixed;
  bottom: 95px;
  right: 20px;
  background: linear-gradient(135deg, #005B9F 0%, #0077CC 100%);
  color: #fff;
  border-radius: 16px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  animation: slideInUpPayment 0.5s ease 1s backwards, fadeOutPayment 0.5s ease 30s forwards;
  pointer-events: auto;
}

.payment-notification:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.payment-notification-content {
  display: flex;
  flex-direction: column;
}

.payment-title {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.2;
}

.payment-action {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.payment-action i {
  font-size: 0.9rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.payment-notification:hover .payment-action i {
  transform: translateX(3px);
}

.payment-icon {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

@keyframes slideInUpPayment {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOutPayment {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
  }
}

.payment-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--color-secundario);
  width: 100%;
  animation: progressPayment 30s linear forwards;
}

@keyframes progressPayment {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 768px) {
  .payment-notification {
    bottom: 95px;
    right: 20px;
    padding: 10px 16px;
    gap: 12px;
    border-radius: 12px;
  }
  .payment-title {
    font-size: 0.8rem;
  }
  .payment-action {
    font-size: 0.95rem;
  }
  .payment-action i {
    font-size: 0.75rem;
  }
  .payment-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .payment-notification {
    bottom: 90px;
    right: 15px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 10px;
  }
  .payment-title {
    font-size: 0.7rem;
  }
  .payment-action {
    font-size: 0.85rem;
  }
  .payment-action i {
    font-size: 0.7rem;
  }
  .payment-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}
