﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    color: #333;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 0 20px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Logo */
.top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.back-btn {
    display: flex;
    align-items: center;
    color: #431f6a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.back-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.wom-logo {
    font-size: 65px;
    font-weight: 900;
    color: #552787;
    transform: rotate(-7deg);
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

/* Title */
.title {
    font-size: 28px;
    font-weight: 600;
    color: #3a1957;
    margin-bottom: 20px;
    text-align: center;
}

/* Input Form index */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #555;
    padding-bottom: 2px;
}

.input-icon {
    margin-right: 15px;
    color: #555;
    font-size: 24px;
}

.form-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background: transparent;
}

.form-input::placeholder {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* Button */
.btn-wom {
    width: 270px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    padding: 7px 15px;
    border: none;
    border-radius: 25px;
    background-color: #e8114b;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 30px;
}

.btn-wom:disabled {
    background-color: #e3e3e3;
    color: #ffffff;
    cursor: not-allowed;
}

.btn-wom:not(:disabled):hover {
    background-color: #c70f41;
}

/* Security Text */
.security-text {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
    margin-bottom: 40px;
}

.security-text i {
    margin-right: 8px;
    color: #555;
}

.epayco {
    font-weight: 800;
    font-style: italic;
    margin-left: 5px;
    font-size: 17px;
}

.epayco span {
    font-weight: 400;
}

/* Payment Methods */
.payment-methods-title {
    font-size: 12px;
    font-weight: 300;
    color: #666;
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.payment-icons::-webkit-scrollbar {
    height: 6px;
}
.payment-icons::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.payment-icons img {
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.payment-icons i {
    font-size: 45px;
    color: #1a538a;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.dots {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d8d8d8;
}

.dot.active {
    background-color: #007bff;
}

/* Footer Banner */
.footer-banner {
    background-color: #552787;
    width: 100%;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-top: auto;
}

.footer-text {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    line-height: 1.1;
    z-index: 2;
}

.footer-text .dile-si {
    font-weight: 800;
    font-size: 18px;
    font-style: italic;
}

.footer-text .dile-si span {
    font-size: 26px;
}

.footer-text .facil {
    font-weight: 400;
    font-size: 16px;
    font-style: italic;
}

.spikes {
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background-color: #c091f0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.5;
    z-index: 1;
    transform: rotate(15deg);
}


/* DETAIL PHP STYLES */
.line-box {
    background-color: #e3e3e3;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 19px;
    color: #444;
    margin-bottom: 15px;
    display: inline-block;
    width: 250px;
    text-align: center;
}
.line-box span {
    font-weight: 600;
    color: #000;
    border-bottom: 1px solid #000;
}

.btn-inmediato {
    background-color: #431f6a;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 8px 0;
    border: none;
    font-size: 16px;
    margin-bottom: 40px;
    display: inline-block;
    width: 250px;
    text-align: center;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1.5px solid #333;
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.invoice-left {
    display: flex;
    align-items: center;
}

.icon-magenta {
    color: #E20074;
    font-size: 20px;
    margin-right: 15px;
}

.invoice-text {
    font-size: 18px;
    color: #333;
}

.invoice-value {
    font-size: 18px;
    font-weight: 600;
    color: #431f6a;
}

.invoice-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.3;
    width: 100%;
}

.abono-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1.5px solid #333;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.abono-left {
    display: flex;
    align-items: center;
}

.icon-circle {
    color: #333;
    font-size: 20px;
    margin-right: 15px;
}

.abono-input {
    border: none;
    outline: none;
    font-size: 18px;
    color: #333;
    font-family: 'Outfit', sans-serif;
    flex: 1;
    width: 100%;
}

.icon-pencil {
    color: #888;
    font-size: 16px;
}

.abono-info {
    font-size: 11px;
    color: #333;
    text-align: right;
    width: 100%;
    margin-bottom: 40px;
}

.btn-magenta {
    background-color: #E20074;
    color: #fff;
    width: 100%;
    border-radius: 25px;
    padding: 10px;
    font-weight: 800;
    font-size: 20px;
    border: none;
    text-transform: uppercase;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-magenta:hover {
    background-color: #c00062;
}

/* Desktop Responsive Layout */
@media (min-width: 768px) {
    body {
        display: grid !important;
        grid-template-columns: 50vw 50vw !important;
        min-height: 100vh;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow-x: hidden;
    }
    body::after {
        content: '';
        background-image: url('img/010515_10.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        width: 50vw;
        z-index: 1;
    }
    .desktop-card-wrapper, .epayco-card-container {
        grid-column: 1 / 2;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: 100vh;
        box-sizing: border-box;
        padding-bottom: 120px !important;
    }
    .footer-container, .footer-banner {
        display: none !important;
    }
    .security-text {
        margin-bottom: 95px !important;
    }

    /* Medios de pago en escritorio: 7 logos visibles, separados y más abajo */
    .payment-methods-title {
        margin-top: 65px !important;
        margin-bottom: 10px !important;
    }
    .input-container {
        max-width: 420px !important;
    }
    .header-logo-top img {
        margin-top: 0 !important;
        transform: translateY(-5px);
    }
    .form-middle-container {
        padding-top: 70px !important;
        justify-content: flex-end !important;
    }
    .title {
        margin-top: 30px !important;
    }
    .carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        margin: 0 auto 20px !important;
    }
    .carousel-track {
        width: 100% !important;
        transform: none !important;
        display: flex !important;
        justify-content: space-evenly !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        transition: none !important;
    }
    .carousel-track .carousel-item:nth-child(n+8) {
        display: none !important;
    }
    .carousel-item {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    .dots {
        display: none !important;
    }
    .desktop-card-wrapper {
        min-height: 100vh !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 20px !important;
    }
        box-shadow: -5px 0 35px rgba(0,0,0,0.2);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }
    
    .main-content {
        margin: 0;
        max-width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        padding-bottom: 20px;
        background-color: transparent;
        flex: 1; /* allow it to grow */
        overflow-y: auto; /* scrolling inside card */
    }
    
    .footer-container {
        display: flex !important;
        flex-shrink: 0;
    }
}

@keyframes slide-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.marquee-container {
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 15px;
}
.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: slide-marquee 15s linear infinite;
}

@media (max-width: 767px) {
  .title {
    margin-top: 40px !important;
  }
  .payment-methods-title {
    margin-top: 35px !important;
  }
}

@media (min-width: 768px) {
  .payment-methods-title {
    text-align: center !important;
  }
  .carousel-container {
    width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .carousel-track {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .carousel-item {
    width: 80px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .carousel-item img[alt="Amex"],
  .carousel-item img[alt="Diners Club"],
  .carousel-item img[alt="Visa"] {
    height: 22px !important;
  }
  .carousel-item img[alt="PSE"],
  .carousel-item img[alt="Banco de Bogota"] {
    height: 38px !important;
  }
  .carousel-item img[alt="Codensa"],
  .carousel-item img[alt="Bancolombia"] {
    height: 28px !important;
  }
}
