
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .form-group label {
        margin-bottom: 7px;
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

    .form-group input {
        width: 100%;
        min-height: 48px;
        border: 1px solid #d0d5dd;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 15px;
        color: #172033;
        background: #fff;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .form-group input:focus {
        border-color: #1d4ed8;
        box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
    }

    .form-help {
        margin: 0 0 18px;
        color: var(--muted);
        line-height: 1.6;
        font-size: 14px;
    }

    @media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
        }
    }
        :root{
            --bg: #f4f7fb;
            --card: #ffffff;
            --card-soft: #f8fafc;
            --text: #172033;
            --muted: #667085;
            --primary: #1d4ed8;
            --primary-dark: #163ea7;
            --accent: #f59e0b;
            --success: #16a34a;
            --border: #e5e7eb;
            --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
            --radius: 18px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: "Segoe UI", Arial, sans-serif;
            background:
                radial-gradient(circle at top left, rgba(29,78,216,0.08), transparent 30%),
                radial-gradient(circle at top right, rgba(245,158,11,0.08), transparent 25%),
                var(--bg);
            color: var(--text);
        }

        .page {
            min-height: 100vh;
            padding: 40px 20px 60px;
        }

        .brand {
            display: flex;
            justify-content: center;
            margin-bottom: 24px;
        }

        .brand-box {
            background: rgba(255,255,255,0.75);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.7);
            border-radius: 22px;
            padding: 16px 24px;
            box-shadow: var(--shadow);
        }

        .brand-box img {
            display: block;
            width: 110px;
            height: 110px;
            object-fit: contain;
            border-radius: 16px;
        }

        .container {
            max-width: 860px;
            margin: 0 auto;
            background: var(--card);
            border-radius: 24px;
            box-shadow: var(--shadow);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.7);
        }

        .hero {
            padding: 36px 36px 24px;
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
            color: #fff;
        }

        .hero-badge {
            display: inline-block;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.18);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.2px;
            margin-bottom: 16px;
        }

        .hero h1 {
            margin: 0 0 12px;
            font-size: 32px;
            line-height: 1.2;
            font-weight: 700;
        }

        .hero p {
            margin: 0;
            font-size: 16px;
            line-height: 1.6;
            color: rgba(255,255,255,0.86);
            max-width: 720px;
        }

        .content {
            padding: 32px 36px 36px;
        }

        .summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 28px;
        }

        .summary-card {
            background: var(--card-soft);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 18px;
        }

        .summary-card .label {
            display: block;
            font-size: 13px;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .summary-card .value {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
        }

        .methods-title {
            margin: 0 0 16px;
            font-size: 20px;
            font-weight: 700;
        }

        .payment-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 24px;
        }

        .payment-option {
            border: 1px solid var(--border);
            background: #fff;
            color: var(--text);
            border-radius: 16px;
            padding: 18px 20px;
            cursor: pointer;
            text-align: left;
            transition: all 0.25s ease;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
        }

        .payment-option:hover {
            transform: translateY(-2px);
            border-color: #bfd3ff;
            box-shadow: 0 12px 24px rgba(29, 78, 216, 0.10);
        }

        .payment-option.active {
            border-color: var(--primary);
            background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
        }

        .payment-option strong {
            display: block;
            font-size: 16px;
            margin-bottom: 6px;
        }

        .payment-option span {
            font-size: 13px;
            color: var(--muted);
            line-height: 1.5;
        }

        .payment-panel {
            display: none;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 24px;
            margin-bottom: 22px;
        }

        .payment-panel.visible {
            display: block;
            animation: fadeIn 0.25s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .panel-title {
            margin: 0 0 8px;
            font-size: 20px;
            font-weight: 700;
        }

        .panel-subtitle {
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.6;
            font-size: 14px;
        }

        #card-element {
            background: #fff;
            padding: 14px 16px;
            border: 1px solid #d0d5dd;
            border-radius: 12px;
            min-height: 48px;
        }

        #submit {
            width: 100%;
            margin-top: 16px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 18px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        #submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(29, 78, 216, 0.18);
        }

        #submit:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .logos-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 40px;
            margin-top: 18px;
            flex-wrap: wrap;
        }

        .logo-stripe, .logo-tarjetas {
            width: 120px;
            height: 46px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

        .logo-stripe {
            background-image: url('imagenes/stripe-black.svg');
        }

        .logo-tarjetas {
            background-image: url('imagenes/tarjetas.jpg');
        }

        .transfer-box {
            background: var(--card-soft);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 18px;
        }

        .transfer-box ul {
            list-style: none;
            padding: 0;
            margin: 16px 0 0;
        }

        .transfer-box li {
            padding: 10px 0;
            border-bottom: 1px solid #e9edf3;
            line-height: 1.5;
        }

        .transfer-box li:last-child {
            border-bottom: none;
        }

        .transfer-mail {
            margin-top: 16px;
            font-size: 14px;
        }

        .transfer-mail a,
        .info-box a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .transfer-mail a:hover,
        .info-box a:hover {
            text-decoration: underline;
        }

        .info-box {
            background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            color: #334155;
            font-size: 14px;
            line-height: 1.7;
        }

        #error-message {
            margin-top: 14px;
            color: #b42318;
            font-size: 14px;
            font-weight: 600;
            min-height: 20px;
        }

        .footer-note {
            margin-top: 16px;
            color: var(--muted);
            font-size: 13px;
            text-align: center;
        }

        @media (max-width: 768px) {
            .page {
                padding: 24px 14px 40px;
            }

            .hero,
            .content {
                padding: 24px 20px;
            }

            .hero h1 {
                font-size: 25px;
            }

            .summary,
            .payment-actions {
                grid-template-columns: 1fr;
            }

            .brand-box img {
                width: 90px;
                height: 90px;
            }
        }
            .footer {
      background-color: #1c4c74;
      color: #fff;
      text-align: center;
      padding: 25px 15px;
      margin-top: 40px;
    }
    .footer a,
.footer a:visited,
.footer a:hover,
.footer a:active,
.footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Cabecera fija */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    color: #fff;
    z-index: 1000;
    padding: 10px 0;
}

/* Contenedor de la cabecera alineado con el cuerpo */
.desktop-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.header-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Slider central */
.cabecera-slider {
    position: relative;
    flex: 1;
    max-width: 820px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
}

/* Imágenes */
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    display: block;
}

.slider-img.active {
    opacity: 1;
    z-index: 2;
}
header {
    width: 100%;
    background-color: #003366;
    padding: 10px 0;
}

.desktop-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.header-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    flex-shrink: 0;
}

.cabecera-slider {
    position: relative;
    width: 820px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}
