@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #F5F5F5;
  color: #1B1B1B;
  overflow-x: hidden;
}

/* Header */
header {
  height: 80px;
  background-color: #2E0063;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  width: 131px;
  height: 59px;
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Dropdown Conjuntos */
.dropdown-btn {
  position: absolute;
  right: 215px;
  top: calc(50% - 20px); /* Centered vertically */
  width: 114px;
  height: 40px;
  background-color: #D4F7D4;
  border: none;
  color: #2E0063;
  border-radius: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400; /* Lighter font weight */
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.dropdown-btn:hover {
  opacity: 0.9;
}

.dropdown-btn svg path {
  stroke: #2E0063;
}

/* Header Pay Admin Button */
.header-pay-btn {
  position: absolute;
  right: 118px;
  top: calc(50% - 31px); /* Centered vertically */
  width: 82px;
  height: 62px;
  background-color: #BAF2B5;
  color: #2E0063;
  border: none;
  border-radius: 8px; /* Curved corners matching the photo */
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* Bold text matching the photo */
  font-size: 11px;
  line-height: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-pay-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.header-pay-btn svg {
  width: 20px;
  height: 20px;
  stroke: #2E0063;
  stroke-width: 2;
  margin-bottom: 2px;
}

.header-pay-btn span {
  display: block;
  text-align: center;
}

/* Login Link */
.login-link {
  position: absolute;
  left: calc(100% - 107px); /* Positioned exactly 11px to the right of the pay button */
  width: max-content;
  white-space: nowrap;
  bottom: 23px; /* As requested: a una altura del final del encabezado de 23px */
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  color: rgb(255, 255, 255);
  font-size: 12px;
  line-height: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-link:hover {
  text-decoration: underline;
}

/* Banner */
.banner {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden; /* Hide horizontal slides */
}

.banner-slider {
  display: flex;
  width: 400%; /* Four slides */
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth transition */
}

.banner-slide {
  width: 25%; /* 100% of banner viewport (100 / 4 = 25%) */
  flex-shrink: 0; /* Prevent flex items from shrinking and causing distortion */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-subtitle span.green {
  color: #82E778;
  font-weight: 700;
}

.banner-cta {
  background-color: #2E0063;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease;
}

.banner-cta:hover {
  background-color: #3f0580;
}

/* Dots Indicator below Banner */
.dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 15px 0; /* 15px bottom margin */
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E0E0E0;
  cursor: pointer;
}

.dot.active {
  background-color: #82E778;
  width: 12px;
  height: 12px;
}

/* Floating "Pagar Administración" Box */
.floating-pay-box {
  position: fixed;
  top: calc(80px + 110px); /* 110px from the header */
  right: 16px;
  width: 82px;
  height: 62px;
  background-color: #BAF2B5; /* Matches background color #BAF2B5 */
  border: none;
  border-radius: 8px; /* Curved corners matching the photo */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none; /* Hidden on desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease;
}

.floating-pay-box:hover {
  transform: translateY(-3px);
}

.floating-pay-box svg {
  width: 20px;
  height: 20px;
  stroke: #2E0063;
  stroke-width: 2;
  margin-bottom: 2px;
}

.floating-pay-box span {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* Bold text matching the photo */
  font-size: 11px;
  line-height: 12px;
  color: #2E0063;
}

/* Mobile components hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #2E0063;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  align-items: center;
  justify-content: space-around;
}

.bottom-bar-btn {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  gap: 4px;
}

.bottom-bar-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px; /* 30px bottom padding to separate cards from footer */
}

.section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: rgb(46, 0, 99);
  text-align: center;
  margin-bottom: 30px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 24px;
  justify-items: center;
}

/* Card Style */
.info-card {
  width: 264px;
  height: 289px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-img-container {
  height: 140px;
  width: 100%;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 16px 16px 8px 16px; /* Reduced bottom padding to align links to the floor of the card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: rgb(27, 27, 27);
  margin-bottom: 8px;
}

.card-description {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgb(91, 91, 91);
  margin-bottom: 12px;
}

.card-link {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: rgb(46, 0, 99);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px; /* Subtle thin underline */
  text-underline-offset: 3px;     /* Small offset for premium look */
}

.card-link:hover span {
  text-decoration-thickness: 2px; /* Slightly thicker on hover */
}

/* Footer */
footer {
  background-color: #2E0063;
  color: #FFFFFF;
  padding: 15px 20px 20px 20px; /* Reduced top padding to move elements closer to the ceiling */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left-col {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1.2;
  min-width: 320px;
}

/* Vigilado vertical layout */
.vigilado-container {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 75px;
  text-transform: uppercase;
}

.vigilado-box {
  border: 1px solid #FFFFFF;
  padding: 4px 2px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-align: center;
  line-height: 10px;
}

.vigilado-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 7.5px;
  line-height: 8px;
  letter-spacing: 0.3px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.footer-brand-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
}

.footer-center-col {
  flex: 1.5;
  min-width: 320px;
}

.footer-center-col h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.footer-support-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
}

.green-link {
  color: #82E778;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.green-link:hover {
  text-decoration-thickness: 2px;
}

.green-text {
  color: #82E778;
  font-weight: 700;
}

.footer-right-col {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  min-width: 200px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* White Circle Social Icons with Dark Icon */
.social-circle {
  background-color: #FFFFFF;
  color: #2E0063;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-circle svg {
  fill: #2E0063;
}

/* Divider Line */
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1200px;
  margin: 25px auto 15px auto;
  width: 100%;
}

/* Bottom elements */
.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links a {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-bottom-links a:hover {
  opacity: 0.8;
}

.footer-legal-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 900px;
}

/* Mobile Settings */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for the sticky bottom bar */
  }

  header {
    height: 70px; /* Reduced header height on mobile */
    padding: 0 20px 0 10px; /* 10px left padding to stick logo close to left edge */
  }
  
  .logo img {
    width: 131px;
    height: 59px;
    object-fit: contain;
  }
  
  .header-pay-btn {
    display: none; /* Hide header pay button on mobile */
  }

  .floating-pay-box {
    display: flex; /* Show floating pay button on mobile */
    top: 170px; /* 100px distance from mobile header bottom (70px header + 100px = 170px) */
  }
  
  .login-link {
    display: none; /* Hide top login link on mobile */
  }
  
  .dropdown-btn {
    display: none; /* Hide top dropdown button on mobile */
  }

  .mobile-menu-btn {
    display: flex; /* Show menu hamburger on mobile */
  }

  .mobile-bottom-bar {
    display: flex; /* Show bottom nav bar on mobile */
  }
  
  .banner {
    height: 174px;
    padding: 0; /* Remove padding to make it full-width edge-to-edge */
  }
  
  .banner-title-box {
    font-size: 18px;
    padding: 6px 12px;
  }
  
  .banner-subtitle {
    font-size: 12px;
    line-height: 16px;
  }
  
  .banner-cta {
    padding: 6px 16px;
    font-size: 12px;
  }

  .info-card {
    width: 156px;
    height: 250px;
  }

  .card-img-container {
    height: 100px;
  }

  .card-title {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    color: rgb(27, 27, 27);
    font-size: 16px;
    line-height: 24px;
  }

  .card-description {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    color: rgb(91, 91, 91);
    font-size: 14px;
    line-height: 24px;
  }

  .card-content {
    padding: 12px 12px 2px 12px; /* Pull links even closer to the bottom border on mobile */
  }

  .card-link {
    font-size: 14px; /* Slightly larger font size for mobile */
    line-height: 20px;
  }

  /* Hide link on Card 4 on mobile */
  .info-card:nth-child(4) .card-link {
    display: none;
  }

  .section-title {
    margin-bottom: 12px; /* Pull cards closer to title on mobile */
  }

  /* 16px x 16px Carousel Dots on Mobile */
  .dot {
    width: 16px;
    height: 16px;
    background-color: #D4F7D4;
    opacity: 0.8;
  }

  .dot.active {
    width: 16px;
    height: 16px;
    background-color: #5AD654;
    opacity: 1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================
   Payment View (pagar.html) Custom Styles
   ========================================== */

/* Promo Banner under Header */
.promo-bar {
  background-color: #EBFBEB;
  border-bottom: 1px solid rgba(46, 0, 99, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-bar-icon svg {
  color: #2E0063;
  display: block;
}

.promo-bar-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #1B1B1B;
}

.promo-bar-text a {
  color: #2E0063;
  font-weight: 700;
  text-decoration: underline;
}

/* Stepper Component */
.stepper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  width: 100%;
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 80px;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #CCCCCC;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1B1B1B;
  z-index: 2;
}

.step-wrapper.active .step-circle {
  border-color: #5AD654;
  background-color: #D4F7D4;
  color: #2E0063;
  box-shadow: 0 0 0 4px rgba(90, 214, 84, 0.2);
}

.step-wrapper.active-filled .step-circle {
  background-color: #5AD654;
  border-color: #5AD654;
  color: #FFFFFF;
}

.step-line {
  height: 2px;
  background-color: #CCCCCC;
  flex-grow: 1;
  max-width: 80px;
  margin-top: -24px; /* Align line vertically with center of circles */
  z-index: 1;
}

.step-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888888;
  text-align: center;
}

.step-wrapper.active .step-label {
  color: #2E0063;
  font-weight: 700;
}

/* Payment Form */
.payment-form-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

.payment-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #2E0063;
  margin-bottom: 20px;
  text-align: left;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

/* Text Fields: height 40px, grows horizontally */
.payment-input {
  width: 100%;
  height: 40px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  padding: 0 12px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  color: #1B1B1B;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease;
}

.payment-input::placeholder {
  color: #888888;
}

.payment-input:focus {
  border-color: #2E0063;
  outline: none;
}

/* Input Icon overlay */
.input-icon {
  position: absolute;
  right: 12px;
  top: calc(50% - 8px);
  color: #2E0063;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Continue Button */
.btn-continue {
  width: 100%;
  height: 45px;
  background-color: #E0E0E0;
  border: none;
  border-radius: 23px; /* rounded pill style */
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #777777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.btn-continue:hover {
  background-color: #d5d5d5;
}

/* Custom Paga Varios Card - strictly 41px from continue button */
.card-paga-varios {
  margin: 41px auto 25px auto;
  max-width: 369px;
  width: 100%;
  height: 140px;
  background-color: #E2FBE2; /* Soft light green background */
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.paga-varios-img-box {
  width: 90px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paga-varios-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.paga-varios-content-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.paga-varios-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  color: #1B1B1B;
}

.paga-varios-desc {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #555555;
}

.paga-varios-btn {
  background-color: #2E0063;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 4px 12px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

.paga-varios-btn:hover {
  background-color: #420684;
}

/* Video Guide Card */
.card-guide-video {
  margin: 20px auto 40px auto;
  max-width: 369px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #EAEAEA;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-img-container {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.guide-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-circle-btn {
  width: 44px;
  height: 44px;
  background-color: #5AD654;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.guide-info-box {
  padding: 16px;
}

.guide-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1B1B1B;
  margin-bottom: 6px;
}

.guide-desc {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #666666;
}

/* Stepper Mobile adjustments */
@media (max-width: 480px) {
  .payment-form-container {
    padding: 0 15px;
  }
  .card-paga-varios, .card-guide-video {
    max-width: 100%;
  }
}
